HUD Texture Quality. I want the best, how to change?

Hi there.



I tried to find out how to render better quality textures.

In our project we've built our own GUI system. For example. Icons, we have quads of the same size of the texture, and we just put it there using a Texture Manager.





But they look HORRIBLE!!!. Really really horrible. Cracky, or whatever.



I wan

By default jME will use compression, disable it with TextureManager.USE_COMPRESSION (or similar). Also make sure to use the min/mag filter BilinearNoMipmaps and Bilinear. If this doesn't help, maybe a screenshot will shed more light on the issue.

what theā€¦



YES!! i just have discovered it



Its



TextureManager.COMPRESS_BY_DEFAULT = false;





Before you do anything with the texturemanager.



That

:slight_smile: Glad it was that simple.

Though compression can be helpful in many cases for regular (object) textures. You should keep it enabled by default but disable it only for your HUD textures. There's a variation of the TextureManager.loadTexture() method that takes an Image.Format argument, you should pass Format.GuessNoCompression to it to disable compression for HUD textures.

mmm. yes. Is it ok if i just turned it off when i create the textures for the HUD, and then turn it on again?.

darkgaze said:

mmm. yes. Is it ok if i just turned it off when i create the textures for the HUD, and then turn it on again?.

Yeah, that should work too.