immersive-web / webvr-polyfill

Use WebVR today, without requiring a special browser build.

Home Page:http://immersive-web.github.io/webvr-polyfill/examples/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does this still work and maybe I'm using it wrong?

greggman opened this issue · comments

Description:

I took the three.js WebVR cubes examples and pasted it into jsfiddle

https://jsfiddle.net/greggman/q5dLye1z/

That says "WEBVR NOT SUPPORTED" which I expected

I then added the polyfill to the top of the HTML with

<script src='https://cdn.jsdelivr.net/npm/webvr-polyfill@latest/build/webvr-polyfill.js'></script>
<script>
var polyfill = new WebVRPolyfill();
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/104/three.min.js"></script>
<script src="https://threejs.org/examples/js/vr/WebVR.js"></script>
...

https://jsfiddle.net/greggman/8vtw670k/

and now I get VR NOT FOUND

Is that expected? I'm on a Mac. I was hoping to use the polyfill to let me develop without having to use a phone or headset all the time. Just drag the view

Additional Information:
  • webvr-polyfill version: 0.10.10
  • Browser name/version/release channel: Google Chrome | 74.0.3729.131 (Official Build) (64-bit)
  • Operating System: MacOS 10.14.4

Thank you for your patience! Currently, the polyfill doesn't create a sensor-based VRDisplay on desktop, nor has the mouse/keyboard-controllable display anymore: more information in the 0.10.0 release