On Jan 15, 2008 4:03 PM, Paul Martz <[EMAIL PROTECTED]> wrote: > > The osgUtil::GLObjectsVisitor is used for compiling objects > > in the scene graph. It's automatically called by osgViewer > > on the first frame that the viewer is run. If you are adding > > a scene graph later on then all you need to do is use a > > Camera pre draw callback that uses the GLObjectsVisitor to > > compile everything, then once its done remove the callback. > > Does GLObjectsVisitor compile OpenGL objects for non-active children of > Sequence and Switch nodes, or only the active children?
This is controlled by the NodeVisitor::setTraversalMask(). For GLObjectVisitor it defaults to TRAVERSE_ALL_CHILDREN (See the constructors implementation). Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

