arrow-left

All pages
gitbookPowered by GitBook
1 of 6

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Concepts

Which Devices are Compatible with WebXR?

WebXR-compatible devices include fully-immersive 3D headsets(VR Headsets) with motion and orientation tracking, Augmented Reality glasses, like HoloLens and MagicLeap ,which overlay graphics atop the real world scene passing through the frames, and AR compatible(ARCore and ARKit supported) handheld mobile phones which augment reality by capturing the world with a camera and augment that scene with computer-generated imagery.

circle-info

iOS devices such as iPhone and iPad currently does not support WebXR APIs in Safari or Chrome but WebXR Viewer App is available from the App Store: https://apps.apple.com/us/app/webxr-viewer/id1295998056arrow-up-right

hashtag
Virtual Reality WebXR Navigation and Teleportation Demo

hashtag
Augmented Reality on Android Devices

WebXR Demo

What is the Lifecycle of a WebXR Application?

The basic steps most WebXR applications will go through are:

  1. Query to see if the desired XR mode is supported.

  2. If support is available, advertise XR functionality to the user.

  3. A indicates that the user wishes to use XR.

  4. Request an immersive session from the device

  5. Use the session to run a render loop that produces graphical frames to be displayed on the XR device.

  6. Continue producing frames until the user indicates that they wish to exit XR mode.

  7. End the XR session.

user-activation eventarrow-up-right

Which Browsers support WebXR?

Different browsers are implementing and WebXR APIs in different timeframes. Currently Chrome and new Edge browsers have WebXR APIs turned on as default and some of the features are under experimental flags.

You can check the current support status at CanIUse.comarrow-up-right.

Check browser support at CanIUse.com

hashtag
How to try out experimental features in Chrome and Edge

You can turn on experimental flags by navigating to chrome://flags/ or edge://flags/ and searching for the experimental flag you are looking to enable and choosing enable from the drop down menu.

What are WebXR Device APIs?

WebXR is a group of standards being implemented by the browsers, which are used together to support rendering 3D scenes to hardware designed for Mixed Reality. Mixed Reality devices are presenting virtual worlds (virtual reality, or VR), or for adding graphical imagery to the real world, (augmented reality, or AR).

The WebXR Device API implements the core of the WebXR feature set, managing the selection of output devices, render the 3D scene to the chosen device at the appropriate frame rate, and manage input, such as controllers and hand interactions.

WebXR Device APIs are replacing the deprecated WebVR API. WebVR API was designed with only VR devices in mind. With the addition of new AR headsets and AR capable handheld devices, the WebVR API is deprecated in favor of WebXR Device APIs, that include AR Modules.

  • Introduction

  • WebXR Device APIs:

  • Immersive Devices

  • VR Headsets for Mobile Devices.

  • Oculus Quest

  • Augmented Reality(AR) or Mixed Reality(MR) Headsets

  • WebXR with Mobile Devices

  • Pokemon Go

  • WebVR vs WebXR

  • Virtual Reality on the Web

  • Mozilla Hello WebXR Demo:

  • WebXR Features 11: 30 Gamepad API

  • Input Profiles Library

  • WebAR Module

  • Hit Test

  • How to Get Started Building WebXR Experiences

  • WebGL

  • WebXR Libraries

  • ThreeJS:

  • A-Frame:

  • BabylonJS:

  • React 360:

  • PlayCanvas:

  • More on A-Frame

  • A-Frame Hello World Code

  • Future of WebXR APIs

  • WebXR Accessibility and DOM Overlay API

  • Lighting Estimation Using Computer Vision

  • Anchors

  • Layers

  • Hand Interactions

  • WebXR Resources 30: 10 How to Get Involved with Immersive Web Working and Community Groups

00:00arrow-up-right
01:09arrow-up-right
https://github.com/immersive-web/webx... arrow-up-right
02:30arrow-up-right
03:59arrow-up-right
05:09arrow-up-right
06:07arrow-up-right
07:00arrow-up-right
07:36arrow-up-right
08:18arrow-up-right
09:43arrow-up-right
10:36arrow-up-right
https://mixedreality.mozilla.org/hell...arrow-up-right
11:12arrow-up-right
12:56arrow-up-right
14:51arrow-up-right
15:50arrow-up-right
17:11arrow-up-right
17:25arrow-up-right
18:00arrow-up-right
18:08arrow-up-right
https://threejs.org/arrow-up-right
18:17arrow-up-right
https://aframe.io/arrow-up-right
18:26arrow-up-right
https://www.babylonjs.com/arrow-up-right
18:37arrow-up-right
https://facebook.github.io/react-360/arrow-up-right
18:53arrow-up-right
https://playcanvas.com/arrow-up-right
19:00arrow-up-right
19:55arrow-up-right
21:07arrow-up-right
21:29arrow-up-right
24:13arrow-up-right
25:05arrow-up-right
26:42arrow-up-right
28:16arrow-up-right
29:10arrow-up-right

What is XRReferenceSpaceType?

XRReferenceSpaceType defines how much your user can move in you experience.

XRReferenceSpaceType

Description

Interface

bounded-floor

Similar to the local type, except the user is not expected to move outside a predetermined boundary, given by the in the returned object.

local

A tracking space whose native origin is located near the viewer's position at the time the session was created. The exact position depends on the underlying platform and implementation. The user isn't expected to move much if at all beyond their starting position, and tracking is optimized for this use case.

For devices with six degrees of freedom (6DoF) tracking, the local reference space tries to keep the origin stable relative to the environment.

local-floor

Similar to the local type, except the starting position is placed in a safe location for the viewer to stand, where the value of the y axis is 0 at floor level. If that floor level isn't known, the will estimate the floor level. If the estimated floor level is non-zero, the browser is expected to round it such a way as to avoid fingerprinting (likely to the nearest centimeter).

unbounded

A tracking space which allows the user total freedom of movement, possibly over extremely long distances from their origin point. The viewer isn't tracked at all; tracking is optimized for stability around the user's current position, so the native origin may drift as needed to accommodate that need.

viewer

A tracking space whose native origin tracks the viewer's position and orientation. This is used for environments in which the user can physically move around, and is supported by all instances of , both immersive and inline, though it's most useful for inline sessions. It's particularly useful when determining the distance between the viewer and an input, or when working with offset spaces. Otherwise, typically, one of the other reference space types will be used more often.

boundsGeometryarrow-up-right
XRBoundedReferenceSpacearrow-up-right
XRReferenceSpacearrow-up-right
user agentarrow-up-right
XRReferenceSpacearrow-up-right
XRReferenceSpacearrow-up-right
XRSessionarrow-up-right
XRReferenceSpacearrow-up-right
An introduction to WebXR APIs and feature samples