[osg-users] I need any ideas on how to wait for all outstanding frame-calls

Christoph Dohmen christoph.dohmen at cae.de
Wed Feb 27 04:24:23 PST 2019


Hi all,

I need any ideas on how to wait for all outstanding or pending frame-calls.

What I try to do is have a rendering on demand mode for a viewer showing a geotiff (using osgearth). Currently it takes several frame-calls to have the image in a clear state. And is state is the item I want to wait for, before start doing something else.

Currently the implementation starts with calling OsgMapManipulator::centerMapAtPosition(). As next step I tried doing different approaches like:


Code:
while (viewer->checkEvents() )
{
    viewer->frame()
}




or 


Code:
while (viewer->checkEvents() )
{
    viewer->renderTraversas()
}




or


Code:
while (viewer->checkNeedToDoFrame() )
{
    viewer->frame()
}




Unfortunately nothing worked as I expected.

Anyone out here in the forum who is able to give me the 'right' hint which item to ask in which way to be sure, that the rendered viewer content could be labeled 'stable'?

Thank you!

Cheers,
Christoph[/list]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75662#75662







More information about the osg-users mailing list