RepositoryJavaScriptUSUnited States
mozilla

mozilla/aframe-xr

INACTIVE - http://mzl.la/ghe-archive - System / Components to build WebXR experiences with A-frame

182stars
34forks
0issues
4views

aframe-xr

Version License

System & components to build WebXR experiences with A-frame

Running the examples

Visit this URL with all the examples or:

Install npm and then run the following:

$ npm install
$ npm start

Supported browsers

AR

VR

Configuration

<a-scene>
  <a-entity xr="ar: true; vr: false; magicWindow: false"></a-entity>
  <!-- ... -->
</a-scene>

Documentation

xr System

PropertyDefaultDescription
arAutostarttrueStart AR if is the unique display available
arLightEstimatefalseModify lights intensity with the light estimation

xr Component

PropertyDefaultDescription
artrueIf the entity is visible on AR mode
magicWindowtrueIf the entity is visible on magic window mode
vrtrueIf the entity is visible on VR mode

ar-mode-ui Component

Based on the vr-mode-ui component

PropertyDefaultDescription
enabledtrueWhether or not to display UI related to entering AR.

Usage

Browser

Include A-Frame (for now, we are using master version - soon an official published version), followed by three.xr.js & aframe-xr:




npm

Install via npm:

npm install aframe-xr

Then require and use.

require('aframe');
require('aframe-xr');

Until A-Frame 0.8.0 is released, make sure to reference the master version of A-Frame in package.json:

 "dependencies": {
    "aframe": "github:aframevr/aframe#master"
  }

Or reference the A-Frame included with aframe-xr directly:

require('aframe-xr/vendor/aframe-master.js');
require('aframe-xr');

Similar Projects

Discover other similar projects and AI models.

RepositoryJavaScript
mozilla/neo

INACTIVE - http://mzl.la/ghe-archive - DEPRECATED: See https://neutrino.js.org for alternative

494
Mar 29, 2019
RepositoryJavaScript
mozilla/browserid-crypto

INACTIVE - JavaScript implementation of JSON Web Signatures, JSON Web Tokens, and JSON Web Certificates

180
Apr 10, 2023
RepositoryJavaScript
MozillaReality/sechelt

INACTIVE - A virtual reality fly through of a 3D landscape, built with Three.js and Cinema 4D.

151
Feb 13, 2018
RepositoryJavaScript
mozilla/prospector

INACTIVE - A series of experiments from Mozilla Labs focused on analyzing, experimenting and prototyping improvements on how you search and discover content with Firefox.

140
Dec 21, 2023
RepositoryJavaScript
MozillaReality/immersive-custom-elements

INACTIVE - Immersive Custom Elements

133
Nov 28, 2019
RepositoryJavaScript
mozilla/three.xr.js

INACTIVE - http://mzl.la/ghe-archive - Library to build WebXR experiences with three.js

115
Mar 30, 2019
RepositoryJavaScript
mozilla/WebGameStub

INACTIVE - http://mzl.la/ghe-archive - Simple Web Canvas Game Template

114
Mar 28, 2019
RepositoryJava
MozillaReality/FirefoxReality

INACTIVE - A fast and secure browser for standalone virtual-reality and augmented-reality headsets.

772
Dec 28, 2023
Repository
mozilla/webxr-api

INACTIVE - http://mzl.la/ghe-archive - A proposal for WebXR, based on the WebVR extension

194
Mar 30, 2019