Hi Miriam,

You can implement a class derived from osg::Drawable::UpdateCallback and add

it to you capsule's UpdateCallback. You need to reimplement the
osg::Drawable::UpdateCallback::update() to update the height of the forms

take a look to osgcallback and osgprerender example to learn more on
Drawable::UpdateCallback.
And of course, read the osg::Drawable header :-)

In OSG, many thing is based on Callback to easily customize the default
behavious.


HTH
David Callu


2009/5/6 Miriam D'Elia <[email protected]>

> 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 <[email protected] <mailto:
>> [email protected]>>
>>
>>    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
>>    [email protected]
>>    <mailto:[email protected]>
>>
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to