Must add viewer.realize() before EarthManipulator.setViewpoint(Viewpoint)? #2248
Unanswered
smarttigerfly
asked this question in
Support Q&A
Replies: 1 comment 1 reply
-
I am not able to reproduce this in the main master branch. Which version of osgEarth are you using? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I build and run example
osgearth_transform
withVisual Studio Community 2022
onWin 10
, the result is incorrect:I run
osgearth_transform.exe
in command-line, the result is:And I add
viewer.realize();
beforeem->setViewpoint(vp);
:the result is:
![2023-03-26-16-10-41](https://user-images.githubusercontent.com/13800186/227763899-d2c3a99f-e1ea-449a-94dc-5ac871ea657e.png)
the statement
em->setViewpoint(vp);
works.Beta Was this translation helpful? Give feedback.
All reactions