Unity - Retarget Recorded Hand Data FBX to Body Data in Post Production

Unity - Retarget Recorded Hand Data FBX to Body Data in Post Production


Unity - Retarget Recorded Hand Data FBX to Body Data in Post Production

Requirements

 

Setting up the Character Rig

  1. Open Unity Project with Starter Assetsimage.png

 

  1. For this example, we will use the Unity Robot Character Prefab

image.png 

  1. The Full Body FBX from Hand Engine comes in rigged as Generic and has to be rigged as Humanoid. Apply these changes and then press the Configure button


Please note: If you want to edit the animation length, firstly select the imported FBX file, go to the inspector panel and select animation (see image below). From here you can crop the animation using the slide bars or by setting the frame start and stop values. Note unlike the other platforms you cannot extend the animation this way (i.e. add extra keys), you can can only remove keys.
image.png
  

  1. The bones of the skeleton are auto-populated. For the hands you will need to manually update the bones because the Unity hand rig doesn't have metacarpal bones. See below images for the correct mapping of joints for the body and the left hand. Make sure to also update the Right hand bones.

  

Blending Animation Layers

  1. Create an Animator controller on your target character or create a new one. It will have a base layer


The PlayerArmature prefab has a default Base Animation Layer below.
 

  1. Create a new animation layer for the hand. You can call it “Hand Layer”. Right click and add a new empty state then add the animation recorded in Hand Engine to this new state.

 

  1. Right Click in the Project Window and Create an Avatar Mask. You can call it “Hand Mask”. Set only the hands to be active.


In the Inspector edit the mask from the default to only the Hands being active (green)
 image.png 

  1. Return to the Animator Controller. Within settings for Hand Layer set Hand Mask and set the Weight from 0 to 1

 
  

  1. Play scene and animation for Body and Hands should play together

    • Related Articles

    • MotionBuilder - Retarget Recorded Hand Data FBX to Body Data in Post Production

      MotionBuilder - Retarget Recorded Hand Data FBX to Body Data in Post Production Requirements StretchSense Hand Engine: Login to your account page at http://www.stretchsense.com/my-account or email support@stretchsense.com for details. MotionBuilder: ...
    • Unreal Engine - Retarget Recorded Hand Data FBX to Body Data in Post Production

      Unreal Engine - Retarget Recorded Hand Data FBX to Body Data in Post Production Requirements StretchSense Hand Engine: Login to your account page at http://www.stretchsense.com/my-account or email support@stretchsense.com for details. Unreal Engine ...
    • Maya - Retarget Recorded Hand Data FBX to Body Data in Post Production

      Maya - Retarget Recorded Hand Data FBX to Body Data in Post Production Requirements StretchSense Hand Engine: Login to your account page on http://www.stretchsense.com/my-account or email support@stretchsense.com for details. Autodesk Maya: ...
    • Vicon Shogun Post 1 8 - Merging StretchSense Data

      Vicon Shogun Post 1.8 - Merging StretchSense Data Pre-requisites: Hand Engine 2.X or later Vicon Shogun Post 1.8 or later Latest StretchSense Script from Vicon https://www.vicon.com/software/models-and-scripts/stretchsense-scripts/ Latest VSS files ...
    • Recording data in Hand Engine

      Recording data in Hand Engine 1. Recording in Hand Engine The recording section of Hand Engine can be found at the bottom center of the interface. Setting Recording Location: Please click on the Set Recording Location button to set the folder you ...