Main Page → Motive Documentation → OptiTrack Unreal Engine 4 Plugin → Unreal Engine Skeleton Streaming
This page provides instructions on how to set up skeleton streaming using the Unreal Engine plugin. Please note that this feature is supported for plugin version 4.19 or above only.
Skeleont streaming is supported only in plugin versions 1.9 or above.
Follow the below steps to set up skeleton streaming onto Unreal Engine.
Step 1. Navigate to the character folder. With Paragon sample characters, it is Characters → Heros → [Character Name] → Meshes.
Step 2. Right-click the blank space in the Content Browser pane, then select Animation → Animation Blueprint.
Step 3. On the pop-up window, select both the OptiTrackAnimInstance at the top parent class section and click on the target skeleton name at the bottom of the popup. Then name the created animation blueprint.
Step 4. Drag the character blueprint into the scene.
Step 5. Select the character blueprint in the 3D View
Step 1.Double-click the animation blueprint to open its editor.
Step 2.Right-click the animation graph, then create a new "OptiTrack Skeleton".
Step 3.Right-click the animation graph, then create a new "Get Streaming Client Origin".
Step 4.Right click the animation graph, then create a new "Get Source Skeleton Asset Name".
Step 5.Connect all of the graph nodes together. Specifically, drag the person icon in the "OptiTrack Skeleton" to the person icon on the "Final Animation Pose", then drag the blue and purple circles to each other to connect them.
Step 1. Select the OptiTrack Skeleton plugin in the blueprint graph area.
Step 2. Drop down the Bone Mappings property in the Details Pane.
Step 3. Click “Auto Fill Bone Mapping” to automatically assign the bones in the skeleton to the OptiTrack skeleton names.
Step 4. Hit "Compile" in the top left to build the blueprint.
Step 1. Open the 3D View
Step 2. Search OptiTrack Client Origin in the Modes pane.
Step 3. Drag the OptiTrack Client Origin into the 3D scene, then select it to access its properties.
The OptiTrack Unreal Engine Skeleton Plugin uses bone mapping, not retargeting. This means that the bone segments in Motive map directly to the character model (bone mapping), instead of being translated into something that is usable by a more abstract biped model (retargeting). Because of this non-anatomical skeletons will not map correctly without some additional tweaking.
Practically, this means that you will need to do things like turn off the toe mapping for characters with high heels, adjusting the pelvis bone in Motive or in the model for characters with non-anatomical hip bones, and not use bipeds that are too anatomically different than humans, such as a gorilla or swamp monster.
For example, the character sample below has both a non-anatomical pelvis and high heels. It is preferable to use character models that are more anatomically correct, but in this case, you can do a couple things to mitigate these issues:
In the example below, since this character is wearing heels, any actor providing data for this model will also need to be wearing heels. To get around this you can just turn off the toe mapping in the OptiTrack Unreal Engine Skeleton Plugin.
The hip segment on the Countess actor is centered in the stomach rather than in the pelvis, the neck bone in Motive is a bit too long for the model, and the shoulders in Motive do not match the width of the character’s shoulders. By adjusting bones' positions and lengths in Motive, you can make the streamed skeleton to better match the model; however, please note that t \here are limitations to how much you can do this.)