How to rotate the camera around an object like in Blender (without visually moving the object to the center of the screen)?

In Blender you can rotate the camera around an object even if the object is not in the center of the screen (with the Orbit Around Selection option enabled):


How to do the same in Threejs?

Related: Offset OrbitControls pivot point

What you are looking for is not possible with OrbitControls or TrackballControls. Both classes assume the focus and orbit point are the same. Please use the external camera-controls library:

Check out the “focal offset” demo.

Thanks. That’s exactly what is needed.