Hi Oliver, On 12/13/06, Oliver Kutter <[EMAIL PROTECTED]> wrote:
thank you for the answer. I'm using a Camera with a PostDrawCallback, which I hope read back the depth values immediatly. I already thought of using FBOs. Is it right, that the RenderBuffer of the FBO provides a fully functional depth buffer from which I can read within a Shader?
A FrameBufferObject is just like the traditional frame buffer in many ways, you can read from it with glReadPixel/osg::Image:readPixels calls, FBO's are totally orthogonal to shaders save for the support for multiple render targets in shaders - you don't need this though. Have a look at the osgprerender example, it uses an osg::CameraNode (now called osg::Camera in CVS) that has a code path that uses an osg::Image to capture the contexts of the FBO. Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
