From 407b5071a1c44ceb0de055e1ef8b3d15ab6d2fe7 Mon Sep 17 00:00:00 2001 From: angel Date: Mon, 9 Jun 2014 17:52:10 -0400 Subject: [PATCH 1/2] added oculus rendering and first person controls --- Gruntfile.js | 4 +- examples/index.html | 7 +- src/client/controls/Controls.js | 29 +++- src/client/controls/Keyboard.js | 18 ++- src/client/webgl/Camera.js | 76 ++++++++- src/client/webgl/Renderer.js | 14 +- src/shared/vendor/OculusBridge.js | 222 ++++++++++++++++++++++++++ src/shared/vendor/three/RiftCamera.js | 204 +++++++++++++++++++++++ 8 files changed, 560 insertions(+), 14 deletions(-) create mode 100755 src/shared/vendor/OculusBridge.js create mode 100755 src/shared/vendor/three/RiftCamera.js diff --git a/Gruntfile.js b/Gruntfile.js index d6167ed..9e7a92b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -25,6 +25,8 @@ module.exports = function(grunt) { 'src/shared/vendor/q.js', 'src/shared/vendor/three/three.js', 'src/shared/vendor/three/ColorConverter.js', + 'src/shared/vendor/three/RiftCamera.js', + 'src/shared/vendor/OculusBridge.js', 'src/shared/vendor/d3.js', 'src/shared/vendor/catiline.js', 'src/shared/vendor/dat.gui.js', @@ -158,6 +160,6 @@ module.exports = function(grunt) { // Run tests grunt.registerTask('test', ['jshint', 'mocha_phantomjs']); - + grunt.task.run('notify_hooks'); }; diff --git a/examples/index.html b/examples/index.html index c1eaf42..2c93679 100644 --- a/examples/index.html +++ b/examples/index.html @@ -8,7 +8,7 @@ - +