[osg-submissions] FrameBuffer AntiAliasing with OSG 2.5
paul1492 at yahoo.com
paul1492 at yahoo.com
Mon Jun 2 05:41:43 PDT 2008
I've attempted to add FrameBuffer AntiAliasing to OSG... I did this before with OSG 1.2 and now my company has found the money to pay me to look into adding it to the latest OSG.
However, since I do not have access to SVN (not approved use by my employer :-(), I've made the required changes to OSG 2.5... I don't think much has changed in this area since then...
Like last time, I've attached the NVIDIA test program "simple_framebuffer_object.cpp".
I've done my best to support a "fallback" implementation if the hardware doesn't support it...
To support frame buffer AA, I've extended the camera->attach() function to support an additional (optional) 2 arguments. They are: Coverage AA Samples and Depth AA Samples.
Here is how I call it:
camera->attach(osg::CameraNode::COLOR_BUFFER, texture,
0, 0, false,
mCoverageAAMode, mDepthAAMode);
Feel free to make any changes.
Paul Palumbo
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Camera.cpp
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080602/a921abca/attachment-0007.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: FrameBufferObject.cpp
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080602/a921abca/attachment-0008.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: RenderStage.cpp
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080602/a921abca/attachment-0009.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Camera
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080602/a921abca/attachment-0010.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: FrameBufferObject
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080602/a921abca/attachment-0011.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: RenderStage
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080602/a921abca/attachment-0012.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: simple_framebuffer_object.cpp
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080602/a921abca/attachment-0013.txt>
More information about the osg-submissions
mailing list