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

Failed to create Physics Mesh from source mesh "GlassSideA".

Discussion in 'ML-Agents' started by unguranr, Jan 15, 2021.

  1. unguranr

    unguranr

    Joined:
    Jan 10, 2021
    Posts:
    5
    Hi,

    I was trying to build the Soccer environment, however I am getting the following errors:

    Failed to create Physics Mesh from source mesh "GlassSideA".

    Code (Boo):
    1. Failed to create Physics Mesh from source mesh "GlassSideA". One of the triangles is too large. It's recommended to tesselate the large triangles.
    2. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    3.  
    4. Failed to create Physics Mesh from source mesh "GlassSideB". One of the triangles is too large. It's recommended to tesselate the large triangles.
    5. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    6.  
    7. Failed to create Physics Mesh from source mesh "WallSideA". One of the triangles is too large. It's recommended to tesselate the large triangles.
    8. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    9.  
    10. Failed to create Physics Mesh from source mesh "WallSideB". One of the triangles is too large. It's recommended to tesselate the large triangles.
    11. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    12.  
    13.  
    How can I fix them? Unity version: 2019.4.17f1
    Regards,
    RUn
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,816
    I'll bounce this off the team for some guidance. Which version of Python are you using?
     
  3. unguranr

    unguranr

    Joined:
    Jan 10, 2021
    Posts:
    5
    Python 3.8
     
  4. hunterh

    hunterh

    Unity Technologies

    Joined:
    May 17, 2016
    Posts:
    1
    Hey run, i've seen this same issue with some of the other environments. When i looked into it I found it was a physics/editor bug. The fix was to use primitive colliders instead of mesh colliders. I have made a branch with a fix for this but it's not in master yet. If you want to fix your branch, just remove the mesh colliders from the objects listed in your errors and use box colliders that are the same approximate shape as the mesh collider.
     
    unguranr likes this.
  5. unguranr

    unguranr

    Joined:
    Jan 10, 2021
    Posts:
    5
    Hi Hunterh,

    Which branch did you push this change?

    Regards,
    RUn
     
  6. uniteiro

    uniteiro

    Joined:
    Mar 11, 2014
    Posts:
    12
    unity 2021.3.0f1 just disable Player/other settings/prebake collision Meshes*

    after hours its solved my problem.
     
    forestrf and Meltdown like this.
  7. Ebonicus

    Ebonicus

    Joined:
    Oct 31, 2016
    Posts:
    158
    This just happened to me on a Unity 2019.4.34f1 project.

    Very odd because the item in question has been working for months with no issues about the mesh collider.