View Full Version : floating point cubic textures?

06-02-2005, 10:19 AM
I am having trouble defining a floating point cubic texture. Not even sure if it's supported (nothing is mentionned about cubic textures in the extension's specs).

basically I do:
- glGenTextures
- glBindTexture(GL_TEXTURE_CUBE_MAP_ARB...
for 1 to 6
- glTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_XXX_ARB, 0, 3, 512, 512, 0, GL_FLOAT_RGB32_NV, GL_FLOAT, data);

but the texture ends up all black.

any ideas?

06-02-2005, 11:07 AM
AFAIK NV_float_buffer floating point formats are only available for rectangular textures targets (EXT/ARB_texture_rectangle).

Java Cool Dude
06-02-2005, 11:38 AM
You can only use float cubemap targets with GF6200+ and Radeon9500+

06-02-2005, 01:36 PM
The GL_NV_float_buffer extension (GeForce 5200+) is limited to the TEXTURE_RECTANGLE texture target. The GL_ARB_texture_float/GL_ATI_texture_float extension (GeForce 6200+) can be used for all texture targets.