Re: [osg-users] setLightingMode crash in multithread mode

2014-04-22 Thread Sylvain Comtois
Hi Robert, I use two way to modify my scene graph. The first one is using the UpdateCallback each time it is possible. The second one is when we are outside the ViewerBase::frame() function. Our application have a lot of threads and i use a mutex to be sure the OSG tree is never

Re: [osg-users] setLightingMode crash in multithread mode

2014-04-22 Thread Robert Osfield
Hi Sylvain, n 22 April 2014 14:30, Sylvain Comtois sylvain.comt...@gel.ulaval.ca wrote: Hi Robert, I use two way to modify my scene graph. The first one is using the UpdateCallback each time it is possible. The second one is when we are outside the ViewerBase::frame() function.

Re: [osg-users] setLightingMode crash in multithread mode

2014-04-21 Thread Robert Osfield
Hi Sylvain, The threading support in osgViewer doesn't include modifying the viewer and scene graph at the same time as cull. You should modify scene graph objects during update, or event traversals - basically any time outside of when viewer::renderingTraversals() are running. Robert. On 22

[osg-users] setLightingMode crash in multithread mode

2014-04-20 Thread Sylvain Comtois
Hi, First, my program work without any problem when the threading model is configure to single thread and i use one master camera and tree slaves cameras on a multiprocessor computer. When i call the method Viewer::setLightingMode of my viewer, osg crash when the method