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

Reply via email to