Currently, I am working on a scene with three.js and using orbit controls to rotate the camera around the scene. Occasionally, while rotating, the camera starts moving erratically before calming down and rotating smoothly again.
I have read about orbit control wobbles online, but those issues seem to occur when the camera is static, whereas mine happens only during rotation.
I made a small video demonstrating this behavior
In the video, you can see the camera wobbling around until I focus on an object and then return, after which it rotates fine.
Some solutions mention adjusting near and far clipping planes. My current settings are:
nearClippingPlane = 0.1
farClippingPlane = 10000
Do you think this could be causing the issue? Should I look into those solutions further?
Or is there another underlying problem at play here?
Thank you for your help, and apologies if this seems like a trivial question...
EDIT:
Here's the renderloop:
Additionally, here is another video where I try to avoid hovering over the cubes: