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 <[email protected]>
wrote:
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
[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