The osg Camera has a clear mask, which you can set to not clear the Depth and the Color buffer.
Christian 2016-03-03 18:31 GMT+01:00 Clement Begotto <c.bego...@laposte.net>: > Hi, > > I am working on a software which already has its existing OpenGL context > and loop. I have to represent objects with different Level of Detail and I > have decided to use OSG because it manages itself LODs that have to be > displayed. > > The problem is that some objects are drawn before and after my OSG objects > and I dont want them to be erased. Currently I use the frame() method but > it only draw the last OSG group and the following non OSG objects because > frame() reset and swap buffers. So I need OSG to draw in the back buffer > without clearing it before and without swapping after. > > Is there any way to only do the drawing of an OSG object inside an > existing OpenGL loop without clearing or swapping buffers ? > > ... > > Thank you! > > Cheers, > Clement > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=66482#66482 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org