Hmmm, I'll look for that in the source, thanks. I was actually hoping I could get rid of our CullVisitor by using a different approach in OSG. There are a lot of subtle things going on in the Cull traversal...
andy -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thrall, Bryan Sent: Tuesday, May 22, 2007 4:20 PM To: osg users Subject: RE: [osg-users] controlling ordering osgUtil::CullVisitor groups Drawables according to their StateSet. If none of your Drawables share a StateSet (it only compares StateSet pointers because actual comparison is too expensive), then what you suggest should result in depth-first traversal of the tree. Of course, not sharing StateSets is kind of expensive in space and time (since you end up with many more OpenGL state changes); the only alternative I can see is writing your own CullVisitor instead of using osgUtil::CullVisitor if you really need depth-first drawing order. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
