borismus / webvr-boilerplate

A starting point for web-based VR experiences that work on all VR headsets.
Apache License 2.0
1.8k stars 451 forks source link

Black canvas on Firefox but not Chrome (errormsg: "Failed to recalculate device parameters.") #111

Closed nylki closed 8 years ago

nylki commented 8 years ago

I tried to integrate the polyfill + webvr-manager into a project of mine, but I encountered some issues:

Firefox:

THREE.WebGLRenderer 73 three.js:21257:2
Recalculating device params. webvr-manager.js:1881:3
User agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0 webvr-manager.js:1918:3
Pixel width: 1920.0000686645508 webvr-manager.js:1919:3
Pixel height: 1080.0000386238098 webvr-manager.js:1920:3
No DPDB device match. webvr-manager.js:1962:3
New device parameters: webvr-manager.js:1883:3
null webvr-manager.js:1884:3
Failed to recalculate device parameters. webvr-manager.js:1892:5
Fetching DPDB... webvr-manager.js:1854:5
:  webvr-manager.js:1870:0

firefox

Chrome:

three.js:21257 THREE.WebGLRenderer 73
webvr-manager.js:1881 Recalculating device params.
webvr-manager.js:1918 User agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.97 Safari/537.36
webvr-manager.js:1919 Pixel width: 1920
webvr-manager.js:1920 Pixel height: 1080
webvr-manager.js:1962 No DPDB device match.
webvr-manager.js:1883 New device parameters:
webvr-manager.js:1884 null
webvr-manager.js:1892 Failed to recalculate device parameters.Dpdb.recalculateDeviceParams_ @ webvr-manager.js:1892Dpdb @ webvr-manager.js:1847WebVRManager @ webvr-manager.js:2623Polymer.start @ game-view.html:199(anonymous function) @ app.js:47
webvr-manager.js:1854 Fetching DPDB...
webvr-manager.js:515 Using fallback iOS device measurements.
webvr-manager.js:2628 Using the Cardboard I/O 2014 viewer.
game-view.html:283 animate
webvr-manager.js:2775 Mode change: 0 => 1
game-view.html:283 animate
webvr-manager.js:1862 Successfully loaded online DPDB.
webvr-manager.js:1881 Recalculating device params.
webvr-manager.js:1918 User agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.97 Safari/537.36
webvr-manager.js:1919 Pixel width: 1920
webvr-manager.js:1920 Pixel height: 1080
webvr-manager.js:1962 No DPDB device match.
webvr-manager.js:1883 New device parameters:
webvr-manager.js:1884 null
webvr-manager.js:1892 Failed to recalculate device parameters.Dpdb.recalculateDeviceParams_ @ webvr-manager.js:1892(anonymous funct
![firefox](https://cloud.githubusercontent.com/assets/1710598/12767631/a125ef24-ca0a-11e5-9303-9b12ea081b8c.png)
ion) @ webvr-manager.js:1864
57game-view.html:283 animate

chrome

higain commented 8 years ago

I encounter the same problem. Did you manage to find a solution?

nylki commented 8 years ago

@higain unfortunately not. I wonder wether this might be fixed in the webvr-1.0 branch?

higain commented 8 years ago

@nylki doesn't seem so, also I get the black canvas in chrome and firefox as well. After updating to three.js version 75 from 68 I need to fix some code, perhaps it fixes itself.

DigDigDig commented 8 years ago

Same for me. Errors on all devices, I still get display on chrome for windows and android. Safari on IOS8 shows until I put it into VRMode.

iambumblehead commented 8 years ago

+1

borismus commented 8 years ago

Does this still happen with the latest changes for WebVR 1.0?

higain commented 8 years ago

No, works fine now. I still get the error message, but it doesn't seem to affect anything.