Author Topic: UITiledSprite problem  (Read 3054 times)

DontShooot

  • Guest
UITiledSprite problem
« on: September 05, 2012, 01:48:56 PM »
Hi, guys. I have an atlas (2048x2048) and progress bar sprite in it (32x32).


So UITiledSprite works strange to me


First of all I disabled mipmaps in atlas texture. It helped a little bit. Then I realised that this is because of sprite borders, but I'm not sure how can I fix it without tweaking atlas parameters everytime I re-export atlas. Thanks beforehand

PhilipC

  • Guest
Re: UITiledSprite problem
« Reply #1 on: September 05, 2012, 02:52:21 PM »
What does the original sprite texture look like? it seems like you alpha fade off around the texture (just looking at the first screen shot) which would cause the sprite to be "larger" then you are hoping for

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UITiledSprite problem
« Reply #2 on: September 05, 2012, 03:52:15 PM »
You need to specify a border of 1 pixel on the sprite.

DontShooot

  • Guest
Re: UITiledSprite problem
« Reply #3 on: September 06, 2012, 01:54:09 AM »
You need to specify a border of 1 pixel on the sprite.

Thanks a lot! It helps.