playcanvas-ar icon indicating copy to clipboard operation
playcanvas-ar copied to clipboard

Box is shaking

Open jinwoobot opened this issue 5 years ago • 4 comments

When I used Starterkit, The box is shaking so much.

Does it have a smooth option?

I think this example suitable for comparison. https://github.com/jeromeetienne/AR.js#try-it-on-mobile

jinwoobot avatar Jan 22 '20 07:01 jinwoobot

No but that would be very easy to add. Just track the orientation reported by ARToolkit and instead of using that directly, just interpolate towards it.

willeastcott avatar Jan 22 '20 12:01 willeastcott

No but that would be very easy to add. Just track the orientation reported by ARToolkit and instead of using that directly, just interpolate towards it.

Would that be around here in the code?

image

bjornsyse avatar Feb 21 '21 11:02 bjornsyse

Yes, that's correct. You would lerp towards the finalMatrix position and rotation instead of setting them directly.

willeastcott avatar Feb 25 '21 13:02 willeastcott

Hi guys did anyone solve this ?

sara87777 avatar Sep 07 '21 08:09 sara87777