Author Topic: [BUG] sliced UISprite on IOS v.s. PC/Android  (Read 6228 times)

gyd

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 87
    • View Profile
[BUG] sliced UISprite on IOS v.s. PC/Android
« on: July 31, 2014, 02:32:46 AM »

left : ios / right : pc/android
uisprite gets blur at left/right side

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: [BUG] sliced UISprite on IOS v.s. PC/Android
« Reply #1 on: July 31, 2014, 08:19:52 AM »
Can't say I've ever seen this before. Are you sure there isn't something else on top of it? Or the sides are set to tile instead?

gyd

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 87
    • View Profile
Re: [BUG] sliced UISprite on IOS v.s. PC/Android
« Reply #2 on: July 31, 2014, 11:33:38 AM »
Can't say I've ever seen this before. Are you sure there isn't something else on top of it? Or the sides are set to tile instead?

i am sure, i built the game on ios/android both, it just happened..

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [BUG] sliced UISprite on IOS v.s. PC/Android
« Reply #3 on: July 31, 2014, 12:24:10 PM »
Happens when you have mip-mapping turned on (on the atlas texture) without any anisotropy, and when you happen to shrink the sprite. Remember, when you have a large texture and happen to shrink it (which is what happens with the middle parts), it will have to cram more pixels into a smaller space, thus losing precision, crispness, and ultimately becoming blurry.