Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > OpenGL 3D API > GENERATE_MIPMAP...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 4794 of 4895
Post > Topic >>

GENERATE_MIPMAP_SGIS

by Makhno <root@[EMAIL PROTECTED] > Jun 13, 2008 at 12:09 AM

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
 




 3 Posts in Topic:
GENERATE_MIPMAP_SGIS
Makhno <root@[EMAIL PR  2008-06-13 00:09:19 
Re: GENERATE_MIPMAP_SGIS
fungus <openglMYSOCKS@  2008-06-13 00:01:58 
Re: GENERATE_MIPMAP_SGIS
"Dave Eberly" &  2008-06-13 02:32:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Aug 30 3:59:48 CDT 2008.