new JsonBinaryModelLoader()
Model loader which contains Three.js JSON binary models
Please do not instantiate this class on your own. Use the
ModelLoaderFactory instead.
Extends
Methods
-
<virtual> loadForMarker(model, markerId, markerTransform, overallScale, isWireframeVisible, markerManager)
-
Loads model for marker
Parameters:
Name Type Description modelobject Data containing the model info (from JSON file) markerIdnumber ID of marker to laod markerTransformTHREE.Object3D Transform to parent to after model has loaded overallScalenumber Overall scale isWireframeVisibleboolean Whether to initialize the wireframe mode to true markerManagerSKARF.MarkerManager Instance of MarkerManager - Inherited From:
- Source:
-
transformAndParent(model, object, markerTransform, overallScale, markerManager)
-
Transforms and parents a model onto a transform
Parameters:
Name Type Description modelobject Data containing the model info (from JSON file) objectTHREE.Mesh Mesh to parent markerTransformTHREE.Object3D Transform to parent to overallScalenumber Overall scale markerManagerSKARF.MarkerManager Instance of MarkerManager - Inherited From:
- Source: