PDA

View Full Version : Trilinear filtering



cartilago
11-13-2000, 08:14 AM
Does anyone have an idea of how to get
trilinear filtering in OpenGL for the mac
Im using an ATI Nexus 128 & Voodoo 5500 PCI.

Bert
11-13-2000, 11:15 PM
When you set up your texture use

glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTE R,GL_LINEAR_MIPMAP_LINEAR);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTE R,GL_LINEAR_MIPMAP_LINEAR);

and then set up the correct mipmap image.

See starting on page 338 of the Red book second edition-"Multiple Levels of Detail" is the section name.