AR.js
AR.js copied to clipboard
Location Base - Entity is following
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/[email protected]/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>
The same is happening to me. Sad to not find an answer here.
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!
Issue created. See #603.