www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: kkl on September 26, 2014, 05:30:43 pm

Title: Texture pixelated or weird for etc1 compressed normal bump map
Post by: kkl on September 26, 2014, 05:30:43 pm
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 (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.
Title: Re: Texture pixelated or weird for etc1 compressed normal bump map
Post by: EgonOlsen on September 26, 2014, 08:33:02 pm
Yes, it's a lossy compression format. It's usually better looking then using 16bit textures, but it depends on the texture's content.
Title: Re: Texture pixelated or weird for etc1 compressed normal bump map
Post by: kkl on September 27, 2014, 04:10:42 am
Quote
It'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?
Title: Re: Texture pixelated or weird for etc1 compressed normal bump map
Post by: EgonOlsen on September 27, 2014, 09:19:17 am
It works best on 'normal' textures. High or low frequency textures will suffer the most.
Title: Re: Texture pixelated or weird for etc1 compressed normal bump map
Post by: kkl on September 27, 2014, 05:22:10 pm
I guess I have to use normal map without compression then. Thanks alot egon.