[osg-users] Rendering OSG objects inside an existing OpenGL loop

Christian Buchner christian.buchner at gmail.com
Fri Mar 4 01:43:08 PST 2016

The osg Camera has a clear mask, which you can set to not clear the Depth
and the Color buffer.


2016-03-03 18:31 GMT+01:00 Clement Begotto <c.begotto at 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 at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160304/00827738/attachment-0003.htm>

More information about the osg-users mailing list