Hey all!
been a while since been on the forum, good to be back
I’m playing with something at the moment where i need to render a single pixel as an unsigned short and read the value back.
i’m trying on osx…
indexBuffer.allocate(1, 1, GL_LUMINANCE16);
but getting FRAMEBUFFER_UNSUPPORTED
which is strange, as I’m using that target type (unsigned 16bit) in DirectX on the same machine/graphics card without error, so i presume the card supports it (though noted osx/ogl differs from dx). I’m thinking maybe either i’m using the wrong GL constants, or there’s extension modes that i need to use (e.g. like the way ofFbo example uses GL_RGBA32F_ARB)
Other colour modes that throw the same error FRAMEBUFFER_UNSUPPORTED:
-
GL_LUMINANCE
-
GL_LUMINANCE8
-
GL_LUMINANCE16 (above)
-
GL_LUMINANCE16_EXT
ones that work:
-
GL_RGB
-
GL_RGBA
-
GL_RGB32F
-
GL_RGBA32F
-
GL_RGBA32F_ARB
ones that throw FRAMEBUFFER_INCOMPLETE_ATTACHMENT
-
GL_R16
-
GL_R16UI
-
GL_RGB10
-
GL_RGB12
i can live with GL_RGBA32F for the time being.
Is this something:
- The way oF is setup with openGL
- Specific implementation missing from ofFbo/ofTexture
- My machine (mid-2008 MacBook Pro w/NVidia 9400,9600 GPU, NOTE: i’m using the 9600 for testing)
?
These modes all work in DX on the same machine (except haven’t checked 10bit,12bit modes)
It seems the ‘FRAMEBUFFER_UNSUPPORTED’ list should all be working, however…
afaik GL_LUMINANCE16 is supposed to be depreciated in favour or GL_R16.