[osg-users] How to activate precaching of textures on current version?

Robert Osfield robert.osfield at gmail.com
Fri Sep 21 05:27:35 PDT 2007


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 <mrgalleta at gmail.com> 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 at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



More information about the osg-users mailing list