Hi, Robert:
You added setClearDepth function to camera last few days, it works very fine with ordinary camera. But when I try to setClearDepth with a RTT camera, it does work.
To reproduce this BUG, I take latest SVN version of osgprerender.cpp example to show you.
I add
camera->setClearDepth(0);
to line 321. Default depth value is 1,and default depth function is LESS. So if I set the value to 0, camera will render no scene because all the depth value is NOT LESS than 0.
But the result scene on the flag is same as before. I also modified the value to any value between 0 and 1, the scene remain the same. So I'm sure setClearDepth() is working for RTT camera.

My system configuration:
Nvidia Geforce 8800GTS with 174.55 driver.
Windows Server 2008

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to