How to know when rendering complete #2623
Unanswered
rebmaso
asked this question in
Support Q&A
Replies: 1 comment
-
The general answer is "no" since osgEarth loads levels of detail incrementally and has no consistent way of knowing whether more, higher-resolution data will be available from the source until it asks. osgEarth loads tile data in background jobs. So one thing you can try is to query the total number of jobs that are running. Once this number drops to zero and stays there your data is done loading. auto num_running_jobs = jobs::get_metrics()->total(); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Is there any way to tell If OsgEarth is done rendering to a sufficient level of detail, after setting a new camera view (e.g. jumping to "home" location in the viewer app)
I have tried using openscenegraph's DrawCallback method but I don't think it does what I want.
Thanks a lot! 🙏
Beta Was this translation helpful? Give feedback.
All reactions