Skip to main content

WebGL API

NovoRender.DynamicAsset

Asset data used for dynamic objects.

Remarks

Dynamic assets represents some combination of 3D geometry, textures, animations, sound and physics data. They can then be introduced into a scene as dynamic objects, allowing multiple instances of each assets. Assets can be imported from an existing file, such as a gltf model.

Properties​

boundingSphere​

• Readonly boundingSphere: BoundingSphere

The bounding sphere of the loaded asset.


id​

• Readonly id: number

The id assigned to this asset.


url​

• Optional Readonly url: URL

The url used for loading data, if any.

Methods​

dispose​

â–¸ dispose(): void

Dispose of asset data.

Returns​

void

Remarks

Disposing of asset data will free up associated system memory. Doing so will make it impossible to create new dynamic objects from this asset. Already created dynamic objects will remain, however, since they are essentially GPU memory copies.

â–¸ dispose(): void

Dispose of asset data.

Returns​

void

Remarks

Disposing of asset data will free up associated system memory. Doing so will make it impossible to create new dynamic objects from this asset. Already created dynamic objects will remain, however, since they are essentially GPU memory copies.