This example requires a browser that supports the HTML5 <canvas> feature.

Sharing Cores between Nodes

Following a technique used in OpenSG, a SceneJS scene graph node has two parts:


(1) generic node information such as children, parent, type, ID etc, and

(2) type-specific information, such as geometry or material attributes.


The second part is called a core, and that may be reused among nodes of the same type, as demonstrated in this example.


Log