Different between Renderbuffer and Texture?

1,212 views
Skip to first unread message

will mi

unread,
May 12, 2010, 1:25:13 AM5/12/10
to G3D Users
As show in Framebuffer Detailed Description:

In addition to Textures, Renderbuffers may also be bound to the
Framebuffer. This is done in a very similar manner to the Texture
object in the example. Renderbuffer class contains an example of this
operation.

What's the different between Renderbuffer and Texture, as they both
exist on GPU.

If each Renderbuffer correspond to one opengl buffer, and how can I
use Renderbuffer back on CPU?
Use glMapBuffer and read?

Tim Čas

unread,
May 12, 2010, 3:41:19 AM5/12/10
to g3d-...@googlegroups.com
"What's the different between Renderbuffer and Texture, as they both
exist on GPU."
Renderbuffers are used as stencil, depth, etc... buffers, while textures are just that - pixel data containing color (and possibly alpha) values.

Corey Taylor

unread,
May 12, 2010, 6:58:00 PM5/12/10
to g3d-...@googlegroups.com
This does a pretty good job of explaning the restrictions and setup of FBO's with textures and/or renderbuffer.
 
 
You should be able to access a renderbuffer with the standard pixel read functions.
 
Morgan probably has some performance advice for FBO use.
 
corey

Reply all
Reply to author
Forward
0 new messages