The osg::Geode ("Geometry Nodes") class derives from osg::Node, which can
have parents but no children. The Geode is a "leaf" in the scene graph tree,
and can only contain Geometry objects -- no child nodes allowed.osg::Group allows you to add child Node objects. So, one solution that might work for you is to have a Group parent node, with (possibly) two Geode children. You could place the osg::Transform as a parent above the Group, which would result in both Geode objects being transformed the same way. I hope that helps, -Paul > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Kerstin Reinemann > Sent: Friday, September 29, 2006 10:19 AM > To: [email protected] > Subject: [osg-users] Adding a geode as a child to another geode > > hi list, > > i have a scene object which is represented as an osg::Geode > in my application. during runtime i am generating another > object which is also represented as an osg::Geode. this > second object can be seen as a virtual trace which can be > attached to a specific scene object using a father(scene > object)-child(trace) relation. so that i am able to transform > both at a time later on. > but as osg::Geode just allows me to addDrawables (no other > geodes) to the scene i am a bit trapped at the moment and > would appreciate any help. :) > > thanks in advance. kerstin. > _____________________________________________________________________ > Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > http://smartsurfer.web.de/?mc=100071&distributionid=000000000066 > > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
