PDA

View Full Version : Defalut Filtering technique



Mukund
06-01-2011, 12:31 PM
Hello Everyone,

Does OpenGL have bilinear filtering as the default filtering technique?
In some code that i was testing, i specified bilinear filtering explicitly, and then commented that line. But the effect remained the same. So, is this the default technique?

Thanks in advance.

mhagain
06-01-2011, 12:55 PM
The documentation normally tells you what the default is.

http://www.opengl.org/sdk/docs/man/xhtml/glTexParameter.xml

So in this case the default GL_TEXTURE_MIN_FILTER is GL_NEAREST_MIPMAP_LINEAR and the default GL_TEXTURE_MAG_FILTER is GL_LINEAR.

Mukund
06-01-2011, 02:47 PM
Sorry, i should have gone through that before posting here. Thanks.