Trying to make UI elements with texture compression in mind

Trying to make UI elements with texture compression in mind

Share and discuss visual creations and creation practices like texturing, modelling and musing on the meaning of life.

Moderators: MR.D, Moderators

Post Reply
luckywaldo7
Posts: 1398
Joined: 17 Sep 2008, 04:36

Trying to make UI elements with texture compression in mind

Post 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.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

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

Post 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.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

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

Post by jK »

2 possibilities:
  • use :l: or :n: (it should disable texcompression)
  • use dds from the start and optimize those
luckywaldo7
Posts: 1398
Joined: 17 Sep 2008, 04:36

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

Post 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.
Post Reply

Return to “Art & Modelling”