Keyframe Animation
Keyframe Animation
Week 8
Subject: Virtual Reality and Examples When: June 14th Where: Design Systems Lab. (Vertigo 9.16)
Animation
History of cartoon and computer animation Extensive description of techniques and algorithms Rick Parent Computer Animation, Algorithms and Techniques www.cis.ohio-state.edu/~parent/book/outline.html How to make an animation Examples www.pixar.com
3
Animation
Animation To give live to Make objects change over time according to scripted actions By showing a sequence of fast changing images Series images (frames) Film 24 fps Video 30 fps => 1 hour animation 108000 frames
In fact, everything!
Computer animation
Computer animation pipeline 3D modeling Motion specification Key framing Motion simulation Rendering Post-processing
Keyframe animation
Each keyframe specified by a number of key-parameters (state) Inbetweening: Interpolate these parameters
Keyframe animation
For each key parameter, specify value at important frames Computer creates path for each parameter by interpolating this key parameter for inbetween frames
Interpolation
Linear interpolation Usually discontinuities Not a smooth movement
10
Interpolation
Spline interpolation Smooth transitions Beware of unwanted side effects
11
12
13
Keyframing summarized
Specification of key frames/parameters Determine key parameters and their values at certain important points in time Specify type of interpolation Specify speed curve for interpolation Computer generates inbetween frames
14
15
Examples of joints
Constraints on joints
16
Articulated structure
Skeleton consists of 14 joints Each joint has 2 or 3 degrees of freedom Some parameters constrained
17
Kinematics
Kinematics is the study of movement of (hierarchical) objects Position, orientation, velocity, acceleration Without taking into account dynamic properties (forces) (dynamics) Forward kinematics Inverse kinematics
18
Forward kinematics
Animator sets parameter values for joints Computer computes positions/orientations for links links:
X f (1 , 2 )
19
Forward kinematics
Animation by specification / interpolation of joint parameters
20
Forward kinematics
21
Forward kinematics
22
Forward kinematics
23
Kinematics
What to do when animation knows the desired endposition of the (sub-)object? E.g. to grab something?
24
Inverse kinematics
Animator specifies position (and orientation) within scene at wich link (end-effector) has to be positioned Computer computes joint parameter values to get link at desired position:
1 , 2 f 1 ( X)
After that. computer computes positions of all links by applying these joint parameter values for all joints
25
Inverse kinematics
26
Inverse kinematics
Animation by specification / interpolation of end-effector position
y
Or animation by interpolation of joint parameter values at start and end frame
27
Inverse kinematics
Problems Often more than one solution Extra requirements to solution Result not always desired path (e.g. collisions) What to do when end-effector position specified outside operation area of object?
28
Inverse kinematics
Inverse kinematics is also used to compute dependency of joint parameter values E.g. for object with closed loops
29
Kinematics summarized
Forward kinematics Animator controls through joint parameters Direct control over object state Often many parameters to control Inverse kinematics Animator controls through position/orientation endeffector Simpler specification of movements Less parameters Better feeling for positions in scene Complex computations
30