Class: EmptyModelLoader

SKARF. EmptyModelLoader

new EmptyModelLoader()

Model loader which contains no models
Please do not instantiate this class on your own. Use the ModelLoaderFactory instead.
Source:

Extends

Methods

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
Inherited From:
Source: