I'm using the OSG 1.2 version, but I have the code of the OSG2.0 to compare with, and the clean up is similar. I also try to keep the questions not specific to the 1.2 implementation I noticed that on the clean_frame, the pass over the scene doesn't get to all the objects for some reason. For example, it releases only one texture object while there suppose to be two, and it gets only to one camera of the pair of RTT and show texture on screen cameras. and I'm now debugging it. Maybe I changed the scene and lose pointers to objects somewhere...
Could it be that since one of the camera is pre-render and the other is nested, that the cleanup get only to the nested rendered camera? thanks, Guy. ----- Original Message ----- From: "Robert Osfield" <[EMAIL PROTECTED]> To: "OpenSceneGraph Users" <[email protected]> Sent: Tuesday, September 25, 2007 10:10 AM Subject: Re: [osg-users] FBO > Hi Guy, > > If you destroy a window then all the OpenGL objects associated with it > will be removed. If you are using 2.0/osgViewer it should be able to > automatically release the OpenGL objects and reallocated them on the > new graphics context. > > Which verison of the OSG/viewer library are you using? > > Robert. > > On 9/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi Robert, > > in my application I have the scene graph in some variable, and a camera in > > another variable, then I attach it to viewer, in multi-document window. > > After I close the window, the scene graph & the camera are still alive. > > The next time I want to attach them to a new window I get OpenGL error that > > the frame buffer object is not complete (and nothing is drawn), so I wanted > > to force the renderstage to re-create it, and achieved this by setting the > > rendering cache of the existing camera to NULL. > > > > I just wanted to know if there is another and better way to deal with this > > problem, and also if you know why the FBO was defected after the window was > > closed. > > > > thanks, > > Guy. > > ----- Original Message ----- > > From: "Robert Osfield" <[EMAIL PROTECTED]> > > To: "OpenSceneGraph Users" <[email protected]> > > Sent: Monday, September 24, 2007 3:04 PM > > Subject: Re: [osg-users] FBO > > > > > > > Hi Guy, > > > > > > Have a look at the osgprerender example. You shouldn't need to set > > > anything related to the render cache is this is managed internally. > > > > > > Robert. > > > > > > On 9/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > OK, I got over it but I'm not sure that was the best way. > > > > What I did was to set the camera rendering cache (for the related > > contextID) > > > > to NULL, so the next time the cull visitor applied on the camera, it > > > > recreated the FBO. Any other ideas? > > > > thanks, > > > > Guy. > > > > > > > > ----- Original Message ----- > > > > From: [EMAIL PROTECTED] > > > > To: [email protected] > > > > Sent: Monday, September 24, 2007 1:51 PM > > > > Subject: [osg-users] FBO > > > > > > > > > > > > Hi, > > > > How do I enforce a camera to recreate FBO attached to the color buffer? > > > > > > > > thanks, > > > > Guy. > > > > > > > > ________________________________ > > > > > > > > > > > > _______________________________________________ > > > > osg-users mailing list > > > > [email protected] > > > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > > > > > > > > > > > _______________________________________________ > > > > osg-users mailing list > > > > [email protected] > > > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > > > > > > _______________________________________________ > > > osg-users mailing list > > > [email protected] > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > _______________________________________________ > > osg-users mailing list > > [email protected] > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

