5

I am trying to create a WebVR scene. For this task, I want to enable WebVR on Google Chrome. My OS is Windows 8.

I open flags using chrome://flags/. WebVR is not there. How can I enable it?

ProgrammerPer
  • 1,125
  • 1
  • 11
  • 26
zakjma
  • 2,030
  • 12
  • 40
  • 81

4 Answers4

4

Official channels of Google Chrome do not support WebVR. (now they do, see below)

There is an unofficial build of chrome that does. FYI Firefox Nightly also supports WebVR in their official and current release, as does Samsung Internet Beta for GearVR (the latter after some configuration).

UPDATE: Chrome Android now works with WebVR if you enable chrome://flags/#enable-webvr. See this manual on how to enable WebVR on different browsers.

Krzysztof Bociurko
  • 4,575
  • 2
  • 26
  • 44
  • I install Firefox Nightly and add web-vr to firefox from https://addons.mozilla.org/en-US/firefox/addon/mozilla-webvr-enabler/. When I open an sample web-vr example, I get " Your browser supports WebVR but not the latest version.". Examples doesn't work. – zakjma Jun 20 '16 at 12:45
  • Yes, firefox doesn't support the latest webvr version - but it supports webvr. Simply try examples that do not require the latest, for example the [THREE.js cubes WebVR demo](http://threejs.org/examples/webvr_cubes.html). Oh and the extension is not needed, you can go to `about:config` and change `dom.vr.cardboard.enabled` to `true` and `dom.vr.add-test-devices` to `1`. – Krzysztof Bociurko Jun 20 '16 at 13:08
1

You can install Google Chrome extension for WebVR debugging It can really help to debug your VR application. You will be able change the position of the virtual device in the environment, to see the change of camera position. Also, it is possible to emulate the HTC Vive controllers.

Alternative is to use WebVR polyfill It adds WebVR-API to your browser.

0

Currently you can test your sample webVR code on the following browsers :

Google Chromium
Firefox Nightly
Samsung browser for webVR

Google Chrome version 54.0 onwards was expected to support webVR, but it seems we have to wait a little more.

If you are not very comfortable with ThreeJS library for VR projects, you should try aframe framework ( check http://aframe.io ). Here you will focus only on the VR code flow and all other graphics related overheads (camera, rendering etc) will be taken care by aframe itself.

RajeshK
  • 21
  • 4
0

Do you still need this special Chromium build? In latest Chrome #58 it seems the feature is available within chrome://flags now

WebVR Mac, Windows, Linux, Chrome OS, Android Enabling this option
allows web applications to access experimental Virtual Reality APIs.
#enable-webvr

Didnt try it out yet though (dont want to break my productive browser)

Greetz

Manu
  • 1
  • 2
  • Unfortunately, those don't work right now (Chrome 58). There is development work going into it, but it's not ready yet. – Andy M Jun 05 '17 at 19:29