View Full Version : how to do Trilinear filtering of textures....
01-08-2001, 06:39 PM
Well it maybe a very simple techique but i'm new to texture mapping, some help needed.
01-08-2001, 07: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.
01-08-2001, 08:41 PM
and how do we add mippmaps to our textures...?
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.