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

3D object moving or disappearing randomly (location-based AR) #639

Open
Fro5tyDog opened this issue Jan 9, 2025 · 2 comments
Open

3D object moving or disappearing randomly (location-based AR) #639

Fro5tyDog opened this issue Jan 9, 2025 · 2 comments

Comments

@Fro5tyDog
Copy link

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

What is the current behavior?
Teleporting and disappearing objects
If the current behavior is a bug, please provide the steps to reproduce.
Please see my issue presented here. aframevr/aframe#5620
A contributor refered me here.

Please mention other relevant information such as the browser version, Operating System and Device Name
Iphone 13 and running on iOS 18.1.1. Browser: Safari/605.1.15

What is the expected behavior?
Model should not be teleporting and disappearing randomly

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

@nickw1
Copy link
Collaborator

nickw1 commented Jan 9, 2025

Expanding on my reply over in A-Frame:

If the GPS location data updates to an inaccurate location (which is possible), then the model will jump. Let's say the model is showing 10 metres to the north of you. You then get an inaccurate GPS reading, which places you 10 metres to the north of the model (i.e. the model is 10 metres to the south of this inaccurate reading). The model will jump so it appears to be south of you.

AR.js location-based does not attempt to track real world objects (e.g. using computer vision), it just uses GPS and sensors.

It could be inaccurate GPS readings or sensors, or it could be a bug in AR.js. In particular we are lacking developers with iOS devices so bugs are more likely to go undetected on iOS.

Could I ask you to try out this demo app?

https://github.com/AR-js-org/AR.js/tree/master/aframe/examples/location-based/basic-js

You'll need to clone the repository, start up a server and then request this page.

The expected result is that four boxes will appear: the red box to your north; the yellow box to your south; the blue box to your west and the green box to your east. These will all be placed with respect to your initial GPS position, so as you move, the positions of the boxes relative to your device will change.

If you let us know what behaviour this demo app has, we may be able to diagnose the problem. Thanks.

@Fro5tyDog
Copy link
Author

Hi the behaviour I observed is as followed.

The boxes are in the correct position to start and do not flicker throughout 1 full minute of the app being used. However, as I move these boxes stay the same distance away from me in all directions. They do not appear closer to me as I move in toward them. Neither do they move away from me as I move farther from them.

If this was what you expected, how can I ensure the boxes appear closer and farther to me as I move toward or away them respectively?

Thank you.

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

No branches or pull requests

3 participants