VR Headsets & WebVR Browsers
Note: This documentation is for the old 1.0.0 version of A-Frame. Check out the documentation for the current 1.4.0 version
Virtual reality (VR) is a technology that uses head-mounted headsets with displays to generate the realistic images, sounds, and other sensations to put users into an immersive virtual environment. VR allows us to create unbounded worlds that people can walk around and interact with using their hands, to feel as if they were transported to another place.
There are several consumer VR headsets with different features on the market. Important distinguishing features include whether they:
- Have positional tracking (six degrees of freedom (6DoF)) or Only have rotational tracking (three degrees of freedom (3DoF)).
- Have controllers or not, and whether those controllers have 6DoF or 3DoF. Generally, the number of degrees of freedom of the controllers matches that of the headset.
- Are powered by a PC or by a mobile device or standalone.
Rotational tracking allows people to look around or rotate objects. All headsets provide rotational tracking.
Positional tracking allows people to move around, get closer to objects, reach forward. As the VR industry evolves, the minimum viable experience will trend towards having positionally-tracked headsets with positionally-tracked controllers. Positional tracking is important to give people presence, to make them feel they are in a real environment. With rotational-only tracking, people are constrained to looking around and wiggling the controller.
|Headset||Platform||Positional Tracking||Controllers||Controller Positional Tracking|
|Windows Mixed Reality||PC|
A-Frame uses the WebVR API to gain access to VR headset sensor data (position, orientation) to transform the camera and to render content directly to VR headsets. Note that WebVR, which provides data, should not be confused nor conflated with WebGL, which provides graphics and rendering.
A-Frame aims for highly immersive and interactive VR content with native-like performance. For this, A-Frame believes the minimum viable bar will trend towards positionally-tracking headsets with positionally-tracked controllers. This is the paradigm in which A-Frame wants to innovate as well as discover new grounds that are specific to the VR Web (e.g., link traversal, decentralization, identity). Contrast this type of content against flat and static 360° content and menus.
At the same time, A-Frame wants everyone to be able to get involved with VR content creation. A-Frame supports all major headsets with their controllers. Fortunately with the large community and contributors, A-Frame is able to both look far towards the future as well as satisfy the needs of today’s VR landscape.
A-Frame supports almost all platforms through browsers. General platforms that A-Frame supports include:
- VR on desktop with a headset
- VR on mobile with a headset
- VR on standalone headset
- Flat on desktop (i.e., mouse and keyboard)
- Flat mobile (i.e., magic window)
Some other platforms that have been shown to work with A-Frame include:
- Augmented reality (AR) on AR headsets (e.g., Magic Leap, HoloLens)
- Augmented reality (AR) on mobile (i.e., magic window, ARKit, ARCore)
A-Frame supports most headsets through browsers. Some VR headsets that A-Frame supports include:
- HTC Vive
- Oculus Rift
- Oculus Quest
- Oculus Go
- Google Daydream
- Samsung GearVR
- Vive Focus
For general hardware recommendations (not requirements):
- Oculus Rift Hardware Recommendations
- HTC Vive Hardware Recommendations
- For smartphones, an iPhone 6 for iOS and at least a Galaxy S6 for Android
A-Frame supports VR for any browser that implements the WebVR specification, and flat 3D for most browsers. Large browser vendors are slowly moving to the WebXR specification, though it does not have much front-facing changes to A-Frame developers, involving mostly renaming of APIs.
- Supermedium (available on Oculus and Steam)
- Oculus Browser
- Samsung Internet
- Microsoft Edge
- Chrome (WebXR under origin trials)
- Exokit (experimental early support)
A-Frame supports most modern mobile browsers that don’t have WebVR support through the WebVR polyfill. Note that these browsers do not have official WebVR support, and we are using a polyfill; it is important to lower the expectations that these browsers will provide a quality experience and not have quirks:
- Safari for iOS
- Chrome for Android
- Firefox for iOS
- Samsung Internet
- UC Browser
For flat or plain 3D support, A-Frame supports all modern browsers, specifically those that support WebGL including:
- Internet Explorer 11