Kai Xia wrote:
but the texture output seem not more smooth than before, and which is worse is 
that there is some obvise black segment on the edge of the objects in 3d scene, 
I dont know what is wrong about this? even I change the texture format to 
GL_RGB / GL_RGBA, the problems remained, could any one tell me how to implement 
MultiSample in FBO, thanks very much!

Hm. It works fine for me with a GL_RGBA texture, and the camera configured as follows:

rootCamera->attach( osg::Camera::COLOR_BUFFER0, tex, 0, 0, false, 8, 8 ); rootCamera->setRenderTargetImplementation( osg::Camera::FRAME_BUFFER_OBJECT, osg::Camera::FRAME_BUFFER );
    rootCamera->setImplicitBufferAttachmentMask(

osg::Camera::IMPLICIT_COLOR_BUFFER_ATTACHMENT|osg::Camera::IMPLICIT_DEPTH_BUFFER_ATTACHMENT,
        osg::Camera::IMPLICIT_COLOR_BUFFER_ATTACHMENT );


   -Paul


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

Reply via email to