This example is now deprecated in favor of: https://developer.leapmotion.com/gallery/vr-quickstart
Demonstrates the Rift Effect and how to transfrom Leap Motion data for use with the rift! This does not do position tracking. For that you should look at http://threejs.org/examples/#misccontrolsoculusrift
Here's a quickstart guide on the various components: https://gist.github.com/pehrlich/75f26a54a2f4a46cbb0c
IMPORTANT: This library calls controller.setOptimizeHMD(true)
, which makes tracking much better when being used top down. This requires 2.1.5+22699
or greater. If any tab requests HMD mode, they will all get it. You can confirm that this is working with the Software Log in the Troubleshooting section of the Control Panel.:
Pinch to attach a light to your hand. This allows you to illuminate two rotating blue cubes.
- Designed to be used with Leap Motion VR Developer Mount.
- Makes use of the transform plugin to rotate the hands to the correct orientation for head-mounted use.
- Does not support head tracking. You can set it up using this.
Note that tracking v2.1.5 and LeapJS v0.6.3 or greater are required. These add the optimizeHMD flag for javascript.