[osg-users] release and flush GL Objects?

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


Hi Robert,

On 9/17/07, Robert Osfield <robert.osfield at gmail.com> wrote:
>
> Hi Rafa,
>
> I'm not 100% sure it will work but try:
>
> viewer->getSceneData()->releaseAllGLObjects();


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! :(.

releaseAllGLObjects method is only inside SceneView class
which is not easily accessible in the osgViewer::Viewer.

Thanks,
Rafa.

Robert.
>
> On 9/17/07, Rafa Gaitan <rafa.gaitan at gmail.com> wrote:
> > Hi Robert,
> >
> > We are using the osgViewer::Viewer to integrate our app with
> > Java using jogl to create a GL context and
> > GraphicsWindowEmbedded class. In the past using the
> > SimpleViewer we had the call releaseAllGLObjects(),
> > which internally calls to sceneView->releaseAllGLObjects()
> > and some more stuff.
> >
> > Is there any similar call inside osgViewer::Viewer?, with jogl
> > there is an special Panel that use internally pbuffers to create
> > the context, but when we resize the component the context is
> > lost, so calling releaseGLObjects did the trick for us, but now
> > I don't find a good way to get the same things working.
> >
> > I tried with viewer->getCamera()->releaseGLObjects(); but
> > doesn't
> > work. Maybe adding a releaseAllGLObjects method in View, or
> > in Viewer is a good place. thoughts?
> >
> > Rafa.
> >
> >
> > --
> > 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
> > _______________________________________________
> > osg-users mailing list
> > osg-users at lists.openscenegraph.org
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >
> _______________________________________________
> 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/b4387e5d/attachment-0003.htm>


More information about the osg-users mailing list