Skip to content

Unity project demonstrating desktop VR with hand tracking using a smartphone as display and gyro input. Uses TrinusVR + OpenTrack for head tracking, plus Leap Orion (for Oculus) for hand tracking.

zhangjingpu/CardboardVR-Leap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CardboardVR-Leap

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

  1. Install TrinusVR on your desktop and Android device: http://trinusvr.com/
  2. Open the Unity project and import the core leap assets: https://developer.leapmotion.com/unity?id=unity5-core-assets
  3. Open the MainScene
  4. Start TrinusVR, load the configuration file TrackingConfig\TrinusVR\default.cfg
  5. Adjust inversion and sensitivity settings, and ensure Sensor Output is set to OpenTrack Redirect
  6. Start TrinusVR app on the Android device, and connect the desktop application
  7. 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).

Troubleshooting

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 Sensors tab.

About

Unity project demonstrating desktop VR with hand tracking using a smartphone as display and gyro input. Uses TrinusVR + OpenTrack for head tracking, plus Leap Orion (for Oculus) for hand tracking.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 80.4%
  • Classic ASP 18.4%
  • GLSL 1.2%