immersive-web / webxr-polyfill

Use the WebXR Device API today, providing fallbacks to native WebVR 1.1 and Cardboard
Apache License 2.0
386 stars 86 forks source link

No DPDB device match #36

Closed soadzoor closed 6 years ago

soadzoor commented 6 years ago

Hi,

I'm trying to get this polyfill work with my OnePlus 3 (Android 8.0) device. Unfortunately, I get the No DPDB device match warning, and it doesn't work. If I switch the WebXR flag to enabled in chrome, then my app works, so I guess it should work with the flag disabled with this polyfill. So, what should I do?

Thanks

jsantell commented 6 years ago

It's possible for a device to not have a match and attempts a default Android size, such that if everything else is correct, XRDevice/XRSession etc. should all work with webxr-samples. What doesn't work? Is an XRDevice not found? Do you have a test page? What happens when you load the webxr samples demos with the polyfill enabled?

You can also find how to calculate a DPDB entry here, which can be subsequently added to future builds

soadzoor commented 6 years ago

Hi, thanks for the quick response. I upgraded the three.js lib to the latest release, and it seems to have solved most of the issue. Still have some warning and errors in the console though: capture

Should I be worried about these?

jsantell commented 6 years ago

If you add your device to https://github.com/immersive-web/webvr-polyfill-dpdb, then the distortion will be more accurate when used in a Cardboard device, but shouldn't affect magic window uses, and the distortion may be fine enough with default values

soadzoor commented 6 years ago

I see, thanks!