Texture pixelated or weird for etc1 compressed normal bump map

Started by kkl, September 26, 2014, 05:30:43 PM

Previous topic - Next topic

kkl

Hi Egon,

I set my texture to mipmap and setTextureCompression(true), and it seems like the texture is pixelated and sometimes looks weird (some black area on part of the texture) for normal map, but it does not have the issue when compression is off. I'm using the shader code from http://www.jpct.net/wiki/index.php/Shaders. In addition, I tried out with the hello shader by setting all textures with etc1 compression, it looks quite different than what it is in without the compression. Is it normal that etc1 compression will lose texture quality? However, if the normal texture is compressed, it looks ok.

EgonOlsen

Yes, it's a lossy compression format. It's usually better looking then using 16bit textures, but it depends on the texture's content.

kkl

QuoteIt's usually better looking then using 16bit textures, but it depends on the texture's content.
Depend on texture content? Does it mean if the texture have less distinct color, then the texture might get alot different than the original?

EgonOlsen

It works best on 'normal' textures. High or low frequency textures will suffer the most.

kkl

I guess I have to use normal map without compression then. Thanks alot egon.