Login  Register

Re: GL_RGBA32F with glTexImage2D

Posted by Moa on Nov 13, 2015; 8:44am
URL: https://forum.jogamp.org/GL-RGBA32F-with-glTexImage2D-tp4035766p4035773.html

Thanks for taking the time to comment, gentlemen.

The problem is not a compile-time problem, but a run-time one.

You didn't have much information to go on, so my apologies for that.  The problem when using GL_RGBA32F at runtime produces the following stack trace on JoGL 2.3.2, but works fine on JoGL 2.1.2

com.jogamp.opengl.GLException: Could not find PixelFormat for format and/or type: PixelAttributes[fmt 0x1908, type 0x1406, null]
        at com.jogamp.opengl.util.GLPixelBuffer$GLPixelAttributes.<init>(GLPixelBuffer.java:498)
        at com.jogamp.opengl.util.GLPixelBuffer$GLPixelAttributes.<init>(GLPixelBuffer.java:464)
        at com.jogamp.opengl.util.texture.TextureData.<init>(TextureData.java:141)

Looking at the class  GLPixelBuffer.GLPixelAttributes it becomes clear that floating-point pixels are no longer supported in JoGL's utilities  (where they were at a point in the past).

I'll try to modify GLPixelBuffer locally to see if I can get around my problem, and if I do this successfully will post a patch here.

Anyway, I thought you gents should know about the regression for HDR textures.  Thanks for all the work you do on this project.