Help Mozilla Research by taking part in Project WebXR Viewer, an augmented reality and virtual reality viewer that lets you navigate to XR experiences just like websites.
Browse to websites written using WebXR, a proposal for extending WebVR with AR support that will work across all XR devices. The WebXR Viewer uses Apple's ARKit to display WebXR content using AR.
Record and share videos taken of your web content in the real world.
To learn more about Project WebXR Viewer and other ways Mozilla is working to bring augmented reality, virtual reality, and mixed reality to the web, visit our website at mixedreality.mozilla.org.
This application is not intended to replace a fully featured web browser. It is meant only for experimenting with building WebXR applications.
Building this app requires XCode 9 (beta 6 or newer) and an iPhone or iPad running at least iOS 11.
Before opening XCode, update cocoapods by running:
cd webxr-ios
pod repo update
pod install
Then use XCode to open webxr-ios/XRViewer.xcworkspace (not the project file) so that you get the cocoapods.
The app will only build if your build target is an iOS 11 device, not the simulator. The symptom of this is a missing CVMetalTextureRef
reference.
For your development build, go to the project settings by clicking the project name in the "Project navigator" (usually the left most item in the left panel), selecting "Automatically manage signing" in the "Signing section", then choose your Team. You may need to add an account if you don't already have a team.
We have started a WebXR polyfill that can use the ARKit to Javascript bridge exposed in this application. You can include that in any web page and use the example code in the same repository to get started building your own XR web applications.
While your iOS device is cabled to your development machine, you can use Safari 11 or newer to connect developer tools via Safari's Develop
menu.
It can be handy to change the default URL loaded by the app by changing the WEB_URL
string in WebARKHeader.h to the URL of your local web server.
The WebXR Viewer for iOS uses Mozilla's own Telemetry service (developed for Firefox and Focus) for anonymous insight into usage of various app features. This event tracking is turned on by default for the WebXR Viewer for iOS (opt-out).
You can read more about how we use the Telemetry service here.
We encourage you to participate in this open source project. We love Pull Requests, Bug Reports, ideas, (security) code reviews or any kind of positive contribution. Please read the Community Participation Guidelines.
-
Slack: We are on the AFrame and WebVR slacks
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/