Praveena Sara wrote on 2012-07-27: 
> 
>> OSG can do the cull traversal in a separate thread from the draw, so
it
>> might be drawing the beam while you are modifying the points array.
If
>> switching to SingleThreaded mode prevents the crash,
> 
> 
> Making the viewer single threaded worked!
> 
> 
> Code: viewer.setThreadingModel(osgViewer::Viewer::SingleThreaded);
> 
> 
> 
> Thanks a lot!
>  :)

Glad I could help :)

Did setting the DataVariance on the Geometry to DYNAMIC (but keeping the
default threading model) work? That would be a better solution because
you still get the benefits of parallel cull and draw for everything in
the scene that is not DYNAMIC.

--
Bryan Thrall
Principal Software Engineer
FlightSafety International
[email protected]


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to