Class: ModelLoader

SKARF. ModelLoader

<virtual> new ModelLoader()

Abstract class for model loaders
Source:

Methods

<virtual> loadForMarker(model, markerId, markerTransform, overallScale, isWireframeVisible, markerManager)

Loads model for marker
Parameters:
Name Type Description
model object Data containing the model info (from JSON file)
markerId number ID of marker to laod
markerTransform THREE.Object3D Transform to parent to after model has loaded
overallScale number Overall scale
isWireframeVisible boolean Whether to initialize the wireframe mode to true
markerManager SKARF.MarkerManager Instance of MarkerManager
Source:

transformAndParent(model, object, markerTransform, overallScale, markerManager)

Transforms and parents a model onto a transform
Parameters:
Name Type Description
model object Data containing the model info (from JSON file)
object THREE.Mesh Mesh to parent
markerTransform THREE.Object3D Transform to parent to
overallScale number Overall scale
markerManager SKARF.MarkerManager Instance of MarkerManager
Source: