You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the polyfill in Chrome on an Essential PH-1 phone (with webvr flag disabled) it doesn't find a match in the device db JSON file for that device.
1/ It would be awesome to add PH-1 into the db file. I can provide the data, though I'm not sure what those fields in the JSON mean, so I need some help with that.
2/ The polyfill falls back on some default Android settings in this case. But the eye dimensions calculated are larger than the actual screen size and the resulting WebVR viewport is too big. Would it be possible to derive those values from the screen.width and screen.height properties in case webvr is polyfilled and there is no match in the db file?
3/ If the device lookup in the JSON file fails, could you set a flag on the polyfill object? This way we could at least implement some fallback.
Possible, to be honest I'm not terribly familiar with how these properties are calculated
I'm not able to check right now, but I believe the resulting VRDisplay should have some private properties accessible to see which values are used, like display.deviceInfo_
2/ Basically the problem is that if it is a polyfilled implementation, then the size of the screen is what it is, i.e. equal to window.innerWidth * window.devicePixelRatio and same for the height. The problem with the polyfill is that it comes with different numbers, unrelated to the actual size of the screen in those cases and it takes a lot of ugly patching in the code to make it scale right.
Description:
When using the polyfill in Chrome on an Essential PH-1 phone (with webvr flag disabled) it doesn't find a match in the device db JSON file for that device.
1/ It would be awesome to add PH-1 into the db file. I can provide the data, though I'm not sure what those fields in the JSON mean, so I need some help with that.
2/ The polyfill falls back on some default Android settings in this case. But the eye dimensions calculated are larger than the actual screen size and the resulting WebVR viewport is too big. Would it be possible to derive those values from the screen.width and screen.height properties in case webvr is polyfilled and there is no match in the db file?
3/ If the device lookup in the JSON file fails, could you set a flag on the polyfill object? This way we could at least implement some fallback.
Additional Information:
The text was updated successfully, but these errors were encountered: