Jump to content
  • Advertisement
Sign in to follow this  
BloodOrange1981

OpenGL Filtering methods or other solutions to these kind of texture problems

This topic is 1325 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement

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

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!