AR.js
AR.js copied to clipboard
Jittering model
Hello!
I create a basic example of AR.js for location based and faced the problem of model shaking. I checked the basic example in A-frame.js and I meet the same problem. The solutions that I found do not fix the problem. Is there something I'm missind?
My code example
Video with problems: AR.js A-frame.js
I have the same problem, Have you tried this code?
<a-camera look-controls-enabled='false' arjs-look-controls='smoothingFactor: 0.1' gps-camera rotation-reader> </a-camera>
It doesn't work for me and it doesn't show the 3d model at all
@MilosGlisovic, i have added your code to my project but it has no effect for me.
<a-camera rotation-reader look-controls-enabled="false" arjs-look-controls="smoothingFactor: 0.1" gps-camera="simulateLatitude: 44.50437; simulateLongitude: 11.30106; gpsMinDistance: 10;" > </a-camera>
https://user-images.githubusercontent.com/3933179/183341234-d59f2f58-1316-4292-80e2-bc79cd4d794d.mp4
They said it's the best solution for shaking but it doesn't even show me the 3d model, obviously it doesn't work. It would be good if someone could tell if there is anything that reduces the shaking
I had the problem with shaking using https://aframe.io/releases/1.3.0/aframe.min.js, I had to downgrade to https://aframe.io/releases/1.2.0/aframe.min.js and then all the shaking problems went away.
It was very stable after that. Maybe if https://aframe.io/releases/1.2.0/aframe.min.js supports all you need you could use that until whatever causes the shaking is resolved.
same issue
Hi @qianxifu and others,
Have you tried the reducing shaking feature, described in the documentation?
https://ar-js-org.github.io/AR.js-Docs/location-based/#reducing-shaking-effects
Currently this is only supported in the older gps-camera
and gps-projected-camera
components, however a PR has been made for the same feature in the gps-new-camera
component and should appear in the next release.