Page 1 of 1

Trying to make UI elements with texture compression in mind

Posted: 03 Apr 2012, 04:02
by luckywaldo7
So, my icons look bad with texture compression enabled:

Image

Since they needed a lot improvement and cleaning up anyway (I was a terrible inkscape newb when I made these), I figured I would try to aim for them still looking ok when texture compression was enabled also, and not get those wierd dark splotches on them.

Anyone have any idea? Texture compression might as well be magic to me so I have no idea what to do to get a decent output.

Re: Trying to make UI elements with texture compression in mind

Posted: 03 Apr 2012, 11:17
by Beherith
Use png, make sure to draw your rectangles pixel perfect, and use :n (nearest neighbour) filtering in the lua load texture call.

Edit: OR did you mean the spring setting texture compression? If so then its not that big a deal, its only visible on the red icons. Even then its minor.

Re: Trying to make UI elements with texture compression in mind

Posted: 03 Apr 2012, 11:37
by jK
2 possibilities:
  • use :l: or :n: (it should disable texcompression)
  • use dds from the start and optimize those

Re: Trying to make UI elements with texture compression in mind

Posted: 04 Apr 2012, 01:00
by luckywaldo7
Yeah, that's the spring settings texture compression. Thanks though! Using :l: and :n: gave me much better results that I can work with pretty easily.