[osg-users] heightfield change height crashes

Jean-Sébastien Guay jean-sebastien.guay at cm-labs.com
Mon Nov 23 11:14:17 PST 2009


Hello Thomas,

> i created a geode and a heightfield, then i created a shapeDrawable with the geode as argument. After that i addDrawable to the geode, and the geode to the group. Now i can see the heightfield, but when i now try to change a height it does not update the frame?
> when i use dirtyDisplayList() after setting the heigth, it crashes all the time. what do i wrong?

Is your viewer multithreaded? If so, have you set the data variance on 
your ShapeDrawable to DYNAMIC? And are you calling dirtyDisplayList() 
from an update callback (or somewhere else in the update phase, not the 
cull nor draw)?

Hope this helps,

J-S
-- 
______________________________________________________
Jean-Sebastien Guay    jean-sebastien.guay at cm-labs.com
                                http://www.cm-labs.com/
                         http://whitestar02.webhop.org/


More information about the osg-users mailing list