Glossary ยท AR & VR

WebXR

In short

WebXR (the WebXR Device API) is a group of web standards that let a website render 3D scenes to VR headsets or overlay digital content on the real world (AR) โ€“ directly in the browser, without an app [1][2].

What WebXR is

MDN describes WebXR as a group of standards used together to render 3D scenes to hardware for virtual worlds (VR) or to add graphics to the real world (AR) [1]. The WebXR Device API gives access to head tracking, motion controllers, hand tracking and display output of such devices [4].

The W3C specification defines three session modes [2]:

ModeMeaning
inline3D inside the page, no headset
immersive-vra fully virtual environment on a VR headset
immersive-arcontent over the real environment, defined in the AR module [3]

Both documents have the W3C status Candidate Recommendation Draft, so they are not yet finished standards [2][3].

How it differs from Quick Look and Scene Viewer

AR Quick Look and Scene Viewer are operating-system viewers that open a finished file. With WebXR your own application keeps running in the browser, so in principle options could be changed inside AR. The trade-off: support varies more between browsers and devices than with the system viewers.

In practice

Many websites combine the routes. The model-viewer component by default tries WebXR, Scene Viewer and Quick Look in turn [5]. Before a project, check current browser support and test on the devices your buyers use.

For configurators

WebXR is worth it when buyers should adjust the product in its surroundings, such as furniture in a room. For a simple "how big is it in my space?" the system viewers are usually enough. See our 3D product viewer page for AR on product pages.

Related terms

  • Augmented reality (AR)

    Augmented reality (AR) overlays real-time 3D graphics on the real world through a display such as a phone or a headset, so a product model appears in the buyer's own surroundings. On the web this usually runs through AR Quick Look, Scene Viewer or WebXR.

  • Virtual reality (VR) and mixed reality

    Virtual reality (VR) replaces the real surroundings entirely with a simulated one, usually through a headset. Mixed reality and AR blend real and virtual content; extended reality (XR) is the umbrella term. In the browser, VR sessions run through WebXR in the immersive-vr mode.

  • AR Quick Look

    AR Quick Look is Apple's built-in viewer that shows 3D models in the USDZ format in 3D and AR on iPhone, iPad and Apple Vision Pro. From Safari it starts through a link to a USDZ file marked with rel="ar".

  • Scene Viewer (Android)

    Scene Viewer is Google's viewer that lets a website or Android app show 3D models in 3D and AR. It reads glTF 2.0 and GLB and is launched from the browser through a special intent link.

  • WebGL

    WebGL (Web Graphics Library) is a JavaScript API that lets web pages draw hardware-accelerated 2D and 3D graphics in the browser without plug-ins. It renders into an HTML canvas element using the device's graphics hardware.

Sources

  1. MDN Web Docs: WebXR Device API
  2. W3C: WebXR Device API (Candidate Recommendation Draft)
  3. W3C: WebXR Augmented Reality Module - Level 1 (Candidate Recommendation Draft)
  4. Immersive Web Working Group: WebXR overview
  5. Google model-viewer: attribute documentation (docs data)

โ† All terms in the glossary