RGBA FLOAT Renderbuffer object?

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


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.

As Alfonse mentioned, what formats are available is going to depend on your GL implementation and GPU.

Try RGBA16F.

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.