AR.js icon indicating copy to clipboard operation
AR.js copied to clipboard

Zoom / sizing issues on certain Android Devices (Pixel 2 XL)

Open peterhintondesign opened this issue 7 years ago • 3 comments

My AR.js project contains other HTML elements that are activated via marker/hiro detection. It works as expected on all iOS devices I've tested and most of the Android devices.

However the Pixel 2 XL (and I assume other XL devices) is showing the same problem identified halfway down the #369 thread (https://github.com/jeromeetienne/AR.js/issues/369#issuecomment-401005144) by curtisboylan. The website resolution appears too large and the AR markers are out-of-scale and out of position.

I don't have a screenshot of my project on the Pixel 2XL (as it's a colleagues device) but I've annotated curtisboylan's screenshot which shows the same issues.

image

I've set the viewport meta to content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0 as recommended.

For some reason the issue is resolved on the Pixel 2 XL if I change the orientation to landscape mode and refresh the webpage. If I change the orientation back to portrait the issue returns.

Link/ Source code: https://www.itgl.com/ar/demo13.html Hiros: pattern-itgl-hiro-01-white pattern-itgl-hiro-02-white pattern-itgl-hiro-03-white

peterhintondesign avatar Sep 29 '19 14:09 peterhintondesign

I'm experiencing a very similar issue, and yeah, it's specifically happening on a pixel XL 2. Did you figure out a way to make the aframe objects appear where they're supposed to be?

darrel-grosvalet avatar Nov 10 '19 05:11 darrel-grosvalet

Unfortunately I didn't find a fix for this issue.

As a temporary workaround I've got a message prompting users with display issues to use their device in landscape mode - not ideal.

peterhintondesign avatar Nov 11 '19 12:11 peterhintondesign

If relevant, please re-open issue in the new AR.js repo: https://github.com/AR-js-org/AR.js

nicolocarpignoli avatar Mar 04 '20 20:03 nicolocarpignoli