A starting point for web-based VR experiences that work on all VR headsets.
A THREE.js-based starting point for VR experiences that work well in
both Google Cardboard and other VR headsets. Also provides a fallback for
experiencing the same content without requiring a VR device.
This project relies heavily on the webvr-polyfill to provide VR
support if the WebVR API is not implemented.
Assorted platforms:
Assorted real-world examples:
Assorted samples:
As of WebVR 1.0, this project relies on the polyfill for even more. Core
features like lens distortion and device detection have moved into the polyfill.
This project now acts as a getting started example, and provides a reasonable
user experience for getting in and out of Virtual Reality and Magic Window
modes.
As a convenience, the WebVRManager emits certain modechange events, which can
be subscribed using manager.on('modechange', callback).
The easiest way to start is to fork this repository or copy its contents into a
new directory.
The boilerplate is also available via npm. Easy install:
npm install webvr-boilerplate
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.