Scene3DRenderer
Defined in: src/modules/render-scene3d/render-scene3d.ts:53
A Renderer that keeps one scene-graph object per selected entity: created
on first selection, synced every frame, and removed from the graph once the
entity stops matching. Generic over the object type — pass a three.js
Scene as the graph and build Mesh / Sprite objects in create.
It owns existence only. Drawing the scene, the camera, the canvas and GPU
resources stay with the caller. Entity ids restart after
world.clearAll() or world.loadJSON(...); call dispose then, so
a reused id is not matched to the previous entity’s object.
Type Parameters
Section titled “Type Parameters”TObject
Section titled “TObject”TObject
TRow extends unknown[] = unknown[]
Implements
Section titled “Implements”Renderer<Scene3DRenderContext<TObject>>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Scene3DRenderer<
TObject,TRow>(options):Scene3DRenderer<TObject,TRow>
Defined in: src/modules/render-scene3d/render-scene3d.ts:61
Parameters
Section titled “Parameters”options
Section titled “options”Scene3DRendererOptions<TObject, TRow>
Returns
Section titled “Returns”Scene3DRenderer<TObject, TRow>
Methods
Section titled “Methods”dispose()
Section titled “dispose()”dispose(
graph):void
Defined in: src/modules/render-scene3d/render-scene3d.ts:69
Remove every tracked object from graph (calling the remove option for
each) and forget it; the next render recreates what is still selected.
Parameters
Section titled “Parameters”SceneGraph<TObject>
Returns
Section titled “Returns”void
get(
entityId):TObject|undefined
Defined in: src/modules/render-scene3d/render-scene3d.ts:83
The object this pass currently holds for entityId, if the entity was selected on the last render.
Parameters
Section titled “Parameters”entityId
Section titled “entityId”Returns
Section titled “Returns”TObject | undefined
render()
Section titled “render()”render(
__namedParameters):void
Defined in: src/modules/render-scene3d/render-scene3d.ts:87
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”Scene3DRenderContext<TObject>
Returns
Section titled “Returns”void