Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Daniel_S_GP

Pages: [1]
1
Support / Re: Sprites from a particular atlas render incorrectly
« on: April 22, 2014, 06:25:56 pm »
It turns out that upgrading TK2D to version 2.4 seems to have fixed the issue. Don't really know why I didn't try that earlier.

Thank you for the help nonetheless.

2
Support / Sprites from a particular atlas render incorrectly
« on: April 21, 2014, 03:57:15 pm »
Hello, I am fairly new to 2D Toolkit, so forgive me if this issue is something simple/trivial.

So in one of the game's scenes, a particular atlas is causing problems where any sprite that uses that atlas appears 'glitched'. Instead of displaying the intended sprite it displays random bits and pieces of the atlas. Some parts of other sprites are seen and there is heavy repetition for sprites that are large. The bits and pieces that are displayed do not change if the scene is re-loaded. This leads me to believe that the UV's are either offset or have been corrupted somehow. However, I can't be certain as I don't know how TK2D works under the hood.

The real meat of the problem is that this does not happen in the editor, but only happens on Android devices (iOS works fine). I've read something on another thread about how having null sprites in a collection can cause problems. Indeed there were some sprites in the collection that referenced nothing. I promptly deleted them & committed. However, this only fixed the issue on some Android devices. The newer ones like the Galaxy S4 and the Nexus 7 are still displaying that particular scene improperly (the rest of the game appears fine). Given that this happens on newer Android devices and not on older ones (and not on iOS), I figure that this is a more a 'lower level' issue.

Some things I've tried: re-building the index, checking integrity, reverting back using version control, deleting null sprites from both the same sprite collection and other sprite collections.

Update: After closer examination, some sprites display the intended section of the atlas while others still display random bits and pieces. I guess this just makes this more confusing as only some sprites screw up in the collection while others are fine. The sprites don't screw up in any particular order. There are some that work, and some that don't.

Does anybody have any idea why this would be happening?

Pages: [1]