Is it possible to control multiple cameras across different threejs instances with one orbit controls?
For example, rotating one object in this example should “sync” the camera and orbit controls on all other objecst as well:
https://threejs.org/examples/?q=multip#webgl_multiple_elements
In my situation each object has his own scene/camera/canvas element.
Well yes Bossie, it sure is.
You can achieve that by creating a dummy camera and orbitcontrols. Then send the camera position and rotation to every “child” every time the dummy camera changes.
I am not sure if this is the best way though, but it get’s the job done:
Is it a kind way that you could explain this example with code?
Hi Can you please explain how to send the camera position and rotation to every “child”? And by “child” you mean the Mesh?