Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question Seeking Advice on How to Implement Additional Animations like Facial Expressions

Discussion in 'Animation' started by Enkianthus, Jun 11, 2024.

  1. Enkianthus

    Enkianthus

    Joined:
    Mar 28, 2022
    Posts:
    26
    Is there a way to use multiple Animation Controllers to control the same character? I am looking for a method to control additional actions such as facial expressions. I noticed that VRChat seems to use multiple Animation Controllers.
     
  2. brian_unity840

    brian_unity840

    Joined:
    May 3, 2024
    Posts:
    5
    My guess is actually not through multiple controllers, but adding layers to your controllers. Haven't seen VRChat though so could be wrong.

    I also have a character that needs to play animations which I'd love to be able to blend instead of just play clips, so right there i need an Animation Controller (don't have the budget to build a system myself) and on top of that needs to support blend shapes for facial expressions.

    My guess was base layer would be for locomotion, and then an additional layer for the face. Haven't had a chance to test that hypothesis and it's limitations yet as artists aren't going to deliver my character and animations/blend shapes until end of the month.

    I did find this video interesting:


    If you consider "VSFAvatar" kind of stuff as just the scripts driving the parameters... then their approach was to have a layer for each morph target (think angry, sad, happy, or maybe racial features) as individual layers, and then the base layer is playing the "blink" animation so that the morph targets get blended together. I'm curious how unmanageable it would become if you needed to support 20 targets and 20 animations that all need to work with each target.

    Hopefully this layering approach is feasible, in a networked game it might be a thing where you need to add Animator Override Controllers for when you're up close and a player can see facial expressions and go with some baked animation clips as LODs.

    I'm interested to hear if others have solved this though.