Virtual Production get started

Key takeaways
How to use Tracker data in Unity
How to use Tracker data in Unity
How to set up a Virtual Camera in Unreal
How to set up a Virtual Camera in Unreal
How to use Virtual Production Props in Unreal
How to use Virtual Production Props in Unreal
How to use Virtual Production Props in Unity
How to use Virtual Production Props in Unity

How to use Virtual Production Props in Unity

Did you know that you can live-stream tracker data directly to props inside of Unity? Check out this video to see exactly how to set this up for your own custom props.

This blog serves as a guide to teach users how to set up Virtual Production props inside of Unity. Virtual props gives you the ability to control different game objects inside of Unity in real-time with Vive trackers. Read on below to learn how easy it is to set up!

Note: Before proceeding below, make sure that you already have the Virtual Production kit setup with at least one Vive tracker online. If you need help setting this up, check out our blog Virtual Production Setup. Also, you must have at least a Studio Plus subscription in order to take advantage of Live Streaming data - see subscription plans here.

Rokoko Studio Setup

  • With the Virtual Production already setup and at least one Vive tracker live, add a prop to your scene.
  • Click on the blue cube icon or the purple stick icon at the bottom of the “Virtual Production” window
  • Assign your tracker to the prop
  • Click and drag the grey tracker icon within the “Virtual Production” panel directly on top of “Box-1” or “Stick-1”
  • Note: To unassign a track from a prop, you can drag the tracker icon from below the prop to the grey box titled “Drop here to free tracker”. You may also simply drag and drop it on top of another prop to reassign it
  • Next, click the cogwheel icon at the top left of Studio and hover your cursor over “Data streaming”
  • Click to enable “Stream data”
  • Ensure that your ‘Forward IP’ address is set to the IP address of the computer you will be streaming data to
  • Ensure that your ‘Forward Port’ and ‘Forward VP port’ are different
  • Take note of what your ‘Forward VP port’ number is because it will be needed inside of Unity

Installing Rokoko Live Plugin

  • Click the Unity Launcher to open the Unity program.
  • Open an existing or new Unity Project (if this is your first time, we recommend opening a new project)
  • Import Smartsuit Plug-in from Asset Store
  • Click 'Window', then 'Asset Store' to pull up the Asset Store in-engine
  • Search for ‘Rokoko Live' then download and import it into your project

Setting up Virtual Production Receiver

  • After importing the plugin, within the Rokoko > Smartsuit folders, drag and drop the ‘DataReceivers’ prefab into your Hierarchy tab
  • This is required within your scene for live streaming to work
  • Make sure that the ‘VirtualProductionReceiver’ prefab is highlighted in the Hierarchy so that you can see the attached script components in the Inspector
  • Paste the “Forward Port” number that you copied from Studio into both the “Port’ field

Unity Setup

  • Within your Hierarchy, click the game object that you would like to stream real-time data to
  • Click ‘Add Component’ button within the Inspector and type “Virtual Production Prop” and click the script to add it
  • Within the “Prop Name” text field, input the name of the prop inside of Rokoko Studio.
  • By default it should be named “Box-1” or “Stick-1” depending upon which prop you have added
  • Once done, click the Play button to test
  • If the game object starts moving when you move the tracker, then it works!

We hope that this guide has helped you learn how to set up a virtual production props within Unity. If you run into any issues during this process, feel free to reach out to our support desk or email support@rokoko.com.

Virtual Production
Unity
Key takeaways
How to use Tracker data in Unity
How to use Tracker data in Unity
How to set up a Virtual Camera in Unreal
How to set up a Virtual Camera in Unreal
How to use Virtual Production Props in Unreal
How to use Virtual Production Props in Unreal
How to use Virtual Production Props in Unity
How to use Virtual Production Props in Unity
More courses