I am currently trying to create a cubemap with a floating point format that will be bound as a render target using the FBO extension. But I simply fail creating such a texture. I have tried the following code, even with many modifications of the parameter “GL_RGB_FLOAT16_ATI”, but if I check for an error using glGetError() this code seems always to fail.
GLuint tex;
glGenTextures(1, &tex);
glBindTexture(GL_TEXTURE_CUBE_MAP, tex);
glTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X, 0, GL_RGB_FLOAT16_ATI, 256, 256, 0, GL_RGB, GL_FLOAT, NULL);
Does anybody have some experience with creating floating point textures for usage with FBO?
The hardware I am working on is a Geforc FX Go 5700 with the latest drivers being installed. I am especially curious about the fact that the NVidia HDR demo does work on that machine, and the cod of that demo just uses the same call as above, except that the demo really loads in some data and does not specify a NULL-pointer to the image.
Thanks,
Kaya