SceneGraph
- SimpleGeometry
(Leaf node) A simple leaf node represents a trivial drawing primitive, line, polygon, sphere, cylinder etc - ComplexGeometry (Leaf node)
Represents a complex object, typically loaded from a file. A scene graph must implement instancing, allowing a single model to be reused a number of time throughout the scene. A complex leaf normally encapsulates code to load and store data from a file. - TransformTranslate, TransformRotate, TransformScale (Group Node)
These apply transformations to all the children - SetColor, SetTexture, SetLighting (Group Node)
Change attributes of the Rendering system. Any changes apply only to the children - AnimateRotate (Group Node)
A rotation transformation, but rotating by an increasing amount each time. The increase rate is defined in degrees per second
- AnimatePathFollowing (Group Node)
A sequence of points defines a path in space. Objects in the subtree will follow this path over a specified period of time. A number of types of path following are possible;
- AnimateKeyFrame (Group Node)
Most models are composed of a number of key frames, defining intermediate poses in a set piece movement (e.g. walking) . This node will interpolate the model between the keyframes - Switch (Group Node)
A group node, containing a number of subtrees, but only one subtree is rendered. Used to represent an object with different states, e.g. a character in a FPS game could be;
Scene graphs can be used to speed up collision detection, by incorporating a bounding volume at each node