Content deleted Content added
m →Links |
Rescuing 1 sources and tagging 0 as dead.) #IABot (v2.0.9.2 |
||
(35 intermediate revisions by 29 users not shown) | |||
Line 1:
The '''frame buffer object''' architecture (FBO) is an extension to [[OpenGL]] for doing
==Uses==▼
The FBO has two main uses: The post-processing of rendered images and, Composition between different scenes.▼
▲== Uses ==
▲The FBO has two main uses: The post-processing of rendered images and
Some examples are:
# The rendered image is captured and subjected to [[Fragment Shaders]] or other manipulations. This allows for many of
== Advantages over other methods ==▼
▲many of todays ''popular computer graphics effects'' to be carried out, including the addition of a blurring or bloom
▲2. Can be used to create views of other scenes, for example: a TV in a house. A scene can be rendered through an FBO to a texture, then that
▲==Advantages over other methods==
Methods involving the FBO are considered superior because:
▲* It is easier to setup than most other methods.
* Does not require context switching.
* Is more efficient because resources are shared within the same context.
* Is more flexible because all of [[depth buffer]], [[stencil buffer
== Architecture ==
To use an FBO one simply creates an instance of it. Along with the FBO
▲To use an FBO one simply creates an instance of it. Along with the FBO comes several attachments, one can then
For example:
* Create an FBO and bind it.
* Attach the depth buffer (either as a RenderBuffer or a texture) to the FBO.
* Bind the native window FrameBuffer (id=0)
*
== External links ==
* [http://oss.sgi.com/projects/ogl-sample/registry/EXT/framebuffer_object.txt Framebuffer object technical paper
▲* attach the color buffer to the a texture
* [https://web.archive.org/web/20070108122530/http://openvidia.sourceforge.net/fbo.shtml Framebuffer object reference at openvidia]
* [http://www.songho.ca/opengl/gl_fbo.html Example code for Windows and Linux]
▲* render the texture to screen with a pixel shader, dependent on both the Color infomation and depth infomation
* [https://web.archive.org/web/20131101002803/http://www.opengl.org/wiki/GL_EXT_framebuffer_object EXT Framebuffer] (opengl.org)
▲Framebuffer object technical paper. [http://oss.sgi.com/projects/ogl-sample/registry/EXT/framebuffer_object.txt]
[[Category:OpenGL]]
|