Skip to content

Commit c762f05

Browse files
committed
Add optimizeHMD flag to oculus example
1 parent 1987ee5 commit c762f05

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

v2/oculus/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<!-- note - the light grabbing doesn't work with r68 -->
66
<script src="//cdnjs.cloudflare.com/ajax/libs/three.js/r67/three.min.js"></script>
77

8-
<script src="//js.leapmotion.com/leap-0.6.2.min.js"></script>
9-
<script src="//js.leapmotion.com/leap-plugins-0.1.7.min.js"></script>
8+
<script src="//js.leapmotion.com/leap-0.6.3.min.js"></script>
9+
<script src="//js.leapmotion.com/leap-plugins-0.1.8.min.js"></script>
1010
<script src="//js.leapmotion.com/leap.rigged-hand-0.1.5.min.js"></script>
1111
<!-- Slightly modified version of OculusRiftEffect.js from THREE.js to target for DK2 -->
1212
<script type="text/javascript" src="javascript/OculusRiftEffect.js"></script>

v2/oculus/javascript/controller.coffee

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
window.controller = controller = (new Leap.Controller({background: true}))
1+
window.controller = controller = (new Leap.Controller({
2+
background: true
3+
optimizeHMD: true
4+
}))
25

36
# this transforms the entire leap coordinate space
47
# note the usage of Euler rotation, first around the Z axis to right the hand,

v2/oculus/javascript/controller.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)