Author Topic: Texture pixelated or weird for etc1 compressed normal bump map  (Read 2340 times)

Offline kkl

  • float
  • ****
  • Posts: 291
    • View Profile
Texture pixelated or weird for etc1 compressed normal bump map
« 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. 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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Texture pixelated or weird for etc1 compressed normal bump map
« Reply #1 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.

Offline kkl

  • float
  • ****
  • Posts: 291
    • View Profile
Re: Texture pixelated or weird for etc1 compressed normal bump map
« Reply #2 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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Texture pixelated or weird for etc1 compressed normal bump map
« Reply #3 on: September 27, 2014, 09:19:17 am »
It works best on 'normal' textures. High or low frequency textures will suffer the most.

Offline kkl

  • float
  • ****
  • Posts: 291
    • View Profile
Re: Texture pixelated or weird for etc1 compressed normal bump map
« Reply #4 on: September 27, 2014, 05:22:10 pm »
I guess I have to use normal map without compression then. Thanks alot egon.