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

Error with the message: First two bone weights should have non-zero sum!

Discussion in 'Animation' started by elhispano, Sep 2, 2019.

  1. elhispano

    elhispano

    Joined:
    Jan 23, 2012
    Posts:
    52
    Hi!
    I am writing because i haven't found any result in google or in the forums with this error launched by Unity.

    In our current game we have to do some mesh combination for performance when we equip the player with a new armor.
    Now we see an error in the console that we haven't seen before that says: "First two bone weights should have non-zero sum!"
    In the profiler i can see the error is launched by: MeshSkinning.SkinOnGPU

    Everything is working as expected but this internal error console message is breaking the performance because it is printed thousands of times.

    First two bone weights should have non-zero sum!
    UnityEngine.Rendering.RenderPipelineManager:DoRenderLoop_Internal(RenderPipelineAsset, Camera[], IntPtr, AtomicSafetyHandle)
     
  2. polyflow3d

    polyflow3d

    Joined:
    Oct 6, 2014
    Posts:
    297
    Seems like your combining tool generate garbage vertex weights.
     
  3. 11tomi12

    11tomi12

    Joined:
    Feb 25, 2016
    Posts:
    17
    We are getting the same issue while using SkinnedMeshes from Anima2D. Google has no answers.
    Did you find any solution?
     
  4. ant_hat

    ant_hat

    Joined:
    May 30, 2020
    Posts:
    1
    Try checking the sprishmesh editor. I was facing the same issue. Found out one of my sprite meshes had no assigned bone
     
  5. ryokawa

    ryokawa

    Joined:
    May 12, 2020
    Posts:
    1
    In my environment, re-cloning the Github repository solved the problem.