What is WebVR?
WebVR is an open API that brings the magic of virtual reality to internet browsers. It works across several different browsers and devices, so you can write your code once and run it cross-platform. The official site has information about which browsers and devices are supported.
The WebVR specification is being replaced with the WebXR Device API specification. While you can continue to use the WebVR 1.1 APIs, it is a good idea to begin reviewing the WebXR specification on their GitHub page.
Today, there are many different VR devices on the market, with varying levels of compatibility, often with their own storefronts. This has led to a fragmentation of the VR ecosystem, where you can only access certain apps and games on certain platforms.
With WebVR, however, you can experience virtual reality in a platform- and device-agnostic way. This way, when you're developing a VR experience, you no longer have to choose which devices you're going to target, and develop them as separate experiences. You simply write it once using WebVR APIs, and you're automatically cross-platform.
Additionally, rather than creating a VR application that users have to download, which creates friction, a WebVR experience simply exists on the web, just like any other website. All the customer has to do is navigate to the site, plug in a headset, and they're good to go.
How do I develop WebVR experiences?
To get started developing with WebVR, you'll need a few things first:
- A compatible immersive headset
- A compatible internet browser
You can test whether your headset and browser support WebVR with these samples.
Send feedback about: