Skip to content

EarthManipulator::setViewpoint doesn't work in main()funciton #2075

Discussion options

You must be logged in to vote

Now, I figure it out.
I add viewer.realize(); somewhere before manip->setViewpoint(Vps[0], 0.0); and after osgViewer::Viewer viewer; and it can work.
I don't know the reason.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by smarttigerfly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant