Skip to main content

WebGL API

NovoRender.DynamicObject

3D object that can be animated and moved.

Remarks

Unlike the static geometry of a scene, dynamic objects can be added/removed and moved around after a scene has been created. This functionality comes at a cost, however. Dynamic objects must be fully loaded into client memory before they can be rendered, which restricts their practial use to relatively trivial geometry only. Nor can they take advantage of globally pre-baked information, such as indirect light. They also lack several features of static scene geometry, such as object picking and clipping volumes etc. Dynamic objects can be helpful for 3D UI widgets, background animations of e.g. moving people, cars or animals etc.

Properties​

geometry​

• Readonly geometry: DynamicAsset

The geometry used for rendering.


position​

• position: ReadonlyVec3

The 3D position of object in world space coordinates.


rotation​

• rotation: ReadonlyQuat

The 3D orientation of object in world space expressed as a quaternion.


scale​

• scale: ReadonlyVec3

The scale of object in local coordinates.


scene​

• Readonly scene: Scene

The scene from this this object was created.


visible​

• visible: boolean

Whether to render object or not.

Methods​

dispose​

â–¸ dispose(): void

Remove object from scene and free up any associated resources.

Returns​

void

â–¸ dispose(): void

Remove object from scene and free up any associated resources.

Returns​

void