WebXR Anchors

This API is an extension to the WebXR Device API that provides a way to indicate to the underlying pose tracking system that a 3D pose is meant to be kept up to date. Poses may be arbitrary or attached to real world geometry. With current AR tracking technology, poses evolve over time as the system understands more of the real world that surrounds it. As the system tracking evolves, virtual object poses should be automatically updated so they maintain their relationship to the real world.

AR systems provide a way to know an estimation of a device pose (position and orientation) in the real world with high accuracy. These systems evolve the accuracy of the pose as time goes by and as more information about the real world is provided. These changes in the estimation of the pose of the device are not usually transmitted to the application level. Instead, AR systems provide a way for the app to indicate poses that are relevant for the app (e.g., where virtual objects are placed) and let the system handle a way to make corrections to those poses as the device’s main pose is updated. As AR systems do not expose the pose changes directly and instead provide notifications by these anchoring mechanisms, web apps also need to be able to specify poses to be updated by the system. Without anchors, virtual objects placed in reference to the real world could drift from their reference position performing unexpected jumps of position. While this may not be relevant for all experiences, it is best if developers are in the habit of always using anchors to provide the best experience for users across clients and use cases.

Demo

Documentation

Status in Chromium

Blink>WebXR


Behind a flag (tracking bug) in:

  • Chrome for Android release 79

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • Public support
  • Public support
  • No public signals
  • Positive

Owner

Last updated on 2019-09-13