Skip to content
BENIBIX Learn

WebXR

Design🧊 3D & Immersive3D Tools

Also known as WebXR Device API, WebVR, Web XR

A web standard that lets a web page show VR and AR on headsets and phones.

Think of it like

It is like a door in a web page. It opens into a world in a headset.

Example

Lucy builds a museum tour with three.js. Visitors open a link on a headset, tap Enter VR and walk the rooms with no app to install.

Why it matters

A link is easier to share than an app. No store review and no install between the visitor and the experience.

Definition

WebXR is a web standard that lets a web page run VR and AR. The page asks the browser for an XR session. The browser hands over the headset's position and the controllers. The page draws the 3D scene with WebGL, once for each eye. The W3C, the group that writes web standards, looks after it.
WebXR adds one step: the browser hands the headset's view to the page.

Common mistake

Assuming every browser supports it. Check for support first and show a plain 3D view when it is missing.

Key takeaways

  1. 1
    From a web page. No app to install.
  2. 2
    Browser gives tracking. Head and controllers.
  3. 3
    Draws with WebGL. Once for each eye.