AR-js-org / AR.js

Image tracking, Location Based AR, Marker tracking. All on the Web.
MIT License
5.3k stars 909 forks source link

Basic marker NFT example from documentation doesn't work on Android Firefox #569

Closed Platform-Group closed 9 months ago

Platform-Group commented 9 months ago

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

The basic marker image example given in the documentation using a dinosaur doesn't work, also tried with a generated NFT of my own. Console output doesn't indicate any major issues as far as I can see:

This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”.
[markertest.html](https://192.168.3.219/markertest.html)
Use of the motion sensor is deprecated. [webvr-polyfill.js:2292:11](https://cdn.jsdelivr.net/gh/aframevr/aframe@1c2407b26c61958baa93967b5412487cd94b290b/dist/node_modules/webvr-polyfill/build/webvr-polyfill.js)
No DPDB device match. [webvr-polyfill.js:1963:10](https://cdn.jsdelivr.net/gh/aframevr/aframe@1c2407b26c61958baa93967b5412487cd94b290b/dist/node_modules/webvr-polyfill/build/webvr-polyfill.js)
Failed to recalculate device parameters. [webvr-polyfill.js:1915:12](https://cdn.jsdelivr.net/gh/aframevr/aframe@1c2407b26c61958baa93967b5412487cd94b290b/dist/node_modules/webvr-polyfill/build/webvr-polyfill.js)
Using fallback Android device measurements. [webvr-polyfill.js:1699:14](https://cdn.jsdelivr.net/gh/aframevr/aframe@1c2407b26c61958baa93967b5412487cd94b290b/dist/node_modules/webvr-polyfill/build/webvr-polyfill.js)
A-Frame Version: 0.9.2 (Date 2019-12-09, Commit #c4432e7c) [index.js:92:8](https://cdn.jsdelivr.net/gh/aframevr/aframe@1c2407b26c61958baa93967b5412487cd94b290b/dist/src/index.js)
three Version (https://github.com/supermedium/three.js): ^0.111.3 [index.js:93:8](https://cdn.jsdelivr.net/gh/aframevr/aframe@1c2407b26c61958baa93967b5412487cd94b290b/dist/src/index.js)
WebVR Polyfill Version: ^0.10.10 [index.js:95:8](https://cdn.jsdelivr.net/gh/aframevr/aframe@1c2407b26c61958baa93967b5412487cd94b290b/dist/src/index.js)
webvr-polyfill: Invalid timestamps detected: Timestamp from devicemotion outside expected range. [webvr-polyfill.js:669:14](https://cdn.jsdelivr.net/gh/aframevr/aframe@1c2407b26c61958baa93967b5412487cd94b290b/dist/node_modules/webvr-polyfill/build/webvr-polyfill.js)
AR.js 3.4.5 - trackingBackend: artoolkit [aframe-ar-nft.js:1:1660220](https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js)
ARToolkit  0.3.0 [aframe-ar-nft.js:1:763240](https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js)
No DPDB device match. [webvr-polyfill.js:1963:10](https://cdn.jsdelivr.net/gh/aframevr/aframe@1c2407b26c61958baa93967b5412487cd94b290b/dist/node_modules/webvr-polyfill/build/webvr-polyfill.js)
Failed to recalculate device parameters. [webvr-polyfill.js:1915:12](https://cdn.jsdelivr.net/gh/aframevr/aframe@1c2407b26c61958baa93967b5412487cd94b290b/dist/node_modules/webvr-polyfill/build/webvr-polyfill.js)
[ARController] ARToolkit initialized [aframe-ar-nft.js:1:780962](https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js)
[ARController] Camera params loaded with ID 0 [aframe-ar-nft.js:1:781104](https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js)
[warning] *** Camera Parameter resized from 640, 480. *** [aframe-ar-nft.js:1:667500](https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js)
[info] Allocated videoFrameSize 307200 [aframe-ar-nft.js:1:667500](https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js)
[ARController] Got ID from setup 0 [aframe-ar-nft.js:1:781246](https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js)
[info] Pattern detection mode set to 1. [aframe-ar-nft.js:1:667500](https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js)
[info] Pattern ratio size set to 0.500000. [aframe-ar-nft.js:1:667500](https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js)
[info] Labeling mode set to 1 [aframe-ar-nft.js:1:667500](https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js)

It seems to be stuck on "Loading, please wait..." from a visual perspective, this happens even if I remove everything from the scene.

If the current behavior is a bug, please provide the steps to reproduce.

Simply run the documentation's marker image example and access the server on an Android device through Firefox.

Please mention other relevant information such as the browser version, Operating System and Device Name

Only happens on Android Firefox as far as I can tell, multiple devices tested and doesn't seem to be device specific

What is the expected behavior?

That the loading messages goes away and the nft tracking works

kalwalt commented 9 months ago

That link was updated to the new one thanks to @kieranfraser PR https://github.com/AR-js-org/AR.js-Docs/pull/21 check the docs https://ar-js-org.github.io/AR.js-Docs/