OK,
I found the solution :
Code:
foregroundView->getCamera()->setClearMask(GL_DEPTH_BUFFER_BIT);
The foregroundView is now indeed transparent !
The next problem is how to handle mouse events throught it to be able to
control the backgroundScene throught the transparent parts of the
foregroundScene, and still control the foregroundScene when clicking on objets
from it ...
Do you know if there is a magic call for that, or should I implement my own
envent handler ?
Thank you!
Stephane
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59623#59623
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org