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

Examples not working: "Loading, please wait..."

Open doncabreraphone opened this issue 3 years ago • 16 comments

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

What is the current behavior? The example for the Image Tracking is not working. I tried it with 4 different browsers but nothing. Firefox, Chrome, Opera, and Brave. All of them updated to their latest build. I open the provided link from the example and gave the program access to my phone's camera, but it stays in the "Loading, please wait..." forever. The other examples (location and marker) are working just fine.

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

Please mention other relevant information such as the browser version, Operating System and Device Name My phone is a Xiaomi Realme 6, Android 11

What is the expected behavior?

If this is a feature request, what is motivation or use case for changing the behavior?

doncabreraphone avatar May 20 '21 21:05 doncabreraphone

open page in your desktop browser, and take a look at javascript console. it should be an error information

bamz3r avatar May 27 '21 07:05 bamz3r

I have exactly the same issue. console says "Error in loading marker on Worker 404".

arapps3d avatar May 28 '21 08:05 arapps3d

there is an error in the example.

https://github.com/AR-js-org/AR.js/blob/aaad9847f67a4738b00724c38d9f501d78e0a8af/aframe/examples/image-tracking/nft/index.html#L39

this path ./aframe/examples/image-tracking/nft/trex/trex-image/trex as to be ./trex/trex-image/trex.

how can i submit a PR?

gi4no avatar May 29 '21 11:05 gi4no

there is an error in the example.

https://github.com/AR-js-org/AR.js/blob/aaad9847f67a4738b00724c38d9f501d78e0a8af/aframe/examples/image-tracking/nft/index.html#L39

this path ./aframe/examples/image-tracking/nft/trex/trex-image/trex as to be ./trex/trex-image/trex.

how can i submit a PR?

I have changed the URL but it's still the same error.

arapps3d avatar May 31 '21 09:05 arapps3d

Same issue described above. It is not working. The other examples are, but not this one.

On Mon, May 31, 2021, 06:14 arapps3d @.***> wrote:

there is an error in the example.

https://github.com/AR-js-org/AR.js/blob/aaad9847f67a4738b00724c38d9f501d78e0a8af/aframe/examples/image-tracking/nft/index.html#L39

this path ./aframe/examples/image-tracking/nft/trex/trex-image/trex as to be ./trex/trex-image/trex.

how can i submit a PR?

I have changed the URL but it's still the same error.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AR-js-org/AR.js/issues/277#issuecomment-851348292, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKXOCHUMDJCGDTRBVY7NT7TTQNHP7ANCNFSM45H5UEQQ .

doncabreraphone avatar May 31 '21 10:05 doncabreraphone

my working code

` <a-scene vr-mode-ui="enabled: false;" renderer="logarithmicDepthBuffer: true;" embedded arjs="trackingMethod: best; sourceType: webcam; debugUIEnabled: false;"

<a-entity
  light="color: #ffffff; intensity: 5"
  position="-1 1 100"
></a-entity
>x
<!-- use rawgithack to retrieve the correct url for nft marker (see 'pinball' below) -->
<a-nft
  type="nft"
  url="./trex/trex-image/trex"
  smooth="true"
  smoothCount="10"
  smoothTolerance="0.01"
  smoothThreshold="5"
>
  <a-entity
    gltf-model="./trex/scene.gltf"
    scale="20 20 20"
    position="0 40 -20"
  >
  </a-entity>
</a-nft>
<a-entity camera></a-entity>

`

gi4no avatar May 31 '21 10:05 gi4no

sorry, still not working for me; also not working with the code / new urls- does anybody have this working example online to test?

arapps3d avatar Jun 01 '21 14:06 arapps3d

just change path to ./trex/trex-image/trex

and make sure open the page over https, if you open from localhost will not working.

bamz3r avatar Jun 01 '21 14:06 bamz3r

How can this be a closed issue, when I follow the example on this very documentation and I get the error?

doncabreraphone avatar Jun 02 '21 00:06 doncabreraphone

Ok. tested now working with realtive path url to 'root' of your domain

example /AR.js/aframe/examples/image-tracking/nft/trex/trex-image/trex

bamz3r avatar Jun 03 '21 07:06 bamz3r

Ok. tested now working with realtive path url to 'root' of your domain

example /AR.js/aframe/examples/image-tracking/nft/trex/trex-image/trex

Thanks! This finally works for me (full url with https). Unfortunately the tracking of the Trex on the image seems really unstable (at least on Galaxy S8 in Chrome).

arapps3d avatar Jun 03 '21 07:06 arapps3d

i have the same problem, loading marker on worker 404

Wulff2099 avatar Jun 08 '21 15:06 Wulff2099

I still have this issue. None of the above advice worked.

92GC avatar Jun 22 '21 15:06 92GC

Yes i read about it its ok hope you can fix it soon

El mar., 22 de jun. de 2021 12:48, Kieran @.***> escribió:

I still have this issue. None of the above advice worked.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/AR-js-org/AR.js/issues/277#issuecomment-866105302, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALF3GFDZQVQH3P2AEM6NFQ3TUCWE7ANCNFSM45H5UEQQ .

Wulff2099 avatar Jun 23 '21 12:06 Wulff2099

Any updates?

PeraDev7 avatar Aug 10 '21 15:08 PeraDev7

change path to ./trex/trex-image/trex; https it not works for me;but copy 'trex' to root, it works; so i copy 'data' to root ,the nft.html of Three.js sample,it works too;

image

is there a problem with ‘url’? it not the directory of html,but root

DLGL99GL avatar Oct 29 '21 08:10 DLGL99GL

Updated new link in the README now use this one: https://ar-js-org.github.io/.github/profile/aframe/examples/image-tracking/nft/ linked issue #529

kalwalt avatar Apr 18 '23 17:04 kalwalt