Inherit it the wrong term. The sofa Node would be parented to the room
Node. But, Geode can't have children, only Groups (another kind of Node)
can. So you'd make a Room Group. Its children would be the Room Walls Geode
and the Sofa Geode. Rotating the Room Group would rotate all the stuff that
was a child of it (Walls and Sofa). But Groups and Geodes don't know how to
rotate by themselves.

Rotating is usually done by a special derived type of Group Node called a
PositionAttitudeTransform. Make your Room Group be a
PositionAttitudeTransform instead and you can rotate its children. In order
to rotate the sofa without rotating the room, you would need to make the
sofa be a child of a Sofa PositionAttitudeTransform, which itself was the
child of the room PositionAttitudeTransform.


-- 
Chris 'Xenon' Hanson, omo sanza lettere. [email protected]
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Digital Imaging • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography
• Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS •
Android
@alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
623-PIXL [7495]
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to