Skip to main content

@novorender/web_app / RenderStateDynamicObject

Interface: RenderStateDynamicObject

Dynamic object related render state.

Properties

baseObjectId?

readonly optional baseObjectId: number;

What base object id/index to use for object instances.

Defined in

@novorender/core3d/state/dynamic.ts:279


instances

readonly instances: readonly RenderStateDynamicInstance[];

Object instances

Remarks

Instances renders the same mesh once for reach instance at a unique position and rotation. This is accomplished by using GPU instancing, which means there is very little overhead per instance. As long as the total triangle count remains tolerable, thousands of instances is no problem.

See

https://learnopengl.com/Advanced-OpenGL/Instancing

Defined in

@novorender/core3d/state/dynamic.ts:276


mesh

readonly mesh: RenderStateDynamicMesh;

What mesh to render.

Defined in

@novorender/core3d/state/dynamic.ts:265