Producer allows you to set up shared contexts, either in the way you've done it or by calling the static RenderSurface::shareAllGLContexts().  However, last I looked , osgProducer doesn't take this into account when creating sceneviews for each camera and assigns a unique context ID to each, causing osg to internally create a new texture object and display list object for each context.

-don

On 8/10/06, Elk, M.G. (Michel) van <[EMAIL PROTECTED]> wrote:
Hi,

I'm using Producer and try to share the graphics context between
multiple viewers
as they are all looking at the same scenegraph.

I have tried to do this by creating a Producer::RenderSurface. During
the realize()
call I add a shared GLcontext to the parameters.

When I add an object to the scenegraph each texture is loaded multiple
times, so
seemingly there is no sharing ...

Does anyone know how to share the graphics context using the Producer
viewers/render surfaces?

Thanks,

Michel

This e-mail and its contents are subject to the DISCLAIMER at http://www.tno.nl/disclaimer/email.html
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

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

Reply via email to