AR.js icon indicating copy to clipboard operation
AR.js copied to clipboard

Jittering model

Open vladimir-rybalko opened this issue 2 years ago • 6 comments

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

vladimir-rybalko avatar Jul 24 '22 15:07 vladimir-rybalko

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 avatar Aug 06 '22 16:08 MilosGlisovic

@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

vladimir-rybalko avatar Aug 08 '22 04:08 vladimir-rybalko

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

MilosGlisovic avatar Aug 08 '22 07:08 MilosGlisovic

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.

Hayd25 avatar Dec 06 '22 13:12 Hayd25

same issue

qianxifu avatar Dec 14 '22 07:12 qianxifu

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.

nickw1 avatar Dec 15 '22 10:12 nickw1