Hi,I'm having a bit strange problem with FrameBuffer rendering to texture, at least a problem for me, I'm new to OSG (1.2).
When I render my test scene standardly with Multisampling, output on screen is nice, smooth (see enclosed image). What I need is to make a distortion - render the same scene firstly to the FrameBuffer (Multisampling still on), then copy it to the texture, map it on the plane which covers the whole screen and finally render it again on the screen. RenderTargetImplementation is FRAME_BUFFER. Man would expect that what has been rendered to FB will be copied to texture, rendered again on plane object and results are both the same. Now here's the problem. They are not the same (as can be seen on enclosed image), the final antialiasing quality is downgraded, edges are not smooth but bumpy. The same effect arises with some higher types of Supersampling. It looks like some information has lost or has been "downsampled somehow" when copying from FB to texture.
I'm working on GF 8800GTX, the following lines list how it behaves with different AA settings:
AA off - both screens are the same MS 2x - are the same MS 4x - are the same (but insufficient quality) MS 8xQ - rendered to texture and then displayed screen is worst SS 2x2 - RTT screen not antialiased at all SS 4x4 - RTT screen not antialiased at all SS 4xS - both look the same (pretty acceptable for my project) SS 8xS - RTT is worst, textured objects look a bit blurry SS 16xS - RTT is worst, textured objects look a bit more blurrySS 32xS - RTT even worst, almost looks like not antialiased (but still is a bit)
In project I'm working on I need to have nice smooth edges and good looking textures while using distortion. The SS 16xS is ideal for it, but suffers the same problem as described higher. I want to avoid pbuffer and FBO, which is not antialiased. With FBO I need to render image in much higher resolution, then shrink it on plane and render it which is what I want to avoid. I've read something about FBOs extension which allows AA, but I guess that OSG does not support it (sorry if I'm wrong).
To summarize it, my question is:Is it possible to get both screens totally the same with SS 16xS (or MS 8xQ)?
Thanks for any eventual advice. Regards Zdenek Kussior
<<inline: osg01.jpg>>
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

