Hi Miriam,
I would need to change the height (at runtime) to the forms
(osg::Capsule) .
I must to force the update of shapes.
How can I do?
An important part is that if you have something based on
osg::ShapeDrawable and you need to change the properties of the
underlying shape, then once you're done you need to call
shapeDrawable->dirtyDisplayList(); and shapeDrawable->dirtyBound();
otherwise the visible shape won't seem to change.
As to where to put your modification code, David put you on the right
track. You could also just unroll the frame loop (instead of using
viewer.run() - search previous posts for the details) and do the
modification there in the update phase.
Hope this helps,
J-S
--
______________________________________________________
Jean-Sebastien Guay [email protected]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org