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

dimi christop dimi_christop at yahoo.com
Fri Mar 4 02:24:57 PST 2016

You can render GL objects creating an osgNode and overwriting the drawing call.There is an example how to do it in the OSG CookBook of Packt Publishing.I dont remember if there is a demo in the exmaples though.

    On Friday, March 4, 2016 11:23 AM, Clement Begotto <c.begotto at laposte.net> wrote:


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!


Read this topic online here:

osg-users mailing list
osg-users at lists.openscenegraph.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160304/3ce2cd44/attachment-0003.htm>

More information about the osg-users mailing list