Search Unity

Feedback 2D Skeletal Animation Auto Weights in 2021 LTS

Discussion in '2D' started by Unrighteouss, Jun 12, 2022.

  1. Unrighteouss

    Unrighteouss

    Joined:
    Apr 24, 2018
    Posts:
    599
    Hello,

    I've already submitted a bug report for this (around a month ago), but I wanted to provide some additional information and my current thoughts on the issue.

    I understand that the code behind automatic weights was changed in Unity 2021. I understand why this was done, however, the current functionality of automatic weights in 2021 is what's stopping me from making the upgrade. This is a real shame, as there are a ton of new features and quality of life improvements in 2021 I'd love to be taking advantage of.

    The automatic weights almost always need manual adjustment now. Here is an example of what I mean:

    Low_Poly_Distribution.PNG

    This is a very simple mesh and bone layout, yet the red bone is affecting one of the lowest vertices by 33% even though it's nowhere near it. This makes the deformation look really ugly and imbalanced. This doesn't happen in 2020.

    I thought that perhaps increasing the mesh density would yield better results, but that wasn't the case:

    Poor_Distribution.PNG

    The weight distribution doesn't look smooth and doesn't deform well.

    In some cases, you get completely unusable weights like this:

    Complete_Mess.PNG

    Yes, playing around with the settings can "fix" this, but the fact that this can happen at all is very exasperating when I've never seen anything close to this in 2020.

    ---

    Using automatic mesh and weights in Unity 2020, I can fully rig a character in around 10 minutes. Getting the same quality deformation in 2021 takes over an hour. The automatic features are the biggest reason I love using Unity's 2D skeletal animation system, and they're also why, despite all the other improvements, I can't make the switch to 2021 LTS.

    If the new auto weights system is going to take a while to catch up to what you had before, maybe just keep it on the back burner for now, and switch back in the old system. I realize that you may not be able to do this, but as a user, it's really what I'd like to see happen.

    Thank you.
     
    Metthatron likes this.
  2. DragonCoder

    DragonCoder

    Joined:
    Jul 3, 2015
    Posts:
    1,698
    Interesting.
    I too had the feeling that the auto feature behaved differently now. It does appear like that there is some intention in this behavior. Making it optional would be great however.

    If all else fails, the algorithm that does this should be reasonably compact and you or your software developer could copy the one they used in the old version over.
    One can modify the source code of packages by copying the library from the cache directory somewhere to drive, then uninstall it bia package manage and finally copy it directly into the packages directory (where the manifest file is).
    Downside is that you gotta redo this whenever you want a new version of the package (or merge the code in yourself via an SCM).
     
    Unrighteouss likes this.
  3. Unrighteouss

    Unrighteouss

    Joined:
    Apr 24, 2018
    Posts:
    599
    Thanks for the information.

    I'm no software developer though, so giving feedback is the easier avenue for me to explore haha.
     
  4. DragonCoder

    DragonCoder

    Joined:
    Jul 3, 2015
    Posts:
    1,698
    Btw. feel free to link the bug ticket so people can vote on it!
     
  5. Unrighteouss

    Unrighteouss

    Joined:
    Apr 24, 2018
    Posts:
    599
    That's a good idea, not sure if I can though. Recently, my bugs have been linking to a Jira page. When I click on the issue tracker link on that Jira page, it says the page doesn't exist. Not sure what the deal is with that.
     
  6. Ted_Wikman

    Ted_Wikman

    Unity Technologies

    Joined:
    Oct 7, 2019
    Posts:
    916
    @Unrighteouss just to let you know, we are actively looking into both the bone weight issue you have highlighted and the increased time it takes to generate the mesh and weights in 21.3.

    As you have also noticed, we are currently migrating our bug reporting flow from fogbugz to jira, so unfortunately there are some things that currently does not work 100% in the new bug flow, but the team is working hard on restoring all functionalities.

    In the meantime, feel free to DM me any additional information you have of this issue. This would help us get more test cases to verify our fixes.

    Thank you for highlighting this issue, we'll let you know when we have a fix ready.
     
    Unrighteouss and DragonCoder like this.
  7. DanielTanBK

    DanielTanBK

    Unity Technologies

    Joined:
    Aug 20, 2019
    Posts:
    82
    Hello @Unrighteouss, could we have the Jira page link or the bug ID to track on our end?
     
  8. Unrighteouss

    Unrighteouss

    Joined:
    Apr 24, 2018
    Posts:
    599
    Here's the ID: IN-2268 (or DANB-22)

    I wasn't sure if it was actually a concern, thanks for filling me in. It's a big relief to hear that your team is working on it, thank you.
     
    Last edited: Jun 13, 2022
    Ted_Wikman likes this.