Docsity

Channels and Keyframes - Computer Animation - Lecture Slides, Slides of Computer Graphics and Animation

Partial preview of the text

Download Channels and Keyframes - Computer Animation - Lecture Slides and more Slides Computer Graphics and Animation in PDF only on Docsity!

Channels & Keyframes

Animation

Animation

 When we speak of an ‘animation’, we refer

to the data required to pose a rig over

some range of time

 This should include information to specify

all necessary DOF values over the entire

time range

 Sometimes, this is referred to as a ‘clip’ or

even a ‘move’ (as ‘animation’ can be

ambiguous)

Pose Space

 If a character has N DOFs, then a pose can be thought of as a point in N-dimensional pose space

 An animation can be thought of as a point moving through pose space, or alternately as a fixed curve in pose space

 ‘One-shot’ animations are an open curve, while ‘loop’ animations form a closed loop  Generally, we think of an individual ‘animation’ as being a continuous curve, but there’s no strict reason why we couldn’t have discontinuities (cuts)

Ö = [φ 1 φ 2 ... φ N ]

Ö = Ö ( ) t

Channels

tmin tmax Time

Value

Channels

 As a channel represents pre-recorded data, evaluating the channel for a particular value of t should always return the same result  We allow channels to be discontinuous in value, but not in time  Most of the time, a channel will be used to represent a DOF changing over time, but occasionally, we will use the same technology to relate some arbitrary variable to some other arbitrary variable (i.e., torque vs. RPM curve of an engine…)

Array of Poses

 An alternative way to store an animation is

as an array of poses

 This also forms a 2D array of floats

(NumFrames x NumDOFs)

 Which is better, poses or channels?

Poses vs. Channels

 Which is better?

 It depends on your requirements.

 The bottom line:

 Poses are faster  Channels are far more flexible and can potentially use less memory

Array of Channels

 As each channel is stored independently, they have the flexibility to take advantage of different storage options and maximize memory efficiency  Also, in an interactive editing situation, new channels can be independently created and manipulated  However, they need to be independently evaluated to access the ‘current frame’, which takes time and implies discontinuous memory access

Poses vs. Channels

 Array of poses is great if you just need to play back some relatively simple animation and you need maximum performance. This corresponds to many video games  Array of channels is essential if you want flexibility for an animation system or are interested in generality over raw performance  Array of channels can also be useful in more sophisticated game situations or in cases where memory is more critical than CPU performance (which is not uncommon)

Temporal Continuity

 Sometimes, we think of animations as having a particular frame rate (i.e., 30 fps)  It’s often a better idea to think of them as being continuous in time and not tied to any particular rate. Some reasons include:  Film / NTSC / PAL conversion  On-the-fly manipulation (stretching/shrinking in time)  Motion blur  Certain effects (and fast motions) may require one to be really aware of individual frames though…

Animation Storage

 Regardless of whether one thinks of an animation as being continuous or as having discrete points, one must consider methods of storing animation data  Some of these methods may require some sort of temporal discretization, while others will not  Even when we do store a channel on frame increments, it’s still nice to think of it as a continuous function interpolating the time between frames

Channel Storage

 There are several ways to store channels. Most approaches fall into either storing them in a ‘raw’ frame method, or as piecewise interpolating curves (keyframes)  A third alternative is as a user supplied expression, which is just an arbitrary math function. In practice, this is not too common, but can be handy in some situations.  One could also apply various interpolation schemes (such as radial basis functions!), but most channel methods are designed more around user interactivity

Raw Data Formats

 Sometimes, channels are stored simply as an array of values, regularly spaced in time at some frame rate  They can use linear or smoother interpolation to evaluate the curve between sample points  The values are generally floats, but could be compressed more if desired  The frame rate is usually similar to the final playback frame rate, but could be less if necessary