PDA

View Full Version : Floating Point Textures and Texture Encoding



Shade
08-30-2004, 08:19 AM
Hi All,

I wish to create a texture containing floating point values. How is this done ?
I "guess" that I could do something like this

glTexImage2D(GL_TEXTURE_RECTANGLE_EXT, 0,
GL_ATI_texture_float
IMAGE_WIDTH,
IMAGE_HEIGHT,
0,
GL_RGBA,
GL_FLOAT,
bImage);

But I am abit confused, could my bImage then be composed 4 channels each with 32 bit precision ?

08-31-2004, 08:28 PM
opengl extensions are clearly documented in sgi's registry:
http://oss.sgi.com/projects/ogl-sample/registry/ATI/texture_float.txt

among other things, the extansions that make it to the core can be found in the spec:
http://www.opengl.org/documentation/spec.html