Hello Daniel,

Daniel Wickeroth wrote:
> first of all thanks for the help on framerate limitations. We solved
> the problem using Qt Timers.
> But there is (as always) another problem. We have implemented a
> collaborative application, where the mouse cursor of one person is
> also shown to the other. So in the end both partners see two mouse
> cursors. The remote mouse cursor is rendered into an
> OSGImageForeground.
> 
> Now here's the problem: we currently re-render the whole scene, just
> because the remote mouse was moved, which causes a change in the
> imageforegroud.
> 
> Is there a way to re-render the foreground only, and leave the scene
> the way it was?

this requires that you keep the framebuffer content covered by the mouse 
cursor around, so that you can restore it when the mouse moves to a new 
position.
So the basic idea is to make a copy of the framebuffer (of part of it) 
then draw the mouse cursor. Later when the cursor moves to a new 
position, write the framebuffer content back and draw the cursor at its 
new location.
One way to achieve this would be to render the scene into an FBO and 
draw it as a texture on a e.g. PolygonBackground. As long as only the 
mouse moves you render an empty scene with just that Background and your 
cursor on the foreground, when the scene changes, you additionally 
render the FBO texture again.

        Hope it helps,
                Carsten

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to