Anisotropic Filtering

Started by LRFLEW, March 24, 2012, 01:03:01 AM

Previous topic - Next topic

LRFLEW

Ok, I found Config.glTrilinear, which allows me to use trilinear filtering, and Texture.setGLFiltering() and Texture.setMipMap(), which allows me to use Pick Nearest Filtering (although I hope I never have to use them) (Unrelated, but is there a way to change the default values of these two?).  With my game, I'm wondering if I can get Anisotropic Filtering.  Is this supported?  If yes, how?  If no, is it a planned feature?

EgonOlsen

Here a version with a setter in Config: Config.glAnisotropy=[0,1,2,3,4...] to set the level of anisotropic filtering. Mipmaps have to be used on the texture for this to show an effect.

Download: http://jpct.de/download/beta/jpct.jar

LRFLEW

Thanks, that works perfectly.  I was confused at first, but I figured out that 1 meant 2x, 2 meant 4x, and so on.  That could have been clearer, but it still works out.  It would be nice to have a method to tell how much the specific system can support, but I can see if that's unavailable. 

You seem to be the only person keeping this forum alive, and I would like to thank you for all the questions you have answered.  You have helped a lot getting my game started.