Hi,
Okay, my setup is different.
I might be wrong, but either you bind the depth buffer to a texture too,
or read it to a texture after the first pass.
Binding it to the first frame is not a problem however. There no magic
about it. Just be sure that you bind it to all passes that perform depth
tests afterwards.
Maybe someone else has a better solution to your problem.
cheers
Sebastian
Hello Sebastian,
thanks for a quick reply. I wanted to do something like that, but I am missing the
"depth_tex" part. The first camera doesn't render to texture, but to a
classical frame buffer/depth_buffer. The second camera is then RTT, but it should be
using the depth buffer from the first one.
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48183#48183
_______________________________________________
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