Unity project demonstrating VR using TrinusVR + OpenTrack Redirect, plus Leap Orion (for Oculus) for hand tracking.
This works great for testing VR/AR experiences without expensive hardware (looking at you Oculus).
UDP receiver, Head tracking script, and example scene is forked from: https://github.com/marcteys/unityFaceTracking
Setup and Debugging
- Install TrinusVR on your desktop and Android device: http://trinusvr.com/
- Open the Unity project and import the core leap assets: https://developer.leapmotion.com/unity?id=unity5-core-assets
- Open the
- Start TrinusVR, load the configuration file
- Adjust inversion and sensitivity settings, and ensure Sensor Output is set to
- Start TrinusVR app on the Android device, and connect the desktop application
- Build & Run!
Implementing Head Tracking
To implement head tracking in an existing project, simply add the
Client script to your scene, then the
FaceTrackMovement script to your camera.
Implementing Leap Hand Tracking
Add the Leap VR Camera Control script to your camera, then add the
LeapSpace prefab as a child to your camera (or simply copy it from one of the example scenes).
If you start the demo by looking at the ground or sky, adjust the Yaw Compensation in the FaceTracking script.
You may also need to adjust the inversion and sensitivity in TrinusVR’s