WebXR

Note: you are currently viewing documentation for a beta or an older version of Varjo

WebXR is a set of standards that, when used together, allow developers to develop applications in JavaScript that can run on our hardware.

The main standard WebXR Device API and extensions to it allow JavaScript to access our hardware. The speficification is just an interface, and it’s left to implementors to create WebXR viewers to implement the standard so customers can view and interact with applications that have been developed for WebXR. The typical viewer is compatible web-browser, but specific to the Windows platform both Chrome and Edge support WebXR today, which makes it easy to use with Varjo XR-4.

Functionality

We have the following experimental support for our XR-4 devices using recent versions of Microsoft Edge or Google Chrome:

Feature XR-4 XR-3 / Aero
WebXR Device API (core) supported (1 supported (2
WebXR Gamepads supported supported
WebXR Augmented Reality(3 not supported not supported
WebXR Hit Test not supported not supported
WebXR DOM Overlays supported supported
WebXR Layers supported supported
WebXR Anchors not supported not supported
WebXR Lighting Estimation not supported not supported
WebXR Hand Input(4 not supported not supported

1) Varjo Controllers are confirmed to function correctly in addition to rest of the Device API.
2) 3rd party hand controllers are confirmed not to function through WebXR.
3) It is currently unclear why the Augmented Reality mode is not working for XR-4.
4) The WebXR Hand Input is an experimental feature in both Microsoft Edge and Google Chrome.

We do not own the feature implementation in Microsoft Edge or Google Chrome, so there might be inacurracies in the information above over time. Please consult Microsoft or Google for the actual support in their web-browser for the most up-to-date and accurate information.

The feature set above is a combination of the web-engine implementaions as well as our supported OpenXR features.

Samples

There are some samples / tutorials available online which have been confirmed to work with Varjo XR-4: