WebVR

Bringing Virtual Reality to the Web


What is WebVR

WebVR is an experimental Javascript API that provides access to Virtual Reality devices, such as the Oculus Rift or Google Cardboard, in your browser.

Spec

The Editors Draft of the spec is currently hosted at https://w3c.github.io/webvr/

How can I try it?

The WebVR API is currently available in Firefox Nightly builds, in experimental builds of Chromium, and in the Samsung Internet Browser for Gear VR. You can get the latest WebVR-enabled builds here:

Or, if you want to add WebVR to your mobile site today, you can use the WebVR Polyfill to provide support for Cardboard mobile devices.

You can test your browser's support for the WebVR API with these samples:

How can I contribute?

The best place to contribute is the WebVR mailing list. Developers of the Chrome, Firefox, and Samsung Internet Browser builds are on that list, as well as other community members who are enthusiastic about VR on the Web.

How can I get the code?

The code that powers WebVR is available online, if you want to take a peek under the hood:

Reporting issues

For the time being, use the following links to view and report issues with WebVR implementations:

WebVR Emulator

Jaume Sánchez Elias (@thespite) has created a Chrome extension that allows developers to emulate a VR headset for testing the API without needing any VR hardware. Check it out!

Misc. Links

This page is a work in progress; more content is coming soon.