Hi Hesicong, Seems I missed adding a few RenderStage::setClear*() to CullVisitor::apply(Camera&). These are now added and checked into SVN.
Could you let me know if things now work fine for you. Robert. On Sat, May 24, 2008 at 7:32 AM, hesicong2006 <[EMAIL PROTECTED]> wrote: > 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 > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

