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
believe fixed a bug, but... it looks like a bug elsewhere made the
original code behave the way you wanted.  I will investigate.

Robert.

On Fri, May 9, 2008 at 2:52 AM, hesicong2006 [EMAIL PROTECTED] wrote:
 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 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.
 Please check it, thanks!

 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 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
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

 __ Information from ESET NOD32 Antivirus, version of virus signature
 database 3128 (20080523) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.com





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 without an introduction and a
signature.

As for the bug now introduced w.r.t clear depth.  The line I changed I
believe fixed a bug, but... it looks like a bug elsewhere made the
original code behave the way you wanted.  I will investigate.

Robert.

On Fri, May 9, 2008 at 2:52 AM, hesicong2006 [EMAIL PROTECTED] wrote:
  
  
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 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.
Please check it, thanks!

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 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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

__ Information from ESET NOD32 Antivirus, version of virus signature
database 3128 (20080523) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



  
  ___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

__ Information from ESET NOD32 Antivirus, version of virus signature database 3128 (20080523) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



  




___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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, it's far far easier
to users to remember my name than the other way around so it's good to
show a bit of consideration and use the structure of email that I have
requested to make my job easier.  i.e.

  Hi Your Name/All

  Context of Mail.

  Cheers/Thanks/Regards
  My Name

Not only is this the polite way to correspond, and make my life easier
but it also makes it much easier to follow threads and who has written
what.

Thanks,
Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 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
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



  
  ___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

__ Information from ESET NOD32 Antivirus, version of virus signature database 3128 (20080523) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



  




___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 it, thanks!

Robert Osfield wrote:

  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.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

__ Information from ESET NOD32 Antivirus, version of virus signature database 3128 (20080523) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



  




___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 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 it, thanks!
  
Robert Osfield wrote:
  
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.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

__ Information from ESET NOD32 Antivirus, version of virus signature database 3128 (20080523) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



  
  
  
  
__ Information from ESET NOD32 Antivirus, version of virus
signature database 3128 (20080523) __
  
The message was checked by ESET NOD32 Antivirus.
  
  http://www.eset.com
  

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



__ Information from ESET NOD32 Antivirus, version of virus signature database 3128 (20080523) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
  





CullVisitor.rar
Description: Binary data
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 it, thanks!

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 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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



  
  ___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

__ Information from ESET NOD32 Antivirus, version of virus signature database 3128 (20080523) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



  




___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 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.
Please check it, thanks!

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 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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



  
  ___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

__ Information from ESET NOD32 Antivirus, version of virus signature database 3128 (20080523) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



  





CullVisitor.rar
Description: Binary data
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org