[osg-users] release and flush GL Objects?

Rafa Gaitan rafa.gaitan at gmail.com
Mon Sep 17 09:44:56 PDT 2007


Hi Robert

On 9/17/07, Robert Osfield <robert.osfield at gmail.com> wrote:
>
> HI Rafa,
>
> On 9/17/07, Rafa Gaitan <rafa.gaitan at gmail.com> wrote:
> > Node doesn't have a releaseAllGLObjects, and trying with
> > releaseGLObjects, doesn't work as I expect. Maybe I'm using
> > a bad approach to the problem! :(.
>
> Sorry,
>
>   viewer->releaseGLObjects();



This, doesn't work :(.

Is the call I was thinking of.
>
> > releaseAllGLObjects method is only inside SceneView class
> > which is not easily accessible in the osgViewer::Viewer.
>
> viewer.getSceneData()->releaseGLObjects(); // or getCamera()...
> viewer.getCamera()->getGraphicsContext()->getState()->reset();
> osg::flushAllDeletedGLObjects(0);



Yes, This works better, Thank You!, there is some issues with
PagedLOD nodes, so I need to debug more and see how to solve
them.

Thanks!
Rafa.



_______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Rafael Gaitán Linares
Instituto de Automática e Informática Industrial  http://www.ai2.upv.es
Ciudad Politécnica de la Innovación
Universidad Politécnica de Valencia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070917/be79919b/attachment-0003.htm>


More information about the osg-users mailing list