Skip to content

David-Vodhanel/rokoko-studio-live-unreal-engine

 
 

Repository files navigation

Rokoko Studio Live Plugin for Unreal Engine

Rokoko Studio is a powerful and intuitive software for recording, visualizing and exporting motion capture.

This plugin let's you stream animation data from Rokoko Studio into Unreal Engine to preview and work with all your motion capture data easily and intuitively.


Requirements

  • Unreal Engine 5.x
  • Rokoko Studio or Rokoko Studio Legacy (starting from 1.19.0b)

Features

  • Live stream data:
    • Up to five actors that can all include both body, face (52 blendshapes) and finger data at the same time.
    • Character data
    • Camera data
    • Props data
  • Control Rokoko Studio from within Unreal Engine

Unreal Engine Demo project including a character already set up for live streaming from Rokoko Studio: https://github.com/Rokoko/Unreal-Demo-Project


Getting Started for Streaming

To learn more about how to use Virtual Production in Rokoko Studio, read our guide here

Setting up Studio Live for Unreal Engine streaming

Make sure the model is ready for Studio Live

Before importing your model into Unreal Engine. Make sure that the character's hands and fingers are modeled as close to the Newton model as possible, to get the best possible retargeting of finger animation. The fingers should be straight and the thumb pointing 45 degrees away from the other fingers.

Studio Live supports up to a 4 finger joint setup: Metacarpal, Proximal, Medial and Distal finger joint.

Getting the plugin to work manualy

Note: You can skip this step by getting the plugin from the Unreal Engine marketplace:

https://unrealengine.com/marketplace/en-US/product/smartsuit-plugin

For the plugin to work at its current state you need this development buid of Rokoko Studio: https://developer.cloud.unity3d.com/share/share.html?shareId=-koPxa5S4I

Then you need to download the Studio Live plugin and install it manualy by moving it into your Unreal project's plugins folder: https://github.com/Rokoko/rokoko-studio-live-unreal-engine/tree/4.25_jsonv3/Plugins

Note: If your unreal project doesn't have a plugins folder, then create a folder called "Plugins".

Now when you open your project a pop-up error will appear. Click yes to it and wait for it to build. If the building fails, you need to go into Visual Studio Installer.

Open up Visual Studio Installer and click on Individual Components. Then search for Unreal Engine Installer and install that. Now open the Demo project again and say yes to the pop-up and it should built.

If it still doesn't work install theise optional packages under desktop development with C++.

When the unreal project is open, go into settings → Plugins and search for Rokoko Studio Live and make sure the enable mark is on. If you clicked enable you have to restart the urneal project.

Setting up the character inside Unreal Engine 4.25

When the character is imported into Unreal Engine. Right-click on the character skeletal mesh and select Create and then Anim blueprint. Name it character_AnimBP and then open it.

Inside the anim blueprint create a "Rokoko body pose", "Component to local" and a "Rokoko Face Pose" node. Connect them in that order and then to the Output Pose.

Now click on the plus next to variables and change the variable type to Name and the variable name to Rokoko Actor Name. Then drag it out into the animGraph and chose Get Rokoko Actor Name. Connect it to Rokoko Body Pose and the Rokoko Face Pose. Then click on the Rokoko Actor Name and type in the Actor Name from Studio. Hit apply and compile the blueprint.

Right-click on the content browser and create a blueprint of type RokokoBodyMapData. Name it something like character_BoneMap. Now open it and write the names of the corresponding joints in the hierarchy. (If you use the same joint naming on more characters you can reuse this asset)

When the BoneMap is done, click on the plus next to variables and change the variable type to RokoBodyMapData and the variable name to something such as BodyMapRetargetAsset. Then drag it out into the animGraph and chose Get BodyMapRetargetAsset, then connect it to the RetargetAsset pin on the Rokoko Body Pose node. Set the default value of this variable to the body remap asset you just created.

Right-click on the content browser and create a blueprint of type RokokoFaceMapData. Name it something like character_FaceMap. Now open it and write the names of the blendshape names you'd like to override. (If you use the same blendshape names on more characters you can reuse this asset)

When the face remapping asset is created, click on the plus next to variables and change the variable type to RokoFaceMapData and the variable name to something such as FaceMapRetargetAsset. Then drag it out into the animGraph and chose Get FaceMapRetargetAsset, then connect it to the RetargetAsset pin on the Rokoko Face Pose node. Set the default value of this variable to the face remap asset you just created.

Now add the character skeletal mesh to the scene and navigate to the details panel and pick your animBlueprint under Animation → Anim Class. Then under Place Actors search for Smartsuit controller and Smartsuit Reciever and drag them into the scene. Click on the Smartsuit Receiver in the world outliner and change the Streaming Data Port to 14043.

To enable Rokoko Studio, go to Window → Studio Live and under Source click on Rokoko Studio Source and choose Studio.

Setting up Rokoko studio for Studio Live When the scene is open and the suit is paired up with a profile. Go to Start Live Stream. Then navigate to Custom and click on the cogwheel. Now change the port to 14045 and change the Data format to JSON v3. Then click on the little slider beside the port number.

Show the Rokoko Studio UI inside Unreal Engine In the content browser, click on View Options and enable Show Plugins Content. Then in the content view find Widgets under Smartsuit Content, and drag it into the scene. This will enable the UI when streaming from Rokoko Studio.

Inside Unreal Engine click Play and the suit and gloves should be setup with Studio Live, from Rokoko Studio.

Issues

File a bug in GitHub Issues

License

Copyright (c) Rokoko Electronics ApS. All rights reserved.

Licensed under the GNU GPLv3 License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 84.7%
  • C 12.8%
  • C# 2.4%
  • Batchfile 0.1%