javascript
javascript copied to clipboard
Ports demo to native VR API
Hi from Mozilla. This patch makes one of those demos use the VR native APIs in the browser.
You need to run the demo in one of the development builds:
http://vrhelloworld.com/builds/
Tried a cursory test in FF - looks nice! I'm curious - would it be better to fall back to a THREE.js riftEffect if the APIs are not available? This would remove browser dependencies, at the cost of more complication (edge cases for the app dev to test, etc). Perhaps the idea is that anyone with a rift would be sure happy to upgrade their browser for VR web apps.
The two scripts - VREffect & VRControls - is the idea that they would be available somewhere as 3rd party libraries?
They’re already part of three.js
https://github.com/mrdoob/three.js/blob/master/examples/js/controls/VRControls.js
https://github.com/mrdoob/three.js/blob/master/examples/js/effects/VREffect.js
I have to update the link to the builds
Diego.
On Oct 7, 2014, at 10:28 PM, Peter Ehrlich [email protected] wrote:
The two scripts - VREffect VRControls - is the idea that they would be available somewhere as 3rd party libraries?
— Reply to this email directly or view it on GitHub.