Open jiajia-tao opened 1 year ago
Because I do not understand basic principle,please tell me the differences between aframe-ar-nft.js and aframe-ar-new-location-only.js. THANKS.
In your code your pointing to a local source ./js/aframe-ar.js
do you have the script local?
According to the github readme, both should be valid for location based AR:
AR.js with Image Tracking + Location Based AR (AFRAME): https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js AR.js with Marker Tracking + Location Based AR (AFRAME): https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar.js
And in their location based examples, they use both, aframe-ar.js
here and aframe-ar-nfr.js
here
However, they never mentioning the aframe-ar-location-only.js and aframe-ar-new-location-only.js ... 😕
I would be nice if a maintainer could clarify if there is a difference between the four and if there is a recommendation which one to use for location based (only) 🙏
Here in the docs, they talking about three different components
gps-new-entity-place
, gps-projected-entity-place
and gps-entity-place
However, it is unclear to me, which does work with which script. For example gps-new-entity-place
seems not to work with aframe-ar-new-location-only.js
due to several TypeErrors. Despite both have the word "new" in it..
Btw, i couldn't get any example working so far. If anybody has a working example, please post it here
according to location-based example code in website, It does not work.
I think the aframe-ar-nft.js has some wrong , then I see the aframe-ar-new-location-only.js in ar.js-master/aframe/build ,so t decide to use this file .finally ,it does work .