- June 30, 2010 at 5:10 pm #30194
I’m trying to use the GL_OES_texture_float extension on ES2 PC emulator (win32).
Pixel type: GL_FLOAT
Pixel format: GL_RGB
However my object render is invisible or black if I override the alpha component to 1.0.
So it seems my texture contains only zeros.
My sample variable is well defined using highp qualifier.
My graphic card is: GeForce 8300 GS/PCI/SSE2
Am I missing something? Has anyone been there before?June 30, 2010 at 5:24 pm #34066
Is your texture mipmap complete, i.e. does it have all mipmap levels or are you using GL_NEAREST as the minification filter?July 1, 2010 at 8:43 am #34067
I’m using GL_NEAREST and GL_CLAMP_TO_EDGE. I don’t want mipmap.July 2, 2010 at 9:49 am #34068
I was trying to find an example in the SDK but I could not find any.July 2, 2010 at 1:52 pm #34069
I’ve added an extension requirement precompiler statement to my fragment shader:
#extension GL_OES_texture_float : require
That causes the compilation to return an error saying the extension is not supported. That’s funny cause the extensions string does mention GL_OES_texture_float.
Any thought? Do I need to configure the SDK in some ways for this to work?July 2, 2010 at 2:10 pm #34070
Could you please send narrowed example showing the issue you have described in your first post so we can reproduce it?Â
Regards,July 5, 2010 at 10:28 am #34071
Unfortunately I can’t do that so easily cause the whole thing is part of a larger framework. When I get a chance I’ll try to implement a minimalistic example reproducing this issue as it seems the only way forward now.
On the other hand if someone had such a demo application showing basic usage of GL_OES_texture_float extension that would probably fix me up too.July 9, 2010 at 9:20 am #34072
Here is the compilation error that I get when adding the “require” directive into my fragment shader:
ERROR: 0:8: Extension GL_OES_texture_float not supported
ERROR: 1 compilation errors. No code generated.
Still working on PC emulator with the graphic card mentioned above. glGetString(GL_EXTENSIONS) does contain GL_OES_texture_float.July 9, 2010 at 10:27 am #34073
The GLSL #extension mechanism only applies to extensions to the language. GL_OES_texture_float does not extend the shading language.July 9, 2010 at 10:49 am #34074
I see. Good to know. Thanks a lot for that answer.
So I don’t need to do anything to enable GL_OES_texture_float?
It should just work if supported right?August 31, 2010 at 5:15 pm #34075
There is a bug within implementation of OES_texture_float. Our next release (SDK 2.7) will have it fixed.
Regards,September 13, 2010 at 10:09 am #34076
Thanks for looking into this issue.
Do you have any indicative release date for that SDK 2.7?September 22, 2010 at 5:36 pm #34077
The 2.7 SDK should now be available from our website: