Stream an HMD prop from Vicon Shogun
Which versions are covered?
The following instructions cover the Unreal SteamVR plugin for Unreal Engine versions 4.25 and 4.26.
Before you begin
Before you begin, ensure the following preconditions are met:
- Shogun is installed on a capture PC.
- Unreal Engine is installed on a game-ready PC.
- The latest Unreal Engine plugin is installed on the game-ready PC.
- The two PCs are connected via a network.
- Vicon LiveLink Datastream Plugin is installed (see Install and set up the LiveLink plugin).
- Vicon SteamVR Plugin is installed (see Install and set up the SteamVR plugin).
- UE4 project open
Set up the Shogun prop
In Shogun Live, using the Tracking panel, create a new rigid prop.
Ensure that the prop's co-ordinate system is Y-up, Z-back. This is to match the SteamVR HMD orientation.
Ensure that the object pose (root bone) is positioned correctly located at the center of the eyes.
- Take note of the prop name.
Set up Live Link
To set up Live Link, use one of the methods described in Create a Live Link source.
Set up Fusion
- Follow the steps in Initialize Vicon Fusion.
- Ensure the Object Name field matches the Shogun prop name.
In the Details panel, set the Z location to the floor (usually 20 in the default map). Under Actor, locate Spawn Collision Handling Method. Set the dropdown to Always Spawn, Ignore Collisions. Click on the dropdown next to the button and select VR Preview.Check the animation at runtime
Note: Unwanted collisions with other Actors (e.g. a character) can cause unintended behavior.
Tip: If this option is disabled, ensure that the VR headset is plugged in and the correct plugins have been set as described in Set up the plugin in the editor. You may need to restart the editor for this option to become available.
Package the project
Navigate to Edit > Project Settings.
Navigate to Project > Description > Settings.
Ensure Start In VR is enabled.
- Follow the steps in Packaging a project.
- Launch the executable.