Hello Guest

Author Topic: Distorted Sprite In Sprite Collection  (Read 3662 times)

porters25

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Distorted Sprite In Sprite Collection
« on: July 25, 2014, 07:23:00 am »
Hi,
I have a sprite that i have put into a sprite collection.  When i use this sprite in game, the gradient looks distorted.  See below image.  The top image is the sprite being displayed correctly, the bottom image shows the distorted behavior i am talking about.  (Note the dark area to the right of the bottom image is supposed to be there, so ignore that)



This seems to be related to sprite collection the sprite belongs to.  If i make another sprite collection and add this sprite to that, i don't get the same problem.

Whats going wrong here?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Distorted Sprite In Sprite Collection
« Reply #1 on: July 25, 2014, 06:42:28 pm »
It looks like the texture is set to 16bit. Check the import settings, and check platform overrides as well - there was a bug in one of the Unity 4.3 versions that automatically set override to 16bit on iOS.

porters25

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Distorted Sprite In Sprite Collection
« Reply #2 on: July 28, 2014, 01:04:00 am »
I've noticed that the atlas generated by 2d toolkit is indeed 16bit.  I checked all the settings, and they were correct.

I managed to produce a 32bit atlas by deleting the old one and having the sprite collection editor generate a new atlas.  This fixed the problem.

Thanks for the help.
« Last Edit: July 28, 2014, 01:55:35 am by porters25 »