ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid...

66
C O M P U T E R G R A P H I C S Computer Animation Computer Animation Computer Animation Computer Animation Guoying Zhao 1 / 66

Transcript of ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid...

Page 1: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Computer AnimationComputer AnimationComputer AnimationComputer Animation

Guoying Zhao 1 / 66Guoying Zhao 1 / 66

Page 2: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C S

Basic Elements of Computer GraphicsBasic Elements of Computer Graphics

• Modeling• Modeling– construct the 3D model of the scene

• RenderingR d th 3D d l t th l f– Render the 3D model, compute the color of each pixel. The color is related with lighting, environment, object material and g g, , jso on.

• Animation

Guoying Zhao 2 / 66

Page 3: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Computer Animation

• Animation: is the rapid display of a• Animation: is the rapid display of a sequence of images of 2-D or 3-D artwork or model positions in order toartwork or model positions in order to create an illusion of movement.

• Computer animation: pGraphics & imageprogramming or animation softwarea series of moving imagescurrent frame is the modification based on last frame

Guoying Zhao 3 / 66Guoying Zhao 3 / 66

Page 4: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C S

Rapid display of a sequence of images

“Visual staying phenomenon” to h i i ff

Guoying Zhao 4 / 6615:20 Computer graphics and Application 2009 S. 4

get the animation effect.

Page 5: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Animation of bird flying

Guoying Zhao 5 / 66Guoying Zhao 5 / 66

Page 6: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

• frame: a static image in animation seq• frame: a static image in animation seq

• Usually, a movie is played with 24 frames per secondframes per second.

Guoying Zhao 6 / 66Guoying Zhao 6 / 66

Page 7: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Fundamental principles of traditional animation

• Director divides movie script into many breakdowns• Director divides movie script into many breakdowns• Senior animators decide the characters’ sculpts for

breakdowns and draw the key framesbreakdowns and draw the key frames• Assistant animators draw the transition images

between key frames and do the color filling and y gsynthesis

• In 1962, K.Lnowlton from Bel Lab tried to use computer techniques to reduce the work of assitant animators.

Guoying Zhao 7 / 66Guoying Zhao 7 / 66

Page 8: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Animation

• 2D 3D• 2D 3D– 2D: Mickey and Donald; Lion King;

Mulan…– 3D: Toy Story; Finding Nemo; Shrek; Final

Fantasy– Combination of 2D & 3D: The Olympic Co b at o o & 3 e O y p c

Adventures of Fuwa; Spirited Away…

Guoying Zhao 8 / 66Guoying Zhao 8 / 66

Page 9: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Softwares

• commercial softwares:– Alias / Wavefront: Alias/Wavefront incAlias / Wavefront: Alias/Wavefront inc.– Maya: Alias/Wavefront inc.

S fti S fti i– Softimage: Softimage inc.– 3ds Max: Autodesk inc.– RenderMan: Pixar inc.–……

Guoying Zhao 9 / 66Guoying Zhao 9 / 66

Page 10: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Procedures of computer animation

• ① Ideas(Scripts)① Ideas(Scripts)• ② Preprocessing• ③ Scenes and sculpts③ Scenes and sculpts• ④ Materials and light sources• ⑤ Animation⑤ Animation• ⑥ Rendering (movements of images) • ⑦ Playing animation⑦ Playing animation• ⑧ Post processing• ⑨ Animation recording⑨ Animation recording• ⑩ Dubbing (Background music and actors

lines)

Guoying Zhao 10 / 66Guoying Zhao 10 / 66

)

Page 11: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Key steps

M d liM d liModelingModeling

AnimationAnimation

RenderingRenderingRenderingRendering

Guoying Zhao 11 / 66Guoying Zhao 11 / 66

Page 12: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Techniques of computer animation

• Key frame• Key-frame• Procedure animation• Physics-based animation

Skeletal Animation• Skeletal Animation• Morphing and deformationp g

Guoying Zhao 12 / 66Guoying Zhao 12 / 66

Page 13: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Key-frame

• First draw the important images (frames).• Remaining frames are filled with• Remaining frames are filled with

inbetweens.

Interpolation: positions or other parameters

Guoying Zhao 13 / 66Guoying Zhao 13 / 66

Page 14: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Key frame

• Any parameters• Key parameter• Key parameter

– Determine the parameters which should be controledS t k t– Set n key parameters

– Determine the parametric interpolation curvesDi t li i th t t th t f– Discrete sampling in the curve to get the parameter for each frame

Guoying Zhao 14 / 66Guoying Zhao 14 / 66

Page 15: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Interpolation of camera positions to get browsing path

Guoying Zhao 15 / 66Guoying Zhao 15 / 66

Page 16: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Key frame

• linear interpolation• linear interpolation

If t0 = 0, t1 = 1; then x(t) = x0(1-t) + x1t

Guoying Zhao 16 / 66Guoying Zhao 16 / 66

Page 17: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

• Polynomial interpolation– Use n+1 key points for interpolation to get a nUse n+1 key points for interpolation to get a n

degree polynomial interpolation curve

Guoying Zhao 17 / 66Guoying Zhao 17 / 66

Page 18: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

• spline interpolation• spline interpolation

If there are many key points, the degree of generated polynomial interpolation curve would be very high, causing

th ff t S li k l d dGuoying Zhao 18 / 66Guoying Zhao 18 / 66

non-smooth effects. Spline curve can keep low degrees and smoother effects.

Page 19: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Techniques of computer animation

• Key frame• Key-frame• Procedure animation• Physics-based animation

Skeletal Animation• Skeletal Animation• Morphing and deformationp g

Guoying Zhao 19 / 66Guoying Zhao 19 / 66

Page 20: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Procedure animation

• Movement or deformation of objects can• Movement or deformation of objects can be described by a procedure. E.g. fl iflame, waving water.– Particle systemy– Massive animation

• Some animals e g birds fishes moves inSome animals, e.g. birds, fishes, moves in massive group. Randomicity and regularity.

– Waves animationWaves animation– ……

Guoying Zhao 20 / 66Guoying Zhao 20 / 66

Page 21: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Particle system(Smoke)

Guoying Zhao 21 / 66Guoying Zhao 21 / 66

Page 22: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Particle system (gushing water)

Guoying Zhao 22 / 66Guoying Zhao 22 / 66

Page 23: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Massive animation

Flocking.mov

An animation that was shown at the SIGGRAPH 97 course on Artificial Life

Guoying Zhao 23 / 66Guoying Zhao 23 / 66

SIGGRAPH 97 course on Artificial Life.

Page 24: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Massive animation

Guoying Zhao 24 / 66Guoying Zhao 24 / 66

Page 25: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Massive animation

Guoying Zhao 25 / 66Guoying Zhao 25 / 66

Page 26: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Waves animation

S th i d d l th b i f Si• Synthesized wave model on the basis of Sine wave or Fourier

“Real-Time Synthesis and Rendering of Ocean Water”

Guoying Zhao 26 / 66Guoying Zhao 26 / 66

ea e Sy t es s a d e de g o Ocea WateJason L. Mitchell 2005

Page 27: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

“Real-Time Synthesis and Rendering of Ocean Water”

Guoying Zhao 27 / 66Guoying Zhao 27 / 66

ea e Sy t es s a d e de g o Ocea WateJason L. Mitchell 2005

Page 28: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Techniques of computer animation

• Key frame• Key-frame• Procedure animation• Physics-based animation

Skeletal Animation• Skeletal Animation• Morphing and deformationp g

Guoying Zhao 28 / 66Guoying Zhao 28 / 66

Page 29: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Physics-based animation

• Take into account the properties of• Take into account the properties of objects in real world: quality, elasticity, f i i ili h ki i i ld hfriction, utilize the kinetics to yield the movement.

Guoying Zhao 29 / 66Guoying Zhao 29 / 66

Page 30: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

• Simulation of rigid body movementSimulation of rigid body movement– Collision detection– Moving response after collision

• Deformation of elastic objectN i id b d l th k bb– Non-rigid body: cloth, snake, rubber

• Fluid motion• Fluid motion

• Other kinetics modelsOther kinetics models– Simulation of glasses and chinawares fracturing– ……

Guoying Zhao 30 / 66Guoying Zhao 30 / 66

Page 31: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Rigid body (collision)

Guoying Zhao 31 / 66Guoying Zhao 31 / 66

Page 32: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Rigid body animationRigid body animation

http://graphics.stanford.edu/~fedkiw/

Guoying Zhao 32 / 66Guoying Zhao 32 / 66

Ron Fedkiw

Page 33: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Elastic objects animation (Spring)

Guoying Zhao 33 / 66Guoying Zhao 33 / 66

Page 34: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C S

Elastic objects animation (Cloth)

Cloth can be modeled as “mass-spring model”

Guoying Zhao 34 / 66

Page 35: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Cloth animation

h // hi f d d / f dki / R F dkiGuoying Zhao 35 / 66Guoying Zhao 35 / 66

http://graphics.stanford.edu/~fedkiw/ , Ron Fedkiw

Page 36: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Elastic object animation

Guoying Zhao 36 / 66Guoying Zhao 36 / 66

Page 37: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Elastic objects (Snake and Snake robots)

“Eric - The Dynamic Worm”Eric - The Dynamic Worm ,by Gavin Miller in SIGGRAPH 88 Film & Video Show

Guoying Zhao 37 / 66Guoying Zhao 37 / 66

Eric.mov

Page 38: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C S

Fluid simulation (Smoke)

“Real-Time 3D Fluid Simulation on GPU with Complex

Guoying Zhao 38 / 66

Obstacles”. Liu Youquan, Pacific Graphics 2004

Page 39: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Fluid simulation (liquid)

http://graphics stanford edu/~fedkiw/

Guoying Zhao 39 / 66Guoying Zhao 39 / 66

http://graphics.stanford.edu/ fedkiw/Ron Fedkiw

Page 40: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Fluid simulation

http://www.ageia.comPhysical computation in PPU

Guoying Zhao 40 / 66Guoying Zhao 40 / 66

Page 41: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Viscoelastic object animation

“A Method for Animating Viscoelastic Fluids”Goktekin Siggraph 2004

Guoying Zhao 41 / 66Guoying Zhao 41 / 66

Goktekin, Siggraph 2004http://graphics.eecs.berkeley.edu/site_root/papers/Goktekin-AMF-2004-08/

Page 42: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Fracturing rigid body objects

http://graphics.stanford.edu/~fedkiw/Ron Fedkiw

wall1.avi

Guoying Zhao 42 / 66Guoying Zhao 42 / 66

Ron Fedkiw

Page 43: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Fracturing rigid body objectsFracturing rigid body objects

http://graphics.stanford.edu/~fedkiw/Ron Fedkiw

Guoying Zhao 43 / 66Guoying Zhao 43 / 66

Ron FedkiwArmadillo_fracture.avi

Page 44: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Techniques of computer animation

• Key frame• Key-frame• Procedure animation• Physics-based animation

Skeletal Animation• Skeletal Animation• Morphing and deformationp g

Guoying Zhao 44 / 66Guoying Zhao 44 / 66

Page 45: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Skeletal Animation

• Skeletal Animation: to simulate the movements of skeleton objects

Guoying Zhao 45 / 66Guoying Zhao 45 / 66

Page 46: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C S

• Skeleton: looks simple, but the computation ofSkeleton: looks simple, but the computation of movement is complicated.

Guoying Zhao 46 / 66

Page 47: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C S

• Skeleton: articulated structure; a series of rigid body and jointsbody and joints

• Root jointRoot joint

• Degree of freedom: grequired independent variables to determine a specific structurespecific structure.

Guoying Zhao 47 / 66

Page 48: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Driving methods

• Kinematics model• Kinematics model– Movement of object is independent to the

forces which generate movement. Parameters include position, velocity and acceleration.

• Kinetic model– Movement of object is controlled by the

forces on it and relative movementforces on it, and relative movement parameters are determined by kineticequation

Guoying Zhao 48 / 66Guoying Zhao 48 / 66

equation.

Page 49: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Kinematics model

• Two solving methods• Two solving methods:– Forward Kinematics

• Determine the position of joints and end points according to given state vectors.

– Inverse Kinematics• Position of end points are set by users and the

state vectors are solved automatically, then get the position of joints. (Goal Driving)

Guoying Zhao 49 / 66Guoying Zhao 49 / 66

Page 50: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Forward Kinematics

S l i i i l d i t iti l b t f• Solving is simple and intuitional, but for users, it is complicated. Too many DOF.

Using motion captures device to get movement parameters.

Guoying Zhao 50 / 66Guoying Zhao 50 / 66

Page 51: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C S

Inverse Kinematics

• User interaction is simple• Solving is complicated

"Selectively Damped Least Squares for Inverse Kinematics." Samuel R.

Guoying Zhao 51 / 66

Buss and Jin-Su Kim. In Journal of Graphics Tools, 2005

Page 52: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Kinetic model

• Movement of object is controlled by the forces• Movement of object is controlled by the forces on it, and relative movement parameters are determined by kinetic equationdetermined by kinetic equation.

Guoying Zhao 52 / 66Guoying Zhao 52 / 66

Page 53: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Techniques of computer animation

• Key frame• Key-frame• Procedure animation• Physics-based animation

Skeletal Animation• Skeletal Animation• Morphing and deformationp g

Guoying Zhao 53 / 66Guoying Zhao 53 / 66

Page 54: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Morphing and deformation

• Morphing vs deformation• Morphing vs. deformation– Morphing: Giving a source object S and a

destination object D, to smoothly transform S to D. In the smooth transition, middle f f Sframes have the characteristics of both S and D.

– Deformation: to deform a single object and transform it to the required shape.

Guoying Zhao 54 / 66Guoying Zhao 54 / 66

Page 55: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

2D morphing

Guoying Zhao 55 / 66Guoying Zhao 55 / 66

Page 56: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

2D morphing

– (1) Build the relationship between features of IS and ID:C0: IS ID; C1: ID IS;

– (2) P : points in I P : points in I then warping functions W and– (2) P0: points in IS P1: points in ID, then warping functions W0 and W1 are defined as:W0(p0, t) = (1 - t)P0 + tC0(P0);W (p t) = (1 t) C (P ) + tP ; t∈ [0 1]W1(p1, t) = (1 - t) C1(P1) + tP1 ; t∈ [0, 1]

– (3) Get two images at time point t. The middle frames can be generated by interpolating the two images.

Guoying Zhao 56 / 66Guoying Zhao 56 / 66

Page 57: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

2D morphing

Guoying Zhao 57 / 66Guoying Zhao 57 / 66

Page 58: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

2D morphing

S i i hiSource

Source image with similar shape to destination

warping

destination

Destination image

Color interpolation

warpingDestination Destination image

with similar shape to source

p g

Guoying Zhao 58 / 66Guoying Zhao 58 / 66

Page 59: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

2D morphing

Guoying Zhao 59 / 66Guoying Zhao 59 / 66

Page 60: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C S

3D morphing

• Corresponding of features or vertices between source and destination objects.

“Feature-Based Volume Metamorphosis”Apostolos Lerios, Siggraph 1995

Guoying Zhao 60 / 66

p , gg p

Page 61: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Deformation

• Twisting bending tapering• Twisting, bending, taperingoperators(Barr84)

• Free-form deformation• Free-form deformation– Does not control object, but put object into

Wh d f i thia space. When deforming this space, object is deformed accordingly.

– T.W. Sederberg, S.R.Parry. Free-Form Deformation of Solid Geometric Models.

Guoying Zhao 61 / 66Guoying Zhao 61 / 66

SIGGRAPH 1986 Vol. 20. No. 4.

Page 62: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

FFD

Guoying Zhao 62 / 66Guoying Zhao 62 / 66

Page 63: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Deformation

• Other methods• Other methods– Axial deformation– Constrain-based deformation– metaballmetaball

Guoying Zhao 63 / 66Guoying Zhao 63 / 66

Page 64: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Constrain-based deformation

P iti t ii h i Position constrainWithout constrain

Guoying Zhao 64 / 66Guoying Zhao 64 / 66

Page 65: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Metaball

Guoying Zhao 65 / 66Guoying Zhao 65 / 66

Page 66: ComputerAnimationComputer Animation - University of Oulujiechen/Course/L14/Animation.pdf · Rapid display of a sequence of imagesC O M P U T E R G R A P H I C S “Visual staying

C O M P U T E R G R A P H I C SC O M P U T E R G R A P H I C S

Computer Animation

• Animation• Animation• Computer Animation• Techniques

Key-frameKey frameProcedure animationPhysics-based animationSkeletal AnimationMorphing and deformation

Guoying Zhao 66 / 66Guoying Zhao 66 / 66