Skip to content

Commit

Permalink
Add optimizeHMD flag to oculus example
Browse files Browse the repository at this point in the history
  • Loading branch information
pehrlich committed Oct 8, 2014
1 parent 1987ee5 commit 1ce20d8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion v2/oculus/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!-- note - the light grabbing doesn't work with r68 -->
<script src="//cdnjs.cloudflare.com/ajax/libs/three.js/r67/three.min.js"></script>

<script src="//js.leapmotion.com/leap-0.6.2.min.js"></script>
<script src="//js.leapmotion.com/leap-0.6.3.min.js"></script>
<script src="//js.leapmotion.com/leap-plugins-0.1.7.min.js"></script>
<script src="//js.leapmotion.com/leap.rigged-hand-0.1.5.min.js"></script>
<!-- Slightly modified version of OculusRiftEffect.js from THREE.js to target for DK2 -->
Expand Down
5 changes: 4 additions & 1 deletion v2/oculus/javascript/controller.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
window.controller = controller = (new Leap.Controller({background: true}))
window.controller = controller = (new Leap.Controller({
background: true
optimizeHMD: true
}))

# this transforms the entire leap coordinate space
# note the usage of Euler rotation, first around the Z axis to right the hand,
Expand Down
3 changes: 2 additions & 1 deletion v2/oculus/javascript/controller.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1ce20d8

Please sign in to comment.