Hi Mustafa,

On 7/21/06, Mustafa <[EMAIL PROTECTED]> wrote:
I have created an animationpath and inserted some control points.

1) Now I want to delete some of the control points? there is no
delete method, but used ControlPointMap do delete. Is it the right
way?

I have never tried to delete ControlPoints, but getting
TimeControlPointMap from AnimationPath and modifying it would be the
way to do it - its just a std::map.


2) Also I tried to modify the time values in the ControlPointMap.

Above two operation is successfull, but in the animation there are
some gaps. I mean, in some part of the animation, model becames
invisible then after few seconds it is visible...

Modifying time values in-situe could easily invalidate the  std::map,
the correct way would be to remove the control point and then reinsert
a new one with the new time value.


Do I need to recalculate the interpolation between ControlPoints?
With wich method ?

The interpolation is computed on the fly so there is nothing you need
recompute.  Perhaps messing around with the time values has invalidate
the std::map and this is causing problems.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to