Re: [osg-users] BUG: RTT camera setClearDepth function doesn't work

2008-05-25 Thread Robert Osfield
Hi Hesicong, Could you please sign your posts with the name you wished to be addressed with, it's tedious having to second guess this stuff, and polite not to just bark emails out without an introduction and a signature. As for the bug now introduced w.r.t clear depth. The line I changed I

Re: [osg-users] BUG: RTT camera setClearDepth function doesn't work

2008-05-25 Thread hesicong2006
Call me Hesicong, that's OK. You may remember I fixed a bug in volume render example :) Robert Osfield wrote: Hi Hesicong, Could you please sign your posts with the name you wished to be addressed with, it's tedious having to second guess this stuff, and polite not to just bark emails out

Re: [osg-users] BUG: RTT camera setClearDepth function doesn't work

2008-05-25 Thread Robert Osfield
Hi Hesicong, On Sun, May 25, 2008 at 1:27 PM, hesicong2006 [EMAIL PROTECTED] wrote: Call me Hesicong, that's OK. You may remember I fixed a bug in volume render example :) Yes I do recall, but there are over 1900 people of the mailing list, I can't fit everybodies personal mapping in my head,

[osg-users] BUG: RTT camera setClearDepth function doesn't work

2008-05-24 Thread hesicong2006
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

Re: [osg-users] BUG: RTT camera setClearDepth function doesn't work

2008-05-24 Thread Robert Osfield
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

Re: [osg-users] BUG: RTT camera setClearDepth function doesn't work

2008-05-24 Thread hesicong2006
OK, it works. BTW, osgscreencapture.cpp can't compile, it says GL_STREAM_READ not defined! Robert Osfield wrote: 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

Re: [osg-users] BUG: RTT camera setClearDepth function doesn't work

2008-05-24 Thread Robert Osfield
On Sat, May 24, 2008 at 9:45 AM, hesicong2006 [EMAIL PROTECTED] wrote: OK, it works. BTW, osgscreencapture.cpp can't compile, it says GL_STREAM_READ not defined! Pesky windows headers... Could you try an svn update to see if the #define's I've added solve things. Robert.

Re: [osg-users] BUG: RTT camera setClearDepth function doesn't work

2008-05-24 Thread hesicong2006
But, another problem. After fix setClearDepth problem, RTT camera setClearColor doesn't work!!! I modified osgprerender.cpp line 319, from camera-setClearColor(osg::Vec4(0.1f,0.1f,0.3f,1.0f)); to camera-setClearColor(osg::Vec4(1,0,0,1)); but the background color do not change. Please check

Re: [osg-users] BUG: RTT camera setClearDepth function doesn't work

2008-05-24 Thread hesicong2006
I just change line 1308 and 1312 to previous version and things works ok. I don't know why you switch the two lines. I attached my version of CullVisitor. hesicong2006 wrote: But, another problem. After fix setClearDepth problem, RTT camera setClearColor doesn't work!!! I modified

Re: [osg-users] BUG: RTT camera setClearDepth function doesn't work

2008-05-24 Thread hesicong2006
But, another problem. After fix setClearDepth problem, RTT camera setClearColor doesn't work!!! I modified osgprerender.cpp line 319, from camera-setClearColor(osg::Vec4(0.1f,0.1f,0.3f,1.0f)); to camera-setClearColor(osg::Vec4(1,0,0,1)); but the background color do not change. Please check

Re: [osg-users] BUG: RTT camera setClearDepth function doesn't work

2008-05-24 Thread hesicong2006
But, another problem. After fix setClearDepth problem, RTT camera setClearColor doesn't work!!! I modified osgprerender.cpp line 319, from camera-setClearColor(osg::Vec4(0.1f,0.1f,0.3f,1.0f)); to camera-setClearColor(osg::Vec4(1,0,0,1)); but the background color do not change. I just change