AR-js-org / AR.js

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

Some one know why the ThreeJS version Image Tracking Example is not working, it always show on loading icon. #220

Open TomDDH opened 3 years ago

TomDDH commented 3 years ago

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

What is the current behavior? the ThreeJS version Image Tracking Example is not working, it always show loading icon. If the current behavior is a bug, please provide the steps to reproduce. I down load the package and upload to my own website, I open the link AR.js/three.js/examples/nft.html and the scene always on loading icon.

https://tom-threejs.s3-us-west-1.amazonaws.com/AR.js/three.js/examples/nft.html

it is the demo example Please mention other relevant information such as the browser version, Operating System and Device Name not working on both IOS and Android What is the expected behavior? should have some model over the pinball image.

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

Doncode commented 3 years ago

Invalid URL

Request URL: https://tom-threejs.s3-us-west-1.amazonaws.com/data/data/camera_para.dat
Request Method: GET
Status Code: 403 Forbidden
TomDDH commented 3 years ago

Invalid URL

Request URL: https://tom-threejs.s3-us-west-1.amazonaws.com/data/data/camera_para.dat
Request Method: GET
Status Code: 403 Forbidden

thanks, I think file is located here, https://tom-threejs.s3-us-west-1.amazonaws.com/AR.js/data/data/camera_para.dat

where should change the URL

PedroNan commented 3 years ago

I have a similar problem, it works with the trex image in the example, but when I change this image to a custom one it doesn't work and the app gets stuck on the "loading, please wait" message and never moves from here. Any ideas how to fix it?

qbytx commented 3 years ago

why is the camera_param.dat being loaded from AWS? I was able to get NFT tracking to be responsive by directly loading the local file. However, the ar content itself isn't loading. The GLTF loader is working fine, the web console tells me that the scene and camera are visible and that an image / nft is being tracked --- but no content appears

(three.js version, btw)

qbytx commented 3 years ago

I have a similar problem, it works with the trex image in the example, but when I change this image to a custom one it doesn't work and the app gets stuck on the "loading, please wait" message and never moves from here. Any ideas how to fix it?

What are you seeing in the web console?

kalwalt commented 3 years ago

@TomDadongHu You should change the url in the cameraParametersUrl as stated in https://ar-js-org.github.io/AR.js-Docs/marker-based/#threejs Maybe can help you also reading this stackoverflow article

DLGL99GL commented 3 years ago

there isn't url of 'camera_para.dat' in nft.html, i can't change it; i just try to copy 'data' to root , oh,it works; image

so i copy 'trex' to root, the aframe sample of nft works too; is there same bugs of the settings of url?