Hi Carlos, The osgViewer automatically pre compiles the subgraph when the windows are created.
Is it that you are looking for a compile pass during the running of the app? Robert. On 9/21/07, Carlos Zoido <[EMAIL PROTECTED]> wrote: > Hi all, > > Could anyone please tell me how can i activate the textures precache > in current stable version ? > In the past I had this piece of code to do that task, wich piece of > code would substitute this one ? > > for(osgProducer::OsgCameraGroup::SceneHandlerList::iterator > itr=viewer->getSceneHandlerList().begin();itr!=viewer->getSceneHandlerList().end();++itr) > { > osgUtil::SceneView* sceneview = (*itr)->getSceneView(); > sceneview->setInitVisitor(new > osgUtil::GLObjectsVisitor(osgUtil::GLObjectsVisitor::COMPILE_DISPLAY_LISTS)); > } > > Thanks a lot! > > > Carlos. > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org