Hi Paul, Thanks for the help. I tracked down a bug in my code that was causing the Group that I wanted to be under the Switch to be inserted into the SceneGraph twice.
Cheers, Jim > -----Original Message----- > From: osg-users-boun...@lists.openscenegraph.org > [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf > Of Paul Martz > Sent: Friday, May 29, 2009 5:57 PM > To: 'OpenSceneGraph Users' > Subject: Re: [osg-users] Inserting a Switch node into the SG > > > > How are you determining that you are getting the wrong > results? What > > > you show as the result seems impossible for the code > you've posted, as > > > 'parent' > > > only adds one child: the switch. > > > > I saved the scenegraph to a file and looked at it. > > When are you doing the file write? I'm concerned that some > other code might > be operating on your scene graph between when you load it and > when you write > it out. If I were you, I'd write it out twice, first at the > top of the code > you originally posted, and second at the bottom, so you get > an unambiguous > "before and after" shot of exactly what that one function is changing. > -Paul > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce > negraph.org > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org