Re: [osg-users] release and flush GL Objects?

2007-10-01 Thread Rafa Gaitan
Hi Robert On 9/17/07, Robert Osfield [EMAIL PROTECTED] wrote: HI Rafa, On 9/17/07, Rafa Gaitan [EMAIL PROTECTED] 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,

Re: [osg-users] release and flush GL Objects?

2007-09-19 Thread Schmidt, Richard, SDGE1
Another problem is, that nodes which are currently not connected to the sceneview/camera won't release their GL objects. Richard On 9/17/07, Rafa Gaitan [EMAIL PROTECTED] wrote: viewer.getSceneData()-releaseGLObjects(); // or getCamera()...

Re: [osg-users] release and flush GL Objects?

2007-09-19 Thread Robert Osfield
On 9/19/07, Schmidt, Richard, SDGE1 [EMAIL PROTECTED] wrote: Another problem is, that nodes which are currently not connected to the sceneview/camera won't release their GL objects. Well there isn't much the core OSG can do about this. If you go detect objects from the Viewer and it non longer

[osg-users] release and flush GL Objects?

2007-09-17 Thread Rafa Gaitan
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.

Re: [osg-users] release and flush GL Objects?

2007-09-17 Thread Robert Osfield
Hi Rafa, I'm not 100% sure it will work but try: viewer-getSceneData()-releaseAllGLObjects(); Robert. On 9/17/07, Rafa Gaitan [EMAIL PROTECTED] wrote: Hi Robert, We are using the osgViewer::Viewer to integrate our app with Java using jogl to create a GL context and GraphicsWindowEmbedded

Re: [osg-users] release and flush GL Objects?

2007-09-17 Thread Rafa Gaitan
Hi Robert, On 9/17/07, Robert Osfield [EMAIL PROTECTED] 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

Re: [osg-users] release and flush GL Objects?

2007-09-17 Thread Robert Osfield
HI Rafa, On 9/17/07, Rafa Gaitan [EMAIL PROTECTED] 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(); Is the call I was thinking of.

Re: [osg-users] release and flush GL Objects?

2007-09-17 Thread Robert Osfield
On 9/17/07, Rafa Gaitan [EMAIL PROTECTED] wrote: 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