HOME

TheInfoList



OR:

WebXR Device API is a Web
application programming interface An application programming interface (API) is a way for two or more computer programs to communicate with each other. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how t ...
(API) that describes support for accessing
augmented reality Augmented reality (AR) is an interactive experience that combines the real world and computer-generated content. The content can span multiple sensory modalities, including visual, auditory, haptic, somatosensory and olfactory. AR can be de ...
and virtual reality devices, such as the HTC Vive, Oculus Rift, Oculus Quest, Google Cardboard, HoloLens, Magic Leap or Open Source Virtual Reality (OSVR), in a web browser. The WebXR Device API and related APIs are standards defined by W3C groups, the Immersive Web Community Group and Immersive Web Working Group. While the Community Group works on the proposals in the incubation period, the Working Group defines the final web specifications to be implemented by the browsers. WebVR was an experimental Web API that was only capable of representing virtual reality and was superseded by WebXR.


History

WebVR API was first conceived in spring 2014 by Vladimir Vukićević from Mozilla. The API's contributors include Brandon Jones(Google), Boris Smus and others from the Mozilla team. On March 1, 2016, the Mozilla VR team and the
Google Chrome Google Chrome is a cross-platform web browser developed by Google. It was first released in 2008 for Microsoft Windows, built with free software components from Apple WebKit and Mozilla Firefox. Versions were later released for Linux, macOS ...
team announced the version 1.0 release of the WebVR API proposal. The resulting API refactoring brought many improvements to WebVR. The latest WebXR Device API Working Draft was last published in February 2022. The editors of the specification currently are from Google and
Meta Meta (from the Greek μετά, '' meta'', meaning "after" or "beyond") is a prefix meaning "more comprehensive" or "transcending". In modern nomenclature, ''meta''- can also serve as a prefix meaning self-referential, as a field of study or ende ...
. Other members from Mozilla, Microsoft, Samsung Electronics and Apple, as well as varies startups and invited experts have input in the future of the specification. All of the discussions of the specifications are public on GitHub. In 2018, the WebXR Device API superseded WebVR, being designed for both
augmented reality Augmented reality (AR) is an interactive experience that combines the real world and computer-generated content. The content can span multiple sensory modalities, including visual, auditory, haptic, somatosensory and olfactory. AR can be de ...
, virtual reality devices and the possible future realities and devices. WebVR was implemented in Firefox and Chromium-based browsers before being deprecated and removed. On September 24, 2018, the Immersive Web Working Group became official.


Design

The WebXR Device API exposes a few new interfaces (such as XRView, XRPose) that allow web applications to present content in virtual reality and
augmented reality Augmented reality (AR) is an interactive experience that combines the real world and computer-generated content. The content can span multiple sensory modalities, including visual, auditory, haptic, somatosensory and olfactory. AR can be de ...
, by using WebGL with the necessary camera settings and device interactions (such as controllers or point of view).


Support

WebXR Device API
Working Draft) is currently partially supported in the release version of Edge and Chrome 79+ and was supported by Chrome for Android until version 98+, Opera 66+, Opera Mobile 64+ and in Samsung Internet 12+ Oculus Browser.


Similar technologies

Although WebXR is unique as an API, there are native applications on most hardware allowing for networked experiences and access to web content. Several key tools, such as Unity and Blender, are also able to export for the web and provide users a way to use their content without installing a dedicated application.


See also

* WebGL * Web API * Virtual Reality *
Augmented Reality Augmented reality (AR) is an interactive experience that combines the real world and computer-generated content. The content can span multiple sensory modalities, including visual, auditory, haptic, somatosensory and olfactory. AR can be de ...
* Metaverse * W3C


References


External links


Fundamentals of WebXR
on MDN Web Docs {{Mozilla HTML5 Virtual reality Web development