Filtering methods or other solutions to these kind of texture problems

Started by
2 comments, last by BloodOrange1981 9 years, 1 month ago

Hi again.

I've tried using anisotropic filtering but it's still had no effect on particular types of textures, in this case the curtains in the sponza scene

[attachment=26265:Untitled.png]

I've highlighted the unsightly phenomena - what kind of solutions are there, particularly in openGL, for reducing these kind of artifacts?

Advertisement

What texture filtering are you currently using for minification and magnification (i.e. GL_TEXTURE_MIN_FILTER and GL_TEXTURE_MAG_FILTER)?

glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR_MIPMAP_LINEAR);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);

Oh dear. Got those filtering parameters the wrong way round.

It's now

glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST_MIPMAP_LINEAR);
...and it looks wonderful. Without anisotropy too. I tried GL_LINEAR_MIPMAP_LINEAR and some other textures were just too blurry for my liking (floor in the distance etc).
Thank you for making me think!

This topic is closed to new replies.

Advertisement