Top Banner
Computer Animation Connelly Barnes CS 4810: Graphics Acknowledgment: slides by Jason Lawrence, Misha Kazhdan, Allison Klein, Tom Funkhouser, Adam Finkelstein and David Dobkin
73

Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Oct 19, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Computer Animation

Connelly Barnes

CS 4810: Graphics

Acknowledgment: slides by Jason Lawrence, Misha Kazhdan, Allison Klein, Tom Funkhouser, Adam Finkelstein and David Dobkin

Page 2: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Overview• Some early animation historyohttp://en.wikipedia.org/wiki/

History_of_animation#Animation_before_film

• Computer animation

Page 3: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Thaumatrope• Why does animation work?

• Persistence of vision

• 1824 John Ayerton invents the thaumatrope

• Or, 1828 Paul Roget invents the thaumatrope

Page 4: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Thaumatrope• Why does animation work?

• Persistence of vision

• 1824 John Ayerton invents the thaumatrope

• Or, 1828 Paul Roget invents the thaumatrope

Page 5: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Phenakistoscope • Invented independently by 2 people in 1832

• Disc mounted on spindle

• Viewed through slots with images facing mirror

• Turning disc animates images

Page 6: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Phenakistoscope • Invented independently by 2 people in 1832

• Disc mounted on spindle

• Viewed through slots with images facing mirror

• Turning disc animates images

Page 7: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Phenakistoscope • Invented independently by 2 people in 1832

• Disc mounted on spindle

• Turning disc animates images

• Viewed through slots with images facing mirror

Page 8: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Zoetrope (1834)• Images arranged on paper band inside a drum

• Slits cut in the upper half of the drum

• Opposite side viewed as drum rapidly spun

• Praxinoscope is a variation on this

Page 9: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Zoetrope (1834)• Images arranged on paper band inside a drum

• Slits cut in the upper half of the drum

• Opposite side viewed as drum rapidly spun

• Praxinoscope is a variation on this

Page 10: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Mutoscope (1895)• Coin-operated “flip-book” animation

• Picture cards attached to a drum

• Popular at sea-side resorts, etc.

Page 11: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Animation History• Animation and technology have always gone

together!

• Animation popular even before movies

• Movies were big step forward!

• "Humorous Phases of Funny Faces" (1906)

Page 12: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Key Developments• Plot

• Creation of animation studios

• Getting rid of “rubber-hose” bodies

• Inking on cels

“Gertie the Dinosaur” Windsor McCay (1914)

“Felix the Cat” Pat Sullivan (1919)

“Steamboat Willie” Walt Disney (1928)

Page 13: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Key Developments• Max Fleischer invents rotoscoping (1921)

Page 14: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Key Developments• Max Fleischer invents rotoscoping (1921)

http://commons.wikimedia.org/wiki/File:The_Horse_in_Motion-anim.gif

Page 15: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Fleischer’s Rotoscope

15

Page 16: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Key Developments• Max Fleischer invents rotoscoping (1921)

Page 17: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Key Developments• “Flowers and Trees” (1932) uses color!

• “Snow White” (aka “Disney’s Folly”) released 1937

“Flowers and Trees” Walt Disney

“Snow White” Walt Disney

Page 18: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Animation Uses• Entertainment

• Education

• Propaganda

Page 19: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Overview• Some early animation historyohttp://en.wikipedia.org/wiki/

History_of_animation#Animation_before_film

• Computer animation

Page 20: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Computer Animation• What is animation?oMake objects change over time

according to scripted actions

• What is simulation?oPredict how objects change over time

according to physical laws

University of Illinois

Pixar

Page 21: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

3-D and 2-D animation

Homer 3-D Homer 2-D

Page 22: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Outline• Principles of animation

• Keyframe animation

• Articulated figures

Angel Plate 1

Page 23: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Principles of Traditional Animation• Squash and Stretch• Timing• Anticipation• Staging• Follow Through and Overlapping Action• Straight Ahead Action and Pose-to-Pose Action• Slow In and Out• Arcs• Exaggeration• Secondary action• Appeal

http://www.anticipation.info/texte/lasseter/principles.html

Luxo Junior Short Film

Page 24: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Principles of Traditional AnimationSquash and Stretch• Defining the rigidity and mass of an object by

distorting its shape during an action.

http://www.anticipation.info/texte/lasseter/principles.html

Page 25: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Principles of Traditional AnimationTiming• Spacing actions to define the weight and size of

objects and the personality of characters.oHeavier objects accelerate sloweroLethargic characters move sloweroEtc.

http://www.anticipation.info/texte/lasseter/principles.html

Page 26: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Principles of Traditional AnimationAnticipation• The preparation for an action.oMuscle contraction prior to extensionoBending over to lift a heavy objectoLuxo’s dad responds to Luxo Jr. off screen before Luxo Jr.

appears.

http://www.anticipation.info/texte/lasseter/principles.html

Page 27: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Principles of Traditional AnimationStaging• Presenting an idea so that it is unmistakably clear.oKeeping the viewer’s attention focused on a specific part

of the scene.oLuxo Jr. moves faster than his dad, and so we focus on

him.

http://www.anticipation.info/texte/lasseter/principles.html

Page 28: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Principles of Traditional AnimationFollow Through and Overlapping Action• The termination of an action and establishing its

relationship to the next action.oLoose clothing will “drag” and continue moving after the

character has stopped moving.oThe way in which an object slows down indicates its

weight/mood.

http://www.anticipation.info/texte/lasseter/principles.html

Page 29: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Principles of Traditional AnimationStraight Ahead Action and Pose-to-Pose Action• The two contrasting approaches to the creation of

movement.oStraight Ahead Action:

»Action is drawn from the first frame through to the last one.

»Wild, scrambling actions where spontaneity is important.

oPose-to-Pose Action:»Poses are pre-conceived and animator fills in the in-betweens.

»Good acting, where the poses and timing are all important. http://www.anticipation.info/texte/lasseter/principles.html

Page 30: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Principles of Traditional AnimationSlow In and Out• The spacing of in-between frames to achieve subtlety

of timing and movements.

http://www.anticipation.info/texte/lasseter/principles.html

Page 31: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Principles of Traditional AnimationArcs• The visual path of action for natural movement.oMake animation much smoother and less stiff than a

straight line for the path of action

http://www.anticipation.info/texte/lasseter/principles.html

Page 32: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Principles of Traditional AnimationExaggeration• Accentuating the essence of an idea via the design

and the action.

http://www.anticipation.info/texte/lasseter/principles.html

Page 33: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Principles of Traditional AnimationSecondary Action• The Action of an object resulting from another action.oThe rippling of Luxo Jr.’s cord as he bounces around the

scene.

http://www.anticipation.info/texte/lasseter/principles.html

Page 34: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Principles of Traditional AnimationAppeal• Creating a design or an action that the audience

enjoys watching.oCharm oPleasing design oSimplicity oCommunicationoMagnetismoEtc.

http://www.anticipation.info/texte/lasseter/principles.html

Page 35: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Keyframe Animation• Define character poses at specific time steps

called “keyframes”

Lasseter `87

Page 36: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Keyframe Animation• Interpolate variables describing keyframes to

determine poses for character “in-between”

Lasseter `87

Page 37: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Keyframe Animation• Inbetweening:oLinear interpolation - usually not enough continuity

H&B Figure 16.16

Linear interpolation

Page 38: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Keyframe Animation• Inbetweening:oCubic spline interpolation - maybe good enough

»May not follow physical laws

Lasseter `87

Page 39: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Keyframe Animation• Inbetweening:oCubic spline interpolation - maybe good enough

»May not follow physical laws

Lasseter `87

Page 40: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Keyframe Animation• Inbetweening:oKinematics or dynamics

Rose et al. `96

Page 41: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Outline• Principles of animation

• Keyframe animation

• Articulated figures

Angel Plate 1

Page 42: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Articulated Figures• Character poses described by set of rigid bodies

connected by “joints”

Angel Figures 8.8 & 8.9

Base

Arm

Hand

Scene Graph

Page 43: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Articulated Figures

Rose et al. `96

• Well-suited for humanoid characters

Root

LHip

LKnee

LAnkle

RHip

RKnee

RAnkle

Chest

LCollar

LShld

LElbow

LWrist

RCollar

RShld

RElbow

RWrist

Neck

Head

Page 44: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Articulated Figures• InbetweeningoInterpolate angles, not positions, between keyframes

Watt & Watt Good arm Bad arm

Page 45: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Example: Walk Cycle• Articulated figure:

Watt & Watt

Page 46: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Example: Walk Cycle• Hip joint orientation:

Watt & Watt

Page 47: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Example: Walk Cycle• Knee joint orientation:

Watt & Watt

Page 48: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Example: Walk Cycle• Ankle joint orientation:

Watt & Watt

Page 49: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Example: Walk Cycle

https://www.youtube.com/watch?v=k86w0zlzY54

Page 50: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Outline• Principles of animation

• Keyframe animation

• Articulated figures

Angel Plate 1

Page 51: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Kinematics and Dynamics• KinematicsoConsiders only motionoDetermined by positions, velocities, accelerations

• DynamicsoConsiders underlying forcesoCompute motion from initial conditions and physics

Page 52: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Example: 2-Link Structure• Two links connected by rotational joints

Θ1

Θ2

X = (x,y)

l2

l1

(0,0)

“End-Effector”

Page 53: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Forward Kinematics• Animator specifies joint angles: Θ1 and Θ2

• Computer finds positions of end-effector: X

Θ1

Θ2

X = (x,y)

l2

l1

(0,0)

Page 54: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Forward Kinematics• Joint motions can be specified by spline curves

Θ1

Θ2

X = (x,y)

l2

l1

(0,0)

Θ2

Θ1

t

Page 55: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Forward Kinematics• Joint motions can be specified by initial conditions

and velocities

Θ1

Θ2

X = (x,y)

l2

l1

(0,0)

Page 56: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Example: 2-Link Structure• What if animator knows position of “end-effector”

Θ1

Θ2

X = (x,y)l2

l1

(0,0)

“End-Effector”

Page 57: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Inverse Kinematics• Animator specifies end-effector positions: X

• Computer finds joint angles: Θ1 and Θ2:

Θ1

Θ2

X = (x,y)l2

l1

(0,0)

Page 58: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Inverse Kinematics• End-effector postions can be specified by splines

Θ1

Θ2

X = (x,y)

l2

l1

(0,0)

y

x

t

Page 59: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Inverse Kinematics• Problem for more complex structuresoSystem of equations is usually under-definedoMultiple solutions

Θ1

Θ2

l2

l1

(0,0)

X = (x,y)

l3

Θ3

Three unknowns: Θ1, Θ2 , Θ3 Two equations: x, y

Page 60: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Inverse Kinematics• Solution for more complex structures:oFind best solution (e.g., minimize energy in motion)oNon-linear optimization

Θ1

Θ2

l2

l1

(0,0)

X = (x,y)

l3

Θ3

Page 61: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Summary of Kinematics• Forward kinematicsoSpecify conditions (joint angles)oCompute positions of end-effectors

• Inverse kinematicso“Goal-directed” motionoSpecify goal positions of end effectorsoCompute conditions required to achieve goals

Inverse kinematics provides easier specification for many animation tasks, but it is computationally more difficult

Page 62: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Overview• KinematicsoConsiders only motionoDetermined by positions, velocities, accelerations

• DynamicsoConsiders underlying forcesoCompute motion from initial conditions and physics

Page 63: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Dynamics• Simulation of physics insures realism of motion

Lasseter `87

Page 64: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Spacetime Constraints• Animator specifies constraints:oWhat the character’s physical structure is

»e.g., articulated figureoWhat the character has to do

»e.g., jump from here to there within time toWhat other physical structures are present

»e.g., floor to push off and landoHow the motion should be performed

»e.g., minimize energy

Page 65: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Spacetime Constraints• Computer finds the “best” physical motion satisfying

constraints

• Example: particle with jet propulsionox(t) is position of particle at time tof(t) is the directional force of jet propulsion at time toParticle’s equation of motion is:

oSuppose we want to move from a to b within t0 to t1 with minimum jet fuel:

Minimize subject to x(t0)=a and x(t1)=bWitkin & Kass `88

Page 66: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Spacetime Constraints• Discretize time steps:

Minimize subject to x0=a and x1=bWitkin & Kass `88

Page 67: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Spacetime Constraints• Solve with

iterative optimization methods

Witkin & Kass `88

Page 68: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Spacetime Constraints• Advantages:oFree animator from having to specify details of physically

realistic motion with spline curvesoEasy to vary motions due to new parameters

and/or new constraints

• Challenges:oSpecifying constraints and objective functionsoAvoiding local minima during optimization

Page 69: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Spacetime Constraints• Adapting motion:

Witkin & Kass `88

Heavier Base

Original Jump

Page 70: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Spacetime Constraints• Adapting motion:

Witkin & Kass `88

Hurdle

Page 71: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Spacetime Constraints• Adapting motion:

Witkin & Kass `88

Ski Jump

Page 72: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Dynamics• Other physical simulations:oRigid bodiesoSoft bodiesoClothoLiquidsoGasesoetc.

Hot Gases (Foster & Metaxas `97)

Cloth (Baraff & Witkin `98)

Page 73: Computer Animation€¦ · • Coin-operated “flip-book” animation • Picture cards attached to a drum • Popular at sea-side resorts, etc. Animation History • Animation

Summary• Principles of animation

• Keyframe animation

• Articulated figures