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

Location Base - Entity is following #592

Open
allestaire opened this issue Jan 12, 2024 · 3 comments
Open

Location Base - Entity is following #592

allestaire opened this issue Jan 12, 2024 · 3 comments

Comments

@allestaire
Copy link

allestaire commented Jan 12, 2024

The entity is following the camera instead of being still on the configured lat long,

Can anyone point out why is this happening?
I tried to move up to 10meters but the object I set on the location still in me. seems like a ghost

<!DOCTYPE html>
<html>
<head>
<title>AR.js A-Frame</title>
<script src="https://aframe.io/releases/1.3.0/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-look-at-component@0.8.0/dist/aframe-look-at-component.min.js"></script>
<!-- Assumes AR.js build is in the 'AR.js' directory -->
<script type='text/javascript' src='/ar-threex-location-only.js'></script>
<script type='text/javascript' src='/aframe-ar.js'></script>
</head>
<body>
<!-- 
Examples: https://github.com/AR-js-org/AR.js/blob/master/aframe/examples/new-location-based/always-face-user/index.html
This is using a simulated location. If testing on a mobile device, remove the 
'simulateLatitude' and 'simulateLongitude' properties from 'gps-new-camera' and
change the 'latitude' and 'longitude' properties to a location around 0.001 
degrees from your real location.
-->
<a-scene vr-mode-ui='enabled: false' arjs='sourceType: webcam; videoTexture: true; debugUIEnabled: false' renderer='antialias: true; alpha: true'>
	<a-camera gps-new-camera='gpsMinDistance: 1;'></a-camera>
	<a-entity material='color: red' geometry='primitive: box' gps-new-entity-place="latitude: 8.477820; longitude: 124.642536" scale="10 10 10"></a-entity>
</a-scene>
	
</body>
</html>
@iaminkrypn0os
Copy link

The same is happening to me. Sad to not find an answer here.

@nickw1
Copy link
Collaborator

nickw1 commented Apr 28, 2024

This is the same issue as #278 by the looks of things.

Unfortunately it hasn't been resolved yet, it looks like it's a device-specific issue, perhaps due to specific device sensors.

What might help is opening a new issue in which people can list exact device models/OS versions that have this error, in order to identify the cause.

Apologies for the late reply, I will admit I have little time for AR.js these days: more than anything else we need more developers!

@nickw1
Copy link
Collaborator

nickw1 commented Apr 28, 2024

Issue created. See #603.

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

3 participants