javascript icon indicating copy to clipboard operation
javascript copied to clipboard

Ports demo to native VR API

Open dmarcos opened this issue 10 years ago • 3 comments

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/

dmarcos avatar Oct 08 '14 00:10 dmarcos

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.

pehrlich avatar Oct 08 '14 05:10 pehrlich

The two scripts - VREffect & VRControls - is the idea that they would be available somewhere as 3rd party libraries?

pehrlich avatar Oct 08 '14 05:10 pehrlich

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.

dmarcos avatar Oct 08 '14 05:10 dmarcos