Sync EarthManipulator with modified camera orientation? #2595
-
How one can sync EarthManipulator state with current external modified camera orientation? I use a osgGA::GUIEventHandler to modify the camera orientation with getCamera()->setViewMatrixAsLookAt calls. After release of some keys it should be possible to switch to EarthManipulator without any camera changes. I haven't found a public method in EarthManipulator that does this. |
Beta Was this translation helpful? Give feedback.
Answered by
remoe
Jul 23, 2024
Replies: 1 comment
-
Ok, I found a simple solution: manip->setByMatrix(view->getCamera()->getInverseViewMatrix()); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gwaldron
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, I found a simple solution: