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
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Reached the maximum polygons limit (256)

Discussion in '2020.1 Beta' started by id0, Sep 14, 2019.

  1. id0

    id0

    Joined:
    Nov 23, 2012
    Posts:
    455
    I have this error spam all the time:

    Failed to create Convex Mesh from source mesh "Object002". Reached the maximum polygons limit (256)...etc...
    (many different meshes mentioned)

    What a nonsense! (Although I don't even add Convex Mesh on that meshes)
     
  2. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    It's likely an imported object has generate colliders or some such.
     
  3. id0

    id0

    Joined:
    Nov 23, 2012
    Posts:
    455
    One of them it's skinned mesh, and it can't have collider at all. In any case 256 polygons. What?
     
  4. Fuzzy

    Fuzzy

    Joined:
    Feb 11, 2011
    Posts:
    266
    Convex mesh collider have been limited to 256 polygons (or rather triangles) probably since unity's creation.

    https://docs.unity3d.com/Manual/class-MeshCollider.html
    But if what you say is true:
    It might be a bug.

    Just double check (all) Object002's collider settings.

    Haven't tested the 2020.1 alpha myself yet.
     
  5. id0

    id0

    Joined:
    Nov 23, 2012
    Posts:
    455
    Fuzzy, if I click on an error, this provides me with a project window when these objects are in folders (not on the scene, but just fbx, I have not even touched them since the update)
     
  6. Fuzzy

    Fuzzy

    Joined:
    Feb 11, 2011
    Posts:
    266
    Then the only thing i could see them having done for their "performance by default" motto would be that the "generate colliders" checkbox on the object importer is set to generate convex colliders by default - since they're generally better performing than concave colliders - but don't have a check for the triangle limit or something.

    But that's just random guessing.

    Maybe just send them a bug report with a minimalistic project containing the object that causes this problem.
     
  7. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,132
    If this used to work before the update, please submit a bug report with a (minimal) reproduction project.
     
  8. georgeq

    georgeq

    Joined:
    Mar 5, 2014
    Posts:
    662
    I have a similar problem, a mesh collider that works perfectly well on 2019.2 gets this error on 2019.3.

    Just want to point out that, in case this is a bug, it was introduced during the 2019.3 cycle. Hope this helps.
     
    tehusterr and joshcamas like this.
  9. Blinkq

    Blinkq

    Joined:
    Apr 19, 2015
    Posts:
    21
    Same for me in 2019.3. Almost all objects with convex colliders got mad. Its showing this error, but still it works.
     
  10. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,132
    A bug report with a minimal reproducible would be much appreciated.
     
  11. thomh_unity

    thomh_unity

    Unity Technologies

    Joined:
    Feb 19, 2019
    Posts:
    20
  12. joshcamas

    joshcamas

    Joined:
    Jun 16, 2017
    Posts:
    1,276
    It would be really helpful if this error was displayed in the inspector. Also, having some sort of built-in solution, aka mesh decimation of some sort...
     
    Alex_TNT, Xain and Peter77 like this.
  13. FireHawkX

    FireHawkX

    Joined:
    Apr 26, 2016
    Posts:
    28
    I just updated my game project from Unity 2019 to 2020 and am getting this error on one mesh... I tried simplifying it in blender but to get the error to stop displaying it REALLY needs to destroy the mesh... (a circle that becomes an octagon isnt really nice) - rectangles becomes triangles and so on... ;)

    I never had this issue with older Unity version (this game has gone from pre-20xx unity, to 2016, 2017, 18, 19 and now 2020) and only 2020 has issue with this particular blender file... any idea on how to fix it without destroying the mesh itself? (Please note that I am SUPER noob when it comes to actually editing meshes)

    EDIT : after way too many hours of trying everything to solve this, I found out that by setting the option in Unity for "Normals" to Calculate instead of import, then the problem was gone! No idea if this is part of the original bug that was reported (and supposedly fixed) but using 2020.1.3f1 I was having this problem... and now its fixed!

    So hopefully what I found might be able to help someone else upgrading and googling for the answer as this thread was the first one that popped when searching for the error message! ;)
     
  14. jon_underwood

    jon_underwood

    Joined:
    Feb 12, 2018
    Posts:
    4
    Hi Firehawk.
    I'm getting an error "Couldn't create a Convex Mesh from source mesh "object" within the maximum polygons limit (256). The partial hull will be used. Consider simplifying your mesh." But the resulting collider looks OK. Can you provide a link for the above. (its an underline not a link currently) please. I cant find anything about using normals to calculate a convex collider.
    Thanks
    Jon
     
    JokerDen likes this.
  15. commonolithic

    commonolithic

    Joined:
    Mar 19, 2019
    Posts:
    3
    Check If you have "static" for lightmaps checked, if so uncheck it