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
Orientation axis is off, it's like the default pose is now PI / -2 rotation on Z
Can go to landscape while in VR and back to portrait after exiting, same result. Happens with or without the changes in #13.
Update: When rotating to enter VR, the orientation screen transforms are never updated in fusion-pose-sensor, and neither subsequently triggered as no orientationchange events fire, so the screen transform is stuck in VR orientation:
@bluemarvin@snorp have you seen this issue on Firefox for Android? I can file a Bugzilla platform issue, but I figured y'all might have some insights as to what's going on here
Looks like this has been an issue for a long time, can reproduce on older and recent A-Frame demos as well. Not 100% confident in the issue being orientationchange events firing without a stripped down test case, but reproducible enough
Separately, when testing the local demo, it looks as if the handlers are frozen after returning from "VR" (fullscreen) mode. Put a breakpoint/console.log in the orientation change handler in the FusionPoseSensor to indicate when the change is detected. This will no longer fire after returning from "VR" mode. With devtools open (via WebIDE), bind another orientationchange event:
window.addEventListener('orientationchange', e => console.log('change');
Now, rotating the device, we'll get the original FusionPoseSensor orientationchange event, as well as our new one we added via WebIDE, as if binding a new event after "VR" mode "unfreezes" the orientationchange events.
This is very weird. @cvan is the above STR sufficient enough for filing a platform bug? Disappointed that the stripped-down test case still cannot reproduce the issue, so maybe there's another platform API that's possibly interfering here, but not sure what to make of the event breaking, and becoming re-enabled when binding another event subsequently. 😑
STR on Pixel, Firefox for Android, 57.0.4:
PI / -2
rotation on ZCan go to landscape while in VR and back to portrait after exiting, same result. Happens with or without the changes in #13.
Update: When rotating to enter VR, the orientation screen transforms are never updated in fusion-pose-sensor, and neither subsequently triggered as no
orientationchange
events fire, so the screen transform is stuck in VR orientation:cardboard-vr-display/src/sensor-fusion/fusion-pose-sensor.js
Line 200 in 082c54f
Could be a platform issue?
The text was updated successfully, but these errors were encountered: