2D Toolkit Forum

2D Toolkit => Support => Topic started by: porters25 on July 25, 2014, 07:23:00 am

Title: Distorted Sprite In Sprite Collection
Post by: porters25 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)

(http://imagizer.imageshack.us/v2/280x200q90/908/3430b7.png)

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?
Title: Re: Distorted Sprite In Sprite Collection
Post by: unikronsoftware 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.
Title: Re: Distorted Sprite In Sprite Collection
Post by: porters25 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.