PDA

View Full Version : how to do Trilinear filtering of textures....



Fastian
01-08-2001, 07:39 PM
Well it maybe a very simple techique but i'm new to texture mapping, some help needed.

Serge K
01-08-2001, 08:26 PM
glTexParameteri (http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/opengl/glfunc03_9upe.htm) ( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR );

And, of course, you need to set magnif. filter to linear, and your textures must have mipmaps.

Fastian
01-08-2001, 09:41 PM
and how do we add mippmaps to our textures...?

Bob
01-09-2001, 04:47 AM
You can use gluBuild2DMipmaps() instead of glTexImage2D().

You also have to include "GL/glu.h" and add glu32.lib (on Win32 platform) to your project.