ON_DEMAND rendering and annotations

classic Classic list List threaded Threaded
2 messages Options
JD JD
Reply | Threaded
Open this post in threaded view
|

ON_DEMAND rendering and annotations

Hi,

I need to make ON_DEMAND rendering working on my application.
When i test, it works in most cases but i have an issue with the screenspacelayout.

ScreenSpaceLayout is doing a "pop" animation when a label becomes visible but the animation doesnt request for frames so labels can appear partially scaled.

How can i implement a clean way to support this animation with ON_DEMAND frame scheme ?

Thank you,
Jérôme.
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: ON_DEMAND rendering and annotations

JD,

I don't have time to delve into the code, but in general: you need to detect the fact that more work needs to be done, and then inform the osgViewer::View (which you can access though the osg::Camera) by calling view->requestRedraw(). This is the typical way of telling the renderer that it needs to render another frame in ON_DEMAND mode.
Glenn Waldron / Pelican Mapping