Hey guys, I have a quite a high level question about multiple parents and node visibility.
Let's say i have a osg::Group containing a sphere osg::Geode. I add another osg ::Group containing a pyramid as child of the first osg ::Group, and display it somewhere below the sphere. If I set the "root" osg::Group to invisible, the sphere disappears, and the pyramid disappears too. Nothing complicated. Then, I introduce a transparent box into the scene which has a osg::MatrixTransform as parent, so I can move it around easily. Now, I want to make the scene look like the box contains the cube, and when the box is moved, then the sphere is moved as well, but I don't want the box to disappear if the pyramid is set to invisible. So I added the sphere as child of the osg::MatrixTransform. A drawing of the situation is attached. What I did not expect at first was that the Pyramid Geode would be duplicated, but that sounds quite straightforward now because the draw traversal will occur two times on this very Pyramid. The problem is that I don't want the geode to be visualy duplicated ! Is there an elegant way to reference a node as child of another node without redrawing? Or will I have to maintain an external list of pointers? Thanks for your time ! Cheers, Arnaud[/img] ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=59746#59746 Attachments: http://forum.openscenegraph.org//files/scenegraph_172.png _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

