Hi Gerrick,

Its fine to share scene graphs between SceneView's.  This is how osgProducer
and osgViewer do it.

Robert.

On 5/3/07, Gerrick Bivins <[EMAIL PROTECTED]> wrote:

Robert does this require that we also need a seperate scenenode for each
scene view or can we use a single scenenode for all the sceneviews?
for example, is this safe to do?
///single root
osg::ref_ptr<osg::group> root = new osg::group;
...
for( i<n)
{
   scenenview.push_back(new osgUtil::SceneView)
   sceneview.back()->setScenesetSceneData(root.get());
}
...

Having a copy of the graph per sceneview seems inefficient but the
question arose so I thought I'd ask.
biv

On 5/3/07, Gerrick Bivins <[EMAIL PROTECTED]> wrote:
>
> Ok. Since we are using a sceneview per context, sounds like we should be
> okay making those calls into sceneview, right?
> biv
>
>
> On 5/3/07, Robert Osfield < [EMAIL PROTECTED]> wrote:
>
> > Hi Gerrick,
> >
> > None of the calls in SceneView are thread safe when multiple threads
> > are working on a single SceneView.
> >
> > The thread safety only comes with multi-buffering, i.e. having one
> > SceneView per graphics context, and one thread per graphics context.
> >
> > Robert.
> >
> >
> >
> >  On 5/3/07, Gerrick Bivins < [EMAIL PROTECTED]> wrote:
> >
> > >  Hi All,
> > > We are using an application that utilizes sceneviews in multi
> > > context displays. We are wondering which calls in sceneview
> > > are thread safe, specifically:
> > >
> > > setSceneData
> > > setComputeNearFarMode
> > > setViewport
> > > setViewMatrix all
> > >
> > > Thanks,
> > > biv
> > >
> > > _______________________________________________
> > > 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/
> >
>
>

_______________________________________________
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