Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

according to location-based example in website, It does not work. #825

Open
jiajia-tao opened this issue Jun 8, 2023 · 3 comments
Open

Comments

@jiajia-tao
Copy link

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 .

image

@jiajia-tao
Copy link
Author

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.

@turbotimon
Copy link

turbotimon commented Jun 23, 2023

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) 🙏

@turbotimon
Copy link

turbotimon commented Jun 23, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants