Author Topic: Atlas texture settings to prevent distortion of scaled down sprites?  (Read 2312 times)

Fordeka

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 20
    • View Profile
Basically I want to create thumbnails of full size sprites by just scaling down the full size sprites (so I can use the same image in the atlas for both sizes)- it looks fine on my PC but when I build to an iPad 2 there are severe artifacts around the edges of the scaled down sprites. Is there any way to get around this problem?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Atlas texture settings to prevent distortion of scaled down sprites?
« Reply #1 on: October 31, 2012, 03:26:17 PM »
That's caused by texture filtering and not much can be done about that. I suggest creating thumbnails dynamically if possible -- or just having two atlases -- one with the original large images, and another with thumbnails.

Fordeka

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 20
    • View Profile
Re: Atlas texture settings to prevent distortion of scaled down sprites?
« Reply #2 on: November 01, 2012, 07:38:57 AM »
It actually turned out to be caused by sandwiching it between sprites from a different atlas- fiddling with the depth seems to have fixed it but there doesn't seem to be a way to have a sprite on top with alpha blend onto it without the distortions happening. If the sprite isn't on top it is distorted.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Atlas texture settings to prevent distortion of scaled down sprites?
« Reply #3 on: November 01, 2012, 09:38:44 AM »
A pic would help.