Re: [osg-users] Force updating

2009-05-06 Thread David Callu
Hi Miriam

Sorry but ... What is the question ?
Can you more explain you issue.

David Callu

2009/5/6 Miriam D'Elia miriamde...@gmail.com

 Hi to all!
 I would need to change the height (at runtime) to the forms (osg::Capsule)
 that make up my scene.
 I make the interpolation with osg::AnimationPath to move the shapes.

 The structure of each shape is as follows:

 PositionAttitudeTransform
 |
   MatrixTransform
 |
Geode
 |
   Capsule

 Thanks !


 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Force updating

2009-05-06 Thread Miriam D'Elia

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?


David Callu ha scritto:

Hi Miriam

Sorry but ... What is the question ?
Can you more explain you issue.

David Callu

2009/5/6 Miriam D'Elia miriamde...@gmail.com 
mailto:miriamde...@gmail.com


Hi to all!
I would need to change the height (at runtime) to the forms
(osg::Capsule) that make up my scene.
I make the interpolation with osg::AnimationPath to move the shapes.

The structure of each shape is as follows:

PositionAttitudeTransform
|
  MatrixTransform
|
   Geode
|
  Capsule

Thanks !


___
osg-users mailing list
osg-users@lists.openscenegraph.org
mailto:osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
  


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Force updating

2009-05-06 Thread Jean-Sébastien Guay

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 Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org