Optitrack VR integration (for a backpack PC)
by Harry Piercy @Target3D
Most of this document is covered in the article here but this document is more specific for the hardware used on the Dazzle showcase (01.12.21)
Streaming positional data of a Vive Pro VR headset from Motive, through SteamVR into an Unreal project running on a backpack PC (HP Z VR backpack).
Setting up Motive and the VR clip
So first things first, set up the vive pro with steam VR as normal – Plug in the USB to one of the sockets on top of the backpack, plug in the Display port cable directly into the the headsets hub and use an adapter to connect to the mini display port on the top of the PC, plug the power cable into the socket on top of the PC (next to the USBs). Press the power button on the hub and check the headset boots up – at this point all you will see is a grey screen as the headset is not currently tracking (unless setup in an environment with existing base stations).
If you’ve got a Vive Pro Optitrack clip, now’s the time to plug it into the USBc port located next to the power input on the headset itself and attach it to the front of the headset. If you don’t have a clip follow this online guide for setting up a passive tracking constellation:
Marker Types
You can either use the passive retro-reflective type markers or the active LED markers to track the HMD. Passive markers are retroreflective markers that reflect infrared light emitted from the IR LEDs on the camera. On the other hand, the active markers are LED markers that emit the IR light which gets uniquely identified in Motive. Either type of marker can be used to track HMDs. Using active marker is recommended especially for applications that involve tracking of multiple HMDs in the scene.
Marker Placement
- Make sure the markers are attached securely and do not move. If the markers happen to move even slightly after a rigid body is defined, it will negatively affect the tracking and the rigid body definition may need to be updated.
- Avoid placing multiple markers in close vicinity as they may overlap in the camera view in certain orientations.
- Using marker posts to extend out the markers is recommended to improve marker visibility from more angles.
- If you are using the active markers, there is an extra USB port on the HMD that you could draw the power from.
If using the active marker clip you must ensure that an active base station is connected to the same switch as the tracking cameras and has a decent line of sight to the clip itself. If you’ve set this up and still can’t see active markers in Motive check a couple of things:
- That “active” or “passive + active” mode is enabled in Motive
- That the firmware installed on the base station and active clips are the same, to do so download the OptiActiveUpdater from this folder and watch this video for some tips on using it.
With the markers now visible in motive you can create the HMD rigid body. This is a slightly specialised rigid body that needs to be created via the builder panel (not just ctrl+t).

Seeing as this headset will be worn by an audience member, call it something like AudienceHMD. Once created, set the streaming ID to whatever you like, or just keep it at 10000. Because this needs to stream to a separate machine (Whatever machine is running motive to the backpack PC) the streaming settings need to be set up to allow this:

Note here that the local interface is set to whatever network is shared by both the mocap PC and the backpack PC, in our case this was the tracking network. Transmission type is set to Unicast as we found this held a more stable connection than multicast when multiple headsets were being streamed.
Configure SteamVR
Now make sure that steam and steam VR are both downloaded on the backpack PC, avoid version 1.16.8 if possible but this shouldn’t be a problem as the current version is 1.20. Also make sure that the optitrack openVR driver is installed from here. Make sure SteamVR is running so the configurator can be initialised. Go through the setup wizard and set up the config to reflect something like this:

Now hit save to apply the config. You should see a new “T” token in the SteamVR interface which refers to tracking, when this “T” is solid. We found that leaving the headset in sight of tracking while applying this config made things work a bit easier as you can see results more instantly, we also found that once applying the config settings it helps to turn off and on the broadcast frame toggle in Motive to give steam VR a nudge to update. If the “T” doesn’t appear make sure the Optitrack add-on is not being blocked by going to the steam VR settings > Startup /Shutdown > Manage add ons > enable optitrack.

This stage of the process is particularly fiddly and seemed to give us some inconsistent results, so the advice given above might need to be tried a couple of times and even restarting steam VR or the backpack PC can also be helpful. Patience is the key to success here. Once the T is solid though you should be able to put on the headset and see the SteamVR landscape or cabin and move around with 6DoF tracked.
Setting up an Unreal Scene
Now in the Unreal engine on the project loaded to the backpack machine make sure that all relevant plugins (steamVR, openXR etc). Create a new blueprint pawn class and add a standard camera. In that camera set the “auto poses player” dropdown to player_0, set the “base eye height” to 0 and enable the “lock to hmd” toggle.
Set the default player pawn in the game mode as the new pawn blueprint, this can be done either in the world outliner as an override or in the project settings to globally apply it to all maps. Launch the game via the VR preview and the headset should now be rendering your unreal scene.