Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Mesh is see through!? Why does Unity flip normals?

Discussion in 'Editor & General Support' started by Unity-Artcraft, May 30, 2023.

  1. Unity-Artcraft

    Unity-Artcraft

    Joined:
    Jul 28, 2018
    Posts:
    85
    Normals are correct, scale is positive, clipping plane set to 0.01, I have to set my normals to negative to get it to work... so why does Unity flip normals?


     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,520
    Did you enable backface culling in Blender to prove they're correct?

    They probably aren't what you think they are.

    There are not a lot of ways this can go wrong.

    EDIT: looks like you have bones and rigging / animation going on. If any of those bone scales are negative it certainly could turn your mesh inside out. Remove the anim to prove it, and if so, fix your bones so they're only scaled positively.

    backface_culling.png
     
  3. Unity-Artcraft

    Unity-Artcraft

    Joined:
    Jul 28, 2018
    Posts:
    85
    no, I use face orientation to display normals and yes it is my armature somehow, which is strange, all my bones have a positive value, in Blender and in Unity.




    Edit, then setting my bones to negative, the issue is gone but then, I have this:

     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,520
    Ergh... I know there's some "reset thyself" thing you can do to the armature... perhaps select all bones in pose mode and Alt-R, Alt-G and Alt-S ?????

    In a perfect world doing that doesn't break the animation. Use advice with caution: I am NOT in any way a blender / animator pro