You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to have two orbit controls in one canvas? and each orbit control have its own camera?
I'm trying to interactively switch between perspective camera and orthographic camera, in a way that the position and target of cameras are synced. I understand that I can sync the position and target of these cameras at every switch but some properties are not that easy to translate from one camera to another. For example, mouse scroll in perspective camera brings the camera closer to target, while in orthographic camera it changes the zoom level. I'm sure there's a math equation that can fix that but I was trying to think of a different way.
I'm thinking of having two orbit controls, one using a perspective camera, and the other using an ortho camera, both listening to mouse events. That way they'll always be in sync. Is that possible?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it possible to have two orbit controls in one canvas? and each orbit control have its own camera?
I'm trying to interactively switch between perspective camera and orthographic camera, in a way that the position and target of cameras are synced. I understand that I can sync the position and target of these cameras at every switch but some properties are not that easy to translate from one camera to another. For example, mouse scroll in perspective camera brings the camera closer to target, while in orthographic camera it changes the zoom level. I'm sure there's a math equation that can fix that but I was trying to think of a different way.
I'm thinking of having two orbit controls, one using a perspective camera, and the other using an ortho camera, both listening to mouse events. That way they'll always be in sync. Is that possible?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions