Mozilla is building a new API called WebXR aiming to expand the capabilities of WebVR and enable the creation of mixed reality experiences on the web.
WebVR was first conceived in spring 2014 by Vladimir Vukićević from Mozilla with the aim of providing an open source API for displaying VR content on the web. On March 1st 2016, the Mozilla VR team and the Google Chrome team announced version 1.0 of the WebVR API.
The API is supported across many browsers including Firefox, Chrome, Edge, Samsung Internet, Chromium, and Oculus Carmel. Mozilla wants to build on this base of support and eventually replace WebVR with WebXR.
WebXR expands beyond VR content to include AR experiences. The API aims to provide a ‘smooth transition’ for developers using WebVR today but provide a more encompassing solution for mixed reality content on the web.
Lars Bergstrom, Mozilla Research Engineering Manager for VR/AR, wrote in a blog post:
Key to expanding into AR with WebXR is building on input support. The new API will support a wider variety of inputs such as voice and gestures, providing users with more options for navigating and interacting in virtual spaces.When it comes to creating the virtual spaces, Mozilla wants to establish a technical foundation for AR development which allows creators to integrate real-world media with contextual overlays that elevate the experience.
There are powerful examples of how AR can be used to share experiences, help lives, and improve education. This includes museums which use AR to provide more information about exhibits, apps which display new furniture in a property before purchase, and even providing some idea to people of what it’s like to walk in war-torn areas such as Syria.
WebXR will help such experiences proliferate by making them easier to build and target some of the constraints of today’s wireless devices. For instance, creating a skybox setting for changing the background image of a web page.
Mozilla plans for WebXR to be supported everywhere WebVR is currently, including Windows, Linux, macOS, and Android/GeckoView platforms. Until then, Mozilla will continue supporting WebVR until most players have transitioned to WebXR. Code for a WebXR demo app created by Mozilla for iOS can be found on GitHub.
Published by Editor: Ryan Daws