Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

5.6.0 Beta3 2D Sprite Render Corruption

Discussion in '5.6 Beta' started by fuzzygoat, Jan 17, 2017.

  1. fuzzygoat

    fuzzygoat

    Joined:
    Feb 11, 2016
    Posts:
    29
    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.

    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"

    Corrupt_001.png

    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.
     
  2. fuzzygoat

    fuzzygoat

    Joined:
    Feb 11, 2016
    Posts:
    29
    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.

    TP_Issue.gif
     
  3. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    I would submit a bug or link this discussion to texture packer team
     
  4. fuzzygoat

    fuzzygoat

    Joined:
    Feb 11, 2016
    Posts:
    29
    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.
     
    MrEsquire likes this.
  5. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    Hi Coulter,
    A bug report would help a lot. Could you please file one and reply in here with the case #?
     
  6. j-o-e

    j-o-e

    Joined:
    Mar 11, 2014
    Posts:
    36
    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:

    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:

    Screen Shot 2017-01-23 at 17.38.56.png

    triangles[]:
    4;2;3
    0;1;7
    1;6;7
    4;5;6
    1;4;6 -> not rendered
    4;1;2 -> not rendered
     
  7. fuzzygoat

    fuzzygoat

    Joined:
    Feb 11, 2016
    Posts:
    29
    No problem, will do that and update the thread.
     
  8. fuzzygoat

    fuzzygoat

    Joined:
    Feb 11, 2016
    Posts:
    29
    (Case 873544) 2D Sprite not rendering all triangles resulting in missing traingles and flickering sprite.
     
  9. fuzzygoat

    fuzzygoat

    Joined:
    Feb 11, 2016
    Posts:
    29
    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.

    Screen Shot 2017-01-26 at 11.59.08.png
     
  10. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    Thanks for your help. That seems to be worth another bug report.
     
  11. fuzzygoat

    fuzzygoat

    Joined:
    Feb 11, 2016
    Posts:
    29
    Hiya, I will see if I can isolate this in beta 5 and post a bug report and scene on Monday.
     
  12. fuzzygoat

    fuzzygoat

    Joined:
    Feb 11, 2016
    Posts:
    29
    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.
     
    LeonhardP likes this.