Search code examples
canvascamerathree.jsviewportorbit

orbit controls with multiple cameras and viewports


Can I have many cameras in my scene, analogous viewports and different orbit controls for each viewport/camera ?

Is this possible and how?

Thank you


Solution

  • The easiest way to solve this is to have some element in you html that is replicating your viewports.

    For instance, if you have a viewport that covers the top half of the canvas, create a div that does the same.

    And then, link this element to that particular control