MantisBT - ParaView
View Issue Details
0005584ParaView(No Category)public2007-08-27 18:332007-08-29 12:18
Ken Moreland 
Utkarsh Ayachit 
0005584: Clamp animation values outside of keyframe range
When an animation time is set outside of the range of keyframes for a particular property, it should clamp the value of that property to the closest keyframe. Otherwise, the animation gets messed up when you skip around in the animation.

For example, consider the animation defined in the attached state file. It has a single sphere source and animates the end theta from 0 to 360 from time 0 to 0.5 and animates start theta from 0 to 360 from time 0.5 to 1.0. If you play the animation in a loop, you get a sphere that forms and disappears.

However, because the tracks to not span over all time, things get messed up if you jump around in time. Try this. Go to time 1. Then go to time 0.75 and then go to time 0.25. At time 0.25 you would expect the upper hemisphere that would appear if you were playing the animation in a loop, but instead you get nothing. This is because the start theta is still at 180 instead of 0 as you would expect.
No tags attached.
? AnimateSphere.pvsm (69,357) 2007-08-27 18:33
png AnimateSphere.png (66,925) 2007-08-27 18:34
Issue History
2007-08-27 18:33Ken MorelandNew Issue
2007-08-27 18:33Ken MorelandFile Added: AnimateSphere.pvsm
2007-08-27 18:34Ken MorelandFile Added: AnimateSphere.png
2007-08-27 18:34Ken MorelandNote Added: 0008688
2007-08-27 18:35Ken MorelandStatusbacklog => tabled
2007-08-27 18:35Ken MorelandAssigned To => Clinton Stimpson
2007-08-28 12:48Clinton StimpsonAssigned ToClinton Stimpson => Utkarsh Ayachit
2007-08-28 12:49Clinton StimpsonNote Added: 0008709
2007-08-28 13:43Utkarsh AyachitNote Added: 0008715
2007-08-28 14:29Utkarsh AyachitNote Edited: 0008715
2007-08-28 15:41Utkarsh AyachitStatustabled => @80@
2007-08-28 15:41Utkarsh AyachitResolutionopen => fixed
2007-08-28 15:41Utkarsh AyachitNote Added: 0008724
2007-08-29 12:18Ken MorelandStatus@80@ => closed
2011-06-16 13:10Zack GalbreathCategory => (No Category)

Ken Moreland   
2007-08-27 18:34   
I have added a screen capture of the animation view so that the animation can be more easily created if the state file does not load correctly.
Clinton Stimpson   
2007-08-28 12:49   
Utkarsh, should this be handled by the server manager?
Utkarsh Ayachit   
2007-08-28 13:43   
(edited on: 2007-08-28 14:29)
Yes, it should be handled in SM. I'll take a look.

Utkarsh Ayachit   
2007-08-28 15:41   
If the first keyframe use added has key time > 0.0, wecreate a copy of the first keyframe and add it at time 0.0. The type of the copy is
typically a BooleanKeyFrame and is defined in the xml configuration.

/cvsroot/ParaView3/ParaView3/Servers/ServerManager/vtkSMKeyFrameAnimationCueManipulatorProxy.cxx,v <-- vtkSMKeyFrameAnimationCueManipulatorProxy.cxx
new revision: 1.18; previous revision: 1.17
/cvsroot/ParaView3/ParaView3/Servers/ServerManager/vtkSMKeyFrameAnimationCueManipulatorProxy.h,v <-- vtkSMKeyFrameAnimationCueManipulatorProxy.h
new revision: 1.11; previous revision: 1.10
/cvsroot/ParaView3/ParaView3/Servers/ServerManager/vtkSMKeyFrameProxy.h,v <-- vtkSMKeyFrameProxy.h
new revision: 1.13; previous revision: 1.12
/cvsroot/ParaView3/ParaView3/Servers/ServerManager/Resources/utilities.xml,v <-- utilities.xml
new revision: 1.132; previous revision: 1.131