AR.js
AR.js copied to clipboard
[Android] Strange behaviour when changing between Portrait and Landscape mode
Do you want to request a feature or report a bug? I guess this is a bug.
What is the current behavior? When testing on Android (the three.js basic marker example atm - https://github.com/AR-js-org/AR.js/blob/master/three.js/examples/basic.html) changing between Landscape and Portrait mode in Firefox results in a not rotated camera image and tracking issues. The camera image rotation itself works in Chrome, but the tracked 3D model has an offset to the tracked marker.
If the current behavior is a bug, please provide the steps to reproduce. When testing with https://stemkoski.github.io/AR-Examples/hello-cube.html the behaviour can be easiliy reproduced. This is basically using the same implementation as in the sample from the ARjs repo. When starting in Portrait mode everything works fine, after changing to Landscape mode the tracking and camera image results are different.
Please mention other relevant information such as the browser version, Operating System and Device Name Android 13, Chrome and Firefox in their latest versions on a Pixel 5.
What is the expected behavior? Tracked 3D model should be alligned with the tracked marker, regardless of changing orientation.
br, Max