OptionalcoordinateConfigures the SceneModel's local coordinate system.
By default, itis a right-handed Z-up coordinate system.
OptionalgeometriesParameters for SceneGeometries in the SceneModel.
OptionalgeometriesCompressed parameters for SceneGeometries in the SceneModel.
OptionalglobalizedWhether IDs of the SceneObjects are globalized.
When globalized, the IDs are prefixed with the value of SceneModel.id
Default is false.
OptionalidUnique ID for the SceneModel.
The SceneModel is stored with this ID in Scene.models
OptionallayerIf we want to view the SceneModel with a Viewer, an optional ID of the ViewLayer to view the SceneModel in.
Will be "default" by default.
Overrides SceneObjectParams.layerId.
OptionallifecycleDescribes the model's construction lifecycle.
"open": components can be added until the model is destroyed or sealed."streaming": components can continue to arrive over time; committed
batches may be treated as immutable allocation units by renderers."sealed": the model is closed to new topology after initial creation.Default is "open".
OptionalmaterialsParameters for SceneMaterials in the SceneModel.
Optionalmatrix4x4 transform matrix.
OptionalmemoryRenderer allocation policy for this SceneModel.
This controls whether renderers should prefer reusable backing stores or tightly sized storage for internal resources such as VBOs, data textures and renderer-side batch tables. It does not change the SceneModel's public data, and it is not a strict heap budget.
"stream": default. Use for models that can keep receiving components,
batches or edits. Renderers may use their normal growable/reusable
allocation strategy."compact": use for finalized models or committed streaming batches
where memory footprint matters more than cheap future growth. Renderers
should avoid avoidable slack when allocating storage for sealed models or
committed batches.Default is "stream".
OptionalmeshesParameters for SceneMeshes in the SceneModel.
OptionalobjectsParameters for SceneObjects in the SceneModel.
OptionalpositionWorld-space position of the SceneModel.
OptionalquaternionQuaternion defining the orientation of the SceneModel.
OptionalrotationOrientation of the SceneModel, given as Euler angles in degrees for X, Y and Z axis.
OptionalscaleScale of the SceneModel.
Default is [1,1,1].
OptionaltexturesParameters for SceneTextures in the SceneModel.
OptionaltransformsParameters for SceneTransforms in the SceneModel.
OptionalupdateHint describing how often this SceneModel's renderer-facing values are expected to be uploaded.
"auto": let the renderer choose its safe default."static": low runtime value upload rate, drawn many times; renderers
may favor draw-time optimized storage such as VBO-backed batches."dynamic": frequent runtime uploads of matrices, transforms, colors or
object state; renderers may favor update-friendly storage.Default is "auto".
Parameters for a SceneModel.
See @xeokit/sdk/model/scene for usage.