All Projects → mozilla → Webxr Polyfill

mozilla / Webxr Polyfill

Licence: mpl-2.0
A polyfill and example code for building augmented reality (AR) and virtual reality (VR) applications using WebXR.

Programming Languages

javascript
184084 projects - #8 most used programming language
es6
455 projects

Projects that are alternatives of or similar to Webxr Polyfill

Jeelizar
JavaScript object detection lightweight library for augmented reality (WebXR demos included). It uses convolutional neural networks running on the GPU with WebGL.
Stars: ✭ 296 (+30.4%)
Mutual labels:  vr, arkit, ar, arcore, webxr
Webxr Emulator Extension
WebXR emulator extension
Stars: ✭ 231 (+1.76%)
Mutual labels:  vr, ar, webxr
awesome-webxr
All things WebXR.
Stars: ✭ 117 (-48.46%)
Mutual labels:  vr, ar, webxr
Viro
ViroReact: AR and VR using React Native
Stars: ✭ 1,735 (+664.32%)
Mutual labels:  vr, arkit, arcore
emscripten-webxr
WebXR library for use with Emscripten.
Stars: ✭ 21 (-90.75%)
Mutual labels:  vr, ar, webxr
Arcore
ARCore Course
Stars: ✭ 148 (-34.8%)
Mutual labels:  vr, ar, arcore
stardust-SDK
Stardust SDK and sample app for Unity
Stars: ✭ 23 (-89.87%)
Mutual labels:  ar, arkit, arcore
Webar Article
WebAR-Article is a responsive and information rich website that is progressively enhanced with Augmented Reality content exposed through experimental web technologies.
Stars: ✭ 225 (-0.88%)
Mutual labels:  vr, ar, webxr
Arkit Floorislava
Basic ARKit example that detects planes and makes them lava.
Stars: ✭ 120 (-47.14%)
Mutual labels:  arkit, ar
Norman Ar
Decorate your world with AR animations.
Stars: ✭ 122 (-46.26%)
Mutual labels:  ar, arcore
Remixvr
RemixVR is a tool for collaboratively building customisable VR experiences.
Stars: ✭ 129 (-43.17%)
Mutual labels:  vr, webxr
Openbrushvr
Unity VR & AR Painting in 3d space for the Vive and Tango and ARKit
Stars: ✭ 180 (-20.7%)
Mutual labels:  vr, ar
Webxr Handtracking
👐 WebXR hand tracking examples
Stars: ✭ 116 (-48.9%)
Mutual labels:  vr, webxr
Emukit
WebXR immersive console emulator w/ Retroach, Javascript, and WASM
Stars: ✭ 123 (-45.81%)
Mutual labels:  vr, webxr
Dxr
DXR is a Unity package for rapid prototyping of immersive data visualizations in augmented, mixed, and virtual reality (AR, MR, VR) or XR for short.
Stars: ✭ 134 (-40.97%)
Mutual labels:  vr, ar
Model viewer.dart
A Flutter widget for rendering interactive 3D models in the glTF and GLB formats.
Stars: ✭ 134 (-40.97%)
Mutual labels:  vr, ar
Vircadia
Vircadia open source metaverse platform, based on the former High Fidelity Virtual Reality Platform.
Stars: ✭ 110 (-51.54%)
Mutual labels:  vr, ar
Arkit Cardboard Vr
ARkit + GVR to make VR and Mixed Reality 6dof AR for iphone
Stars: ✭ 132 (-41.85%)
Mutual labels:  vr, ar
Stereokit
An easy-to-use mixed reality library for building HoloLens and VR applications with C# and OpenXR!
Stars: ✭ 195 (-14.1%)
Mutual labels:  vr, ar
Nextlevel
NextLevel was initally a weekend project that has now grown into a open community of camera platform enthusists. The software provides foundational components for managing media recording, camera interface customization, gestural interaction customization, and image streaming on iOS. The same capabilities can also be found in apps such as Snapchat, Instagram, and Vine.
Stars: ✭ 1,940 (+754.63%)
Mutual labels:  arkit, ar

(deprecated, experimental) WebXR polyfill with examples

The API for "WebXR" implemented in this repository is based on a proposed draft proposal for WebXR we created as a starting point for discussing WebXR in the fall of 2017, to explore what it might mean to expand WebVR to include AR/MR capabilities.

We initially created this polyfill when the community group was calling the specification "WebVR", so using "WebXR" was not confusing. Now that the community group is working towards changing the name of the spec, this repo may be confusing to newcomers.

We're working to bring this repo's master branch in line with the community group's draft spec. But that work is not yet complete.

The WebVR community has shifted WebVR in this direction. The group is now called the Immersive Web Community Group and the WebVR specification has now become the WebXR Device API. You should consider that spec as ground-truth for WebXR, and it is what you will likely see appearing in browsers through the rest of 2018 and into 2019.

We will continue to experiment with extensions to, and new ideas for, WebXR in this library. Soon, we expect it to be integrated directly in our WebXR Viewer iOS app and no longer be included directly in any web pages.

WebXR library with examples

This repository holds an implementation of a non-compliant version of WebXR, along with sample code demonstrating how to use the API.

WARNING

THIS SOFTWARE IS NON-STANDARD AND PRERELEASE, IS NOT READY FOR PRODUCTION USE, AND WILL SOON HAVE BREAKING CHANGES.

NOTHING IN THIS REPO COMES WITH ANY WARRENTY WHATSOEVER. DO NOT USE IT FOR ANYTHING EXCEPT EXPERIMENTS.

There may be pieces of the library that are stubbed out and throw 'Not implemented' when called.

Running the examples

The master branch of this repo is automatically built and hosted at https://examples.webxrexperiments.com

The develop branch is hosted at https://develop.examples.webxrexperiments.com

Building and Running the examples

Clone this repo and then change directories into webxr-polyfill/

Install npm and then run the following:

npm install   # downloads webpack and an http server
npm start     # builds the polyfill in dist/webxr-polyfill.js and start the http server in the current directory

Using one of the supported browsers listed below, go to http://YOUR_HOST_NAME:8080/

Portable builds

To build the WebXR polyfill into a single file that you can use in a different codebase:

npm run build

The resulting file will be in dist/webxr-polyfill.js

Writing your own XR apps

The WebXR polyfill is not dependent on any external libraries, but examples/common.js has a handy base class, XRExampleBase, that wraps all of the boilerplate of starting a WebXR session and rendering into a WebGL layer using Three.js.

Look in examples/ar_simplest/index.html for an example of how to extend XRExampleBase and how to start up an app.

If you run these apps on Mozilla's ARKit based iOS app then they will use the class in polyfill/platform/ARKitWrapper.js to get pose and anchor data out of ARKit.

If you run these apps on Google's old ARCore backed experimental browser then they will use the class in polyfill/platform/ARCoreCameraRenderer.js to use data out of ARCore.

If you run these apps on desktop Firefox or Chrome with a WebVR 1.1 supported VR headset, the headset will be exposed as a WebXR XRDisplay.

If you run these apps on a device with no VR or AR tracking, the apps will use the 3dof orientation provided by Javascript orientation events.

Supported Displays

  • Flat Display (AR only, needs VR)
  • WebVR 1.1 HMD (VR only, needs AR)
  • Cardboard (NOT YET)
  • Hololens (NOT YET)

Supported Realities

  • Camera Reality (ARKit on Mozilla iOS Test App, WebARonARCore on Android, WebARonARKit on iOS, WebRTC video stream (PARTIAL))
  • Virtual Reality (Desktop Firefox with Vive and Rift, Daydream (NOT TESTED), GearVR (Not Tested), Edge with MS MR headsets (NOT TESTED))
  • Passthrough Reality (NOT YET)

Supported Browsers

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].