PDA

View Full Version : RGBA FLOAT Renderbuffer object?



_ksi_
01-26-2011, 09:35 AM
Is it possible to make an RGBA FLOAT Renderbuffer Object?
I'd like to render a scene and access the resulting image with float precision.

I'm using
glRenderbufferStorage(GL_RENDERBUFFER, internalformat, width, height);
I can use GL_RGBA8 or GL_RGBA16 for internalformat, but GL_RGBA32 or GL_RGBA32F don't seem to exist. (GL_RGBA exists but gives 8bits.)

I'm on Mac OS 10.6.6

Thanks!

Alfonse Reinheart
01-26-2011, 10:26 AM
I'm on Mac OS 10.6.6

That means you're stuck with OpenGL 2.1 + extensions. You need to see if MacOSX supports one of the floating-point extensions.

Dark Photon
01-26-2011, 05:21 PM
As Alfonse mentioned, what formats are available is going to depend on your GL implementation and GPU.

Try RGBA16F.

arekkusu
01-26-2011, 05:55 PM
Use GL_RGBA32F_ARB or GL_RGBA16F_ARB, from ARB_texture_float.

Note that the older Intel GMA hardware doesn't support floating point formats, so you're out of luck there, regardless of what your OS / driver version is.