EarthManipulator::setViewpoint doesn't work in main()funciton #2075
Answered
by
smarttigerfly
smarttigerfly
asked this question in
Support Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
smarttigerfly
May 28, 2022
Replies: 1 comment
-
Now, I figure it out. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
smarttigerfly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Now, I figure it out.
I add
viewer.realize();
somewhere beforemanip->setViewpoint(Vps[0], 0.0);
and afterosgViewer::Viewer viewer;
and it can work.I don't know the reason.