Hello,
In my struggle to sup****t the seemingly huge number of DDS options that
seem to exist, I've come across some DDS files that are compressed, but
don't have have mipmaps (such that dwMipMapCount==0).
A long time ago I was told, in this group, to use
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D,GENERATE_MIPMAP_SGIS,TRUE);
glCompressedTexImage2DARB
(
GL_TEXTURE_2D,
0,
(GLenum)format,
width,height,
0,size,
pixels
);
and though the texture appears fine, when it is in the distance it looks
like random noise - as if mipmaps were turned off.
Any ideas as to my failure?
Cheers


|