A SERVICE OF

logo

70
Chapter 5: Building a Scene Graph
For more information about the order in which nodes are acted upon, see The Order In
Which Actions Are Passed Between Nodes on page 86.
There are no rules for constructing a scene graph, however, it is customary to organize it
in the following way:
Reading the nodes left to right shows you the different geometries rendered in a
scene graph.
Reading the nodes from top to bottom shows you the different parts that are
combined to form a larger geometry.
For example, reading horizontally, Figure 5-4 shows that the two subgraphs, Molecules
and Hydrogen bonds, are separate geometries that appear together in world space.
Figure 5-4 Two Sets of Data Rendered Differently
Molecules
Hydrogen
bonds
Root
node