Install and set up the SteamVR plugin
This topic describes how to install the Vicon SteamVR plugin for fusing Vicon positional data with SteamVR IMU rotational data in Unreal Engine 4.
Which versions are covered?
The following instructions cover the Unreal SteamVR plugin for Unreal Engine versions 4.25 and 4.26.
Install the SteamVR plugin
To install the Vicon SteamVR plugin, complete the following procedures:
Before you begin
Before you begin the installation, ensure you have the necessary components and installation.
- 1 x PC with Vicon software
- 1 x PC with Unreal Engine 4 installed
- PCs connected via LAN
These HMDs have been tested for use with the Vicon Unreal plugin:
- Oculus Rift / Rift S
- HP Reverb
- HP Reverb G2
- HTC Vive / Vive Pro*
* Due to the requirements of the HTC headsets, they must also be visible by an HTC Vive Base Station.
Install the Vicon LiveLink DataStream Plugin
The Vicon SteamVR plugin relies on the LiveLink plugin being installed.
- If you haven't already done so, install and set up the LiveLink plugin.
Run the SteamVR plugin installer
-
Before running the installer, ensure the engine version downloaded matches the desired engine version.
-
Double-click the MSI file to run the installer.
-
Accept the license agreement and click Next.
The installer should automatically detect the installed version of the engine.
- If the installer did not detect the engine, click Browse.
-
Navigate to the installed engine location (by default C:\Program Files\Epic Games\UE_4.x) and click OK.
-
Click Next again and finally Install.
Set up the plugin in the editor
- Create and launch an existing project or open an existing one.
-
Open the Plugins browser by navigating to Edit > Plugins.
-
In the Plugins window go to the Virtual Reality section.
-
Ensure the Vicon SteamVR plugin is enabled.
-
Ensure all other Virtual Reality plugins are disabled (they can interfere with the Vicon plugin).
- If required, restart the editor.
Initialize Vicon Fusion
This topic describes how to set up VR fusion between Vicon positional data and HMD IMU rotational data.
Note
Currently this is only possible using Blueprints. In the future, other methods may become available.
Before you begin
Ensure you have the following prerequisites:
- 1 x PC with Vicon software
- 1 x PC with Unreal Engine 4 installed
- PCs connected via LAN
- SteamVR installed (WindowsMR plugin for SteamVR if required)
- A supported VR HMD (SteamVR) with appropriate software installed
- Vicon LiveLink Datastream Plugin is installed. See Install and set up the LiveLink plugin.
- Vicon SteamVR Plugin is installed. See Install the SteamVR plugin.
- UE4 Project open
- Live Link source created using one of the methods described in Create a Vicon Live Link source.
Set up a headset using the Blueprint function
Create a new Blueprint
-
In the content browser, right-click and under Create Basic Asset choose Blueprint Class.
-
In the dialog box, choose Actor so that it can be spawned or placed in the level.
- Give the resulting blueprint a suitable name and open it up.
-
In the new blueprint, in the toolbar along the top, navigate to the Event Graph.
Set up the blueprint function
- Right-click in an empty spot in the graph and search for "Initialize Vicon Headset".
Select this function to spawn a node in the graph.
- Connect an event trigger to the input of the node.
(In this example the event "EventBeginPlay" will be used. This will cause the Live Link connection to be created once play has been started.) - Enter the name of the HMD prop/object from the Vicon software.
- Compile and save the blueprint.
- Drag the blueprint from the content browser directly in the level.