5.6.0 Beta3 2D Sprite Render Corruption

Is anyone else seeing flickering and / or corrupted sprites when using the 2D Sprite Renderer in Unity 5.6.0 B3? I have the Draw Mode set to “Simple”, the flicker happens in both the scene view and the game view.

2923558--216035--SR_Corruption_560_B3.gif

I have checked the individual sprite frames and they are all fine. It seems to be something to do with the “Simple” draw mode as the corruption goes away if I select “Sliced” or “Tiled”

NB: I am using TexturePacker, but that does not seem to be the problem as the sprites are positioned and clipped correctly they just don’t display correctly.

After a bit more investigation I think this is an issue with TexturePacker 4.3.3, Green sprite below is frames just dragged directly into Unity, Red sprite is using the TexturePacker Unity Texture2D Sprite Sheet.

2925142--216179--TP_Issue.gif

I would submit a bug or link this discussion to texture packer team

Hi, I have already contacted Andreas both on Twitter and via the Code+Web support page. I could be wrong, I have had other weirdness with Unity and 2D sprites recently, but it would be good to see what Andreas thinks could be happening. Thanks for the reminder Sir, much appreciated.

1 Like

Hi Coulter,
A bug report would help a lot. Could you please file one and reply in here with the case #?

Hi,

I’ve had a look on one of Coulter’s flickering sprites (Spaceman_JUMP_0008), for this sprite TexturePacker Importer calls Sprite.OverrideGeometry with 8 vertices and 6 triangles. Unity 5.6.0b4 doesn’t render all triangles, only 4 triangles are displayed:

2931859--216824--Screen Shot 2017-01-23 at 17.38.22.png

vertices[ ]:
114;83
88;66
82;0
32;0
24;61
0;86
14;125
98;132

triangles[ ]:
1;6;7
4;5;6
1;4;6
4;1;2
4;2;3 → not rendered
0;1;7 → not rendered

After moving the last 2 triangles to the front of the array:

triangles[ ]:
4;2;3
0;1;7
1;6;7
4;5;6
1;4;6 → not rendered
4;1;2 → not rendered

No problem, will do that and update the thread.

(Case 873544) 2D Sprite not rendering all triangles resulting in missing traingles and flickering sprite.

I am not sure if this is related but 5.6.0 B4 is also showing glitches like this on 2D sprites, its seems to be displaying a skewed view of the whole atlas where it should only be showing the frames from the animator.

2935835--217147--Screen Shot 2017-01-26 at 11.59.08.png

Thanks for your help. That seems to be worth another bug report.

Hiya, I will see if I can isolate this in beta 5 and post a bug report and scene on Monday.

I have looked at this again this morning and as of right now I can not find anything that makes this happen, it just seems to show up once in a blue moon along with the other sprite flickering bug. I will keep looking, if I find something repeatable I will submit a bug with the steps to reproduce.

1 Like