摘要 |
The present invention provides a method and device for animating and a method and device for playing animation. The method for animating includes: determining key frames of an animation unit, wherein the frames in which the animation unit changes non-linearly in the playing process are the key frames; setting key frame data of the animation unit, wherein parameters of the animation unit in the key frame are recorded in the key frame data. The method for playing animation includes: traversing each animation unit in the current frame; obtaining the key frame data of said animation unit; if said animation unit does not have key frame data in the current frame, calculating transition frame data of said animation unit in the current frame according to the key frame data of said animation unit in the key frames; updating said each animation unit in the current frame according to the key frame data or the transition frame data of said each animation unit. Implementing the method and device for animating and the method and device for playing animation that are provided in the present invention can reduce the workload in animating process. |