capedica
09-30-2005, 05:55 AM
Hi, i was using float texture on Ati with success, then i've tried on Nvidia and nothing is right. On ati i simply define a float texture in this way:
glTexImage2D(GL_TEXTURE_2D,0,GL_RGB32F_ARB,t->whidth,t->height,0,GL_RGB,GL_FLOAT,t->pixmapF);
On nvidia i've tried with:
glTexImage2D(GL_TEXTURE_RECTANGLE_NV,0,GL_FLOAT_RG B32_NV,t->whidth,t->height,0,GL_FLOAT_RGB32_NV,GL_FLOAT,t->pixmapF);
And in my shader i get this texture with uniform sampler2DRect but i obtain nothing.
Filtering is NEAREST.
Do you have any idea?
Thank you
glTexImage2D(GL_TEXTURE_2D,0,GL_RGB32F_ARB,t->whidth,t->height,0,GL_RGB,GL_FLOAT,t->pixmapF);
On nvidia i've tried with:
glTexImage2D(GL_TEXTURE_RECTANGLE_NV,0,GL_FLOAT_RG B32_NV,t->whidth,t->height,0,GL_FLOAT_RGB32_NV,GL_FLOAT,t->pixmapF);
And in my shader i get this texture with uniform sampler2DRect but i obtain nothing.
Filtering is NEAREST.
Do you have any idea?
Thank you