[osg-submissions] FrameBuffer Antialiasing
paul1492 at yahoo.com
paul1492 at yahoo.com
Tue Mar 4 10:16:41 PST 2008
I am no expert on this but attached are files to have OSG 1.2 support Antialiasing to a FrameBufferObject. I am sorry that I haven't made the same changes to the SVN code but the coversion for SVN should be straightforward.
The changes I have made are based on NVIDIA's simple_framebuffer_object.cpp example (see attached).
To use it, call:
cameraNode->attach(COLOR_BUFFER, texture);
cameraNode->attach(MULTISAMPLE_BUFFER, depthSamples, coverageSamples);
I could have added more error checking on the valid depth and coverage samples (like in the example program) but I didn't.
Feel free to make any changes you like..
Paul P.
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: RenderStage
Url: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080304/0a89cdd4/attachment-0004.pot
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CameraNode
Url: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080304/0a89cdd4/attachment-0003.asc
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: FrameBufferObject
Url: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080304/0a89cdd4/attachment-0005.pot
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CameraNode.cpp
Url: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080304/0a89cdd4/attachment-0004.asc
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: FrameBufferObject.cpp
Url: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080304/0a89cdd4/attachment-0006.pot
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: RenderStage.cpp
Url: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080304/0a89cdd4/attachment-0005.asc
-------------- 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/20080304/0a89cdd4/attachment-0007.pot
More information about the osg-submissions
mailing list