Hi John,

Interesting problem you've unconvered.   Responding to windowing
redraw events is something it should do, but alas it wasn't something
I thought about nor tested on writing the feature.  I'm rather rusty
on the topic so if you have looked into the code and come up with a
possible solution you are further ahead than me, so I'd suggest just
going with what you feel would work and the post the code to be
review, and on review I'll try and get my head around this topic.

Cheers,
Robert.

On Mon, Mar 14, 2011 at 4:17 PM, PC John <[email protected]> wrote:
> Hi all,
>
> I am using osgViewer::Viewer in ON_DEMAND RunFrameScheme, e.g. there is no
> continual re-rendering and 100% CPU loading, but the scene is rendered only
> when really needed.
>
> Bug: The window is not repainted when obscured by another window and re-shown
> again.
>
> I was trying to fix the problem and these are my findings:
> - when window is damaged and needs to be repainted, it receives WM_PAINT
> (Win32) or Expose (Linux) message, or paintEvent() is called on Qt. I tried to
> call requestRedraw() inside these, but it is just an empty function inside
> osgViewer::GraphicsWindow. Is it a bug, intended behaviour or unimplemented
> functionality? In the first and third case, I am going to contribute the 
> missed
> functionality by testing all windows from
> osgViewer::Viewer::checkNeedToDoFrame().
>
> John
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to