Hi, Robert:
Could you give me an answer? Thanks!
Hesicong
J.P. Delport wrote:
Hi,
hesicong2006 wrote:
Hi, Delport and Robert:
I now want to set the camera with FSAA support, the newest SVN
version has provided the parameters for camera->attach.
I changed line 344 of osgmultiplerendertargets.cpp from
camera->attach(osg::Camera::BufferComponent(osg::Camera::COLOR_BUFFER0+i),
textureRect[i]);
to
camera->attach(osg::Camera::BufferComponent(osg::Camera::COLOR_BUFFER0+i),
textureRect[i], 0,0, false ,4,4);
and line 360 from
camera->attach(osg::Camera::BufferComponent(osg::Camera::COLOR_BUFFER0
+ tex_to_get), image);
to
camera->attach(osg::Camera::BufferComponent(osg::Camera::COLOR_BUFFER0
+ tex_to_get), image, 4, 4);
This will give me 4X FSAA support. But to my disappointment, the
output pixel data will not exceed 1. That could be a problem!
Yes, I'm not sure about the interaction between AA and floating point
buffers.
jp
|
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org