Hi Robert,

Robert Osfield schrieb:
HI Stephan,

On 2/15/07, Stephan Maximilian Huber <[EMAIL PROTECTED]> wrote:
> It sounds like the RTT window is not being created correctly, or
> pehaps the make current isn't working as it should.
I did some debugging, if I insert a glFlush before
copyTexture(renderInfo) in RenderStage at line 737  the cow gets
displayed on the additional window. But still no cow on the flag :(

The need for a flush sounds like we have a threading issue on the
OpenGL side, i.e. the RTT window doesn't complete before the main
window draw traversals resumes.   There do seem to be other problems
so we'll need to do more exploring before jumping to conclusions.

When sharing is in action I would have though we would just have two
textures, one for the RTT, one of the cow.
I did run the osgproducerviewer (which shares the fullscreen-context with the window-context) and there you have only one texture (when displaying the cow-model). So something goes wrong when trying to share two windowed contexts
Could you try the above when running with SingleThreaded?  I wonder if
the double buffering is has some detrimental effect.
I did run my tests all single-threaded, running multithreaded I got two rtt-windows which confused me :) (when running multithreaded, the opengl profiler reports 6 textures).

So it looks like that the sharing of the contexts do not work correctly, perhaps because both of them are bind to a window. I'll try to find out more on this topic in the documentation / at developer.apple.com

thanks,
Stephan
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to