Three.js: Support WebXR API (to eventually deprecate WebVR v1.1)

Created on 1 May 2018  路  8Comments  路  Source: mrdoob/three.js

The WebXR API is the successor to WebVR API (v1.1). There is a new Chrome Origin Trial, WebXR.

You can test WebXR on Chrome M67+ (with the WebXR and Gamepad Extensions flags enabled from chrome://flags). Tentative timeline for Chrome: September 2018. Other browser vendors: TBD.

Relevant links:

Enhancement

Most helpful comment

There are still a few bugs, but all the examples should be able to Enter/Exit XR now.
https://rawgit.com/mrdoob/three.js/dev/examples/?q=webvr

All 8 comments

Is there supposed to be an option on the trial signup form? I don't see it...

capture 4

@modulesio thanks for the catch! 馃憤 I filed GoogleChrome/OriginTrials#46, and it was swiftly fixed. check the Sign-Up page now:

screen shot of Features on Origin Trials Sign-Up page

13978 馃槉

@cvan can you try the current implementation in dev? All the examples should work except the webvr_vive ones.

There are still a few bugs, but all the examples should be able to Enter/Exit XR now.
https://rawgit.com/mrdoob/three.js/dev/examples/?q=webvr

XRInput now implemented via rendere.vr.getController().
I've also added the same API to WebVRManager for cross-browser/device support.

This example should behave the same in WebVR and WebXR:
https://rawgit.com/mrdoob/three.js/dev/examples/webvr_ballshooter.html

This is how the abstraction looks like:

download_20180623_075256

WebVR support has been removed #18129. WebXR is now available with latest Chrome (without flags or origin trials token) and supported via WebXRManager.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sunag picture sunag  路  161Comments

danrossi picture danrossi  路  210Comments

mrdoob picture mrdoob  路  75Comments

arctwelve picture arctwelve  路  92Comments

jonobr1 picture jonobr1  路  95Comments