Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: gyd on July 31, 2014, 02:32:46 AM

Title: [BUG] sliced UISprite on IOS v.s. PC/Android
Post by: gyd on July 31, 2014, 02:32:46 AM
(http://www.tasharen.com/forum/index.php?action=dlattach;topic=10605.0;attach=4887;image)
left : ios / right : pc/android
uisprite gets blur at left/right side
Title: Re: [BUG] sliced UISprite on IOS v.s. PC/Android
Post by: Nicki 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?
Title: Re: [BUG] sliced UISprite on IOS v.s. PC/Android
Post by: gyd 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..
Title: Re: [BUG] sliced UISprite on IOS v.s. PC/Android
Post by: ArenMook 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.