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

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to