googlearchive / vrview

Library for embedding immersive media into traditional websites.
http://developers.google.com/cardboard/vrview
Apache License 2.0
1.71k stars 1.09k forks source link

Update to the latest version of webvr-polyfill #317

Open davidh64 opened 6 years ago

davidh64 commented 6 years ago

The latest version of webvr-polyfill seems to include fixes for multiple issues introduced by newer versions of Chrome, but webvr-polyfill v0.10.0 removed MouseKeyboardVRDisplay which provided 3DOF controls for desktop when no native displays are connected. Is anyone actively working on updating to the newer version of the polyfill? It seems that this would resolve #274, but would require a replacement for the mouse and keyboard controls on desktop that were previously provided by the polyfill.

ademarre commented 6 years ago

In addition to #274, this should also fix #306.

I assume the replacement for MouseKeyboardVRDisplay would also resolve #192, #246, and #289.

davidshttintin commented 5 years ago

how do u update to the latest version of webvr-polyfill? do u replace codes in vrview.js?

transpirman commented 5 years ago

it seems that by changing this unique line in embed.(min.)js, it works on newer chrome mobile as well : if(this.isIOS||this.isFirefoxAndroid){ this.gyroscope.multiplyScalar(Math.PI/180); } remove the if statement to keep only the "this.gyroscope.multiplyScalar(Math.PI/180); "