58
Chapter 4: Scene Graph Nodes
Group Nodes
Group nodes associate other nodes into a hierarchy known as a scene graph. Only group
nodes can have children. A group node, for example, might associate two csShape
nodes, as shown in Figure 4-1.
Figure 4-1 A Simple Grouping
Actions, such as a draw action, applied to a group node may be applied in no particular
order to some or all of its children. A group node, then, defines the scope of an action.
For more information about actions, see Chapter 7, “Traversing the Scene Graph.”
Group Node Types
The following list shows all of the different types of Cosmo 3D group nodes; all are
derivatives of csGroup:
• csSwitch—selects none, one, or all of its children, depending on its value. See
“Using csSwitch to Switch Between Nodes” on page 59.
• csBillboard—rotates its children to face the viewer at the same time. See “Using
csBillboard” on page 60.
Group
node
csShape
node
csShape
node