Hi, I want to render depth buffer of a scene to texture for further processing. I've read the osgprerender example, and know how to write color buffer to texture. I changed line 376 from camera->attach(osg::Camera::COLOR_BUFFER, texture); to camera->attach(osg::Camera::DEPTH_BUFFER, texture); but it gives me a black texture which renders on the waved flag. I don't know if any preparation is needed before use DEPTH_BUFFER, can any one help me? My system: Windows Server 2008 with Aero effect enabled, use NVIDIA 163.75 driver.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

