Scene Graph Nodes
• Group node
– Group together one more child nodes
– A group node can have only one parent
• Leaf node
– Contain the actual definition of shapes
(geometry), lights, sound, etc.
Building a Scene Graph
• Build nodes by instantiating Java 3D
classes
Shape3D myShape1 = new Shape3D
(myGeom1,myAppear1);
Shape3D myShape2 = new Shape3D(myGeom2);
• Build groups of nodes
Group myGroup = new Group();
myGroup.addChild(myShape1);
myGroup.addChild(myShape2);
Scene Graph Superstructure Objects
• A VirtualUniverse object
– Consists of a list of Local objects that contain a collection of
scene graph nodes
– An application will typically need only one VirtualUniverse
• A Locale object
– Acts as a container for a collection of sub-graphs of the
scene graph that are rooted by a BranchGroup node
– Defines a location within the virtual universe using highresolution
coordinates (HiResCoord) to specify its position