Follow

MVN Unreal Live Link Plugin 4.23

Xsens_MVN_Live_UE_Plugin.png4.23

TUTORIAL: https://tutorial.xsens.com/video/live-link-for-unreal

1 INTRODUCTION 
1.1 What's improved in this release?

2 INSTALLATION
2.1 Install plug-in
2.2 Enable plug-in

3. GETTING STARTED
3.1  Set up MVN
3.2 Set up UE4
3.2.1 Add Xsens Live Source
3.2.2 Import Character
3.2.3 Create T-Pose
3.2.4 Retarget animation
3.2.5 Create Animation Blueprint

4. ADVANCED FEATURES 
4.1 Props

 

1. INTRODUCTION

Xsens MVN Analyze/Animate, developed by Xsens, is the main software tool for interfacing with the MVN inertial motion capture suit. MVN Analyze/Animate allows the export of motion capture data to third party applications, making the data available to drive rigged characters in animation and more. The data transfer to other applications is primarily file-based (export) when using MVN Analyze/Animate.

However, in many scenarios, it is attractive to keep the ease of use of MVN Analyze/Animate, but still being able to receive and process the motion capture data in real-time in another application, even on another PC, possibly physically remote from the MVN system.

To this end, MVN Analyze/Animate can act as a server on a network and stream motion capture data in real-time to a client PC running a client application. This document specifically treats the use of a network streamer to stream motion capture data in real-time into the Unreal Engine.

Note: In this workflow, we assume both MVN Analyze/Animate and UE4 are properly installed and the user has a good overall knowledge of working with both programs. Throughout the workflow, Quickoverviews are given in the form of GIFs at the start of the procedure. Pictures are placed AFTER the corresponding text.  

 

1.1 What's improved in this release?

The MVN Unreal Live Link plug-in has been updated to support UE4 version 4.23.

 

2. INSTALLATION

2.1 Install plug-in

1. Go to the Epic Store Launcher
2. In the Unreal Marketplace search for MVN Live Link and download the plug-in.mceclip0.png
3. In the Library, Go to Vault to install the plugin to the engine version you use for your project

 mceclip1.png

2.2 Enable Plugin

1. Create a new project or open an existing project.
2. Now copy the file named “MVN_remap_example.uasset” from the engine folder (e.g. C:\Program Files\Epic Games\[Engine Version]\Engine\PluginsLiveLinkMvnPlugin\Content) folder to your project’s content folder. (e.g. C:\Users\[UserName]\Documents\Unreal Projects\MyProject\Content)
3. Go to Edit > Plugins > Installed > Animation Here you should see LiveLinkMvnPlugin. Make sure to enable the plugin.

mceclip1.png

Enable_plugin_indication.jpg

 

3. GETTING STARTED

3.1 Set up MVN

Quick overviewStreamer_Settings.gif

Procedure
1. Open MVN Analyze/Animate
2. Open an MVN file or MVNX file or use the MVN suit in a live setup
3. Go to: Options > Network Streamer

mceclip2.png

4. Add a target destination (with default values: Host 127.0.0.1, Port 9763, Protocol UDP
5. Select a format that the UE4 Live Link plug-in will interpret properly: “Position + Orientation (Quaternion)”
6. When running UE4 on another PC, input the IP-address of that PC in the Host field. If it is the same PC as where MVN Analyze/Animate is running, you can just leave it at the default ‘127.0.0.1’ = localhost).

 

3.2 Set up UE4

3.2.1 Add Xsens Live Source

1. In the Project, Go to Window > Live Link to enable the Live Link Panel. 

mceclip3.png


2. In the Live Link Panel Add a Source > Xsens Live Source > make sure that the Port number is the same as set up in MVN (step 3.1.4) and click Ok

mceclip7.png

 

The Live Link will detect and show you how many animation sources there are (correlating to MVN Systems being streamed)

mceclip8.png

3.2.2. Import Character

1. Import a rigged character into the project (you can skip step 3 if you already have a rigged character in your project you want to retarget the data to)
    a. Under Mesh, make sure that you have Skeleton set to "None"
    b. Under Miscellaneous, set Force Front XAsix to "Checked"

mceclip9.png

3.2.3. Create T-Pose

1. If your character is not in a TPose and facing the X-Axis you will need to do an extra step. Go to the skeleton of your character and go to Create Asset > Create Animation > Current Pose, to create a new T-pose animation.

mceclip11.png

2. Name the T-pose animation and place it in a folder of your choosing (in this example Content > Mannequin > Animations). This will create a 1 frame animation with the pose you require.

mceclip12.png

3. In the Animation Timeline go to the first frame by pressing the "To Front" button

mceclip13.png

4. If required, adjust the bones of the character to represent a T-Pose and faces the X-Axis.

mceclip14.png

5. Once the character is in a TPose and facing the X-Axis, press Add Key and Apply to update the pose.

mceclip15.png

3.2.4 Retarget animation

1. Open the “MVN_remap_example” (Placed there earlier) in the Content folder. Make sure “Class Defaults” is selected. Then, In the Details tab, click on “RemapDict”. 

NOTE: If the actor does not have the same segment names as the MVN actor you will need to add a retarget asset. For this, you can edit the one provided with the plugin.
mceclip16.png

 

2. You will see the names of the MVN segments (Left) and where you will need to fill in the corresponding segments of your character (Right). If you do not have a matching segment put “None” (this is also done automatically if you leave it empty).

mceclip18.png

3. To find the segment names of your character, open the Skeleton that belongs to this. On the right-hand side in the skeleton tree, you will find the names of the segments.

mceclip17.png

4. Once all segments are filled in, press Compile and Save.

NOTE: Remap Dict may vary between characters, the example below is only applicable for the UE4 Mannequin used in this example.

mceclip19.png

5. In the "MVN_remap_example" make sure “Class Defaults” is selected. Now you can add the 1 frame animation you just made for the T-Pose Animation.

mceclip20.png

3.2.5 Create Animation Blueprint

1. Now create an Animation Blueprint for your character. In the Content Browser, Right-click in the folder you want to create the “Animation Blueprint” and select “Animation > Animation Blueprint”.

mceclip21.png

2.  Do not select a parent class, but do select the skeleton of your character for the target skeleton. Then click OK.

mceclip22.png
3. Name the Blueprint and double click to open it.
4. In the AnimGraph, right-click and add a “Live Link Pose”

mceclip25.png

5. Select one of the Subjects Under Live Link Subject Name (This corresponds to your MVN System)

mceclip26.png

6. Connect the Live Link Pose Node to the Output Pose Node

mceclip27.png

7. Select the Live Link Pose node just created and in the "Details" Window, you can select the retarget asset you've set up earlier (MVN_remap_example)

mceclip29.png

8. Now compile and save the “Animation Blueprint”. Use this Animation Blueprint in your scene.

mceclip30.png

 9. Your character will now be animated live with the MVN data stream. 

mceclip2.png

 

4 ADVANCED FEATURES

4.1 Props

To use props attach them to one of the bones that is in the retarget manager. For example to the left hand. The prop is retargeted in the same way as the body segments using the names Prop1 to Prop4. The props in the stream will always start at Prop1 even if you disabled prop 1 in MVN and are using prop 2.
In the TPose, swords have to be placed with the tip pointing towards the x-axis and guns have to be placed pointing downwards.

Was this article helpful?
0 out of 0 found this helpful
Do you have a question? Please post your question in our Community Forum