Hi,

   I have a similar problem when i create an OSGTerrain node in a multithread 
configuration. The crash occur in the init function of the GeometryTechnique 
class. Note i use OSG 3.2.

   To solve this problem, i made a small modification to OSG itself. 

   I replace the line 
      if (!_currentBufferData || !assumeMultiThreaded)
   by
      if (!_currentBufferData && !assumeMultiThreaded)
   in the GeometryTechnique::init function.

   I also replace the line 
      init(getDirtyMask(), false);
   by 
      init(getDirtyMask(), true);
   in the TerrainTile::traverse function.

   With this modification, the currentBuffer is create in the Update traversal 
(one thread) instead of the cull/draw traversal (multi-thread).

   Maybe it's better to wait for OSG team approval before you made this 
modification. 

Cheers,
Sylvain

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59098#59098





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

Reply via email to