Docsity

Computer Animation - Computer Graphics - Lecture Slides, Slides of Computer Science

Partial preview of the text

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

Computer Animation II Orientationinterpolation Dynamics

Lecture 13 6.837 Fall 2002

Review from Thursday

Interpolation

„

Splines

Articulated bodies

„

Forward kinematics

„

Inverse Kinematics

„

Optimization

„

Gradient descent

„

Following the steepest slope

„

Lagrangian multipliers

„

Turn optimization with constraints into no constraints

Lecture 11 Slide 2 6.837 Fall 2003

Grid acceleration

Debug all these steps:

„

Sphere rasterization

„

Ray initialization

„

Marching

„

Object insertion

„

Acceleration

Lecture 11 Slide 4 6.837 Fall 2003

Final project

First brainstorming session on Thursday Groups of three Proposal due Monday 10/

„

A couple of pages

„

Goals

„

Progression

Appointment with staff

Lecture 11 Slide 5 6.837 Fall 2003

Computer-Assisted Animation

Physically Based Animation

„

Assign physical properties to objects

(masses, forces, inertial properties) „

Simulate physics by solving equations

„

Realistic but difficult to control

Motion Capture

„

Captures style, subtle nuances and realism

„

You must observe someone do something

ACM© 1988 “Spacetime Constraints” Lecture 11 Slide 7 6.837 Fall 2003

Overview

Interpolation of rotations, quaternions

„

Euler angles

„

Quaternions

Dynamics

„

Particles

„

Rigid body

„

Deformable objects

Lecture 11 Slide 8 6.837 Fall 2003

Flawed Solution

Interpolate each entry independentlyExample: M

is identity and M

is 90

o

around x-axis

Is the result a rotation matrix?

1 0 0 1 0 0 1 0 0 Interpolate ( 0 1 0 , 0 0 1 ) 0

0 0 1 0 1 0 0

⎡ ⎤ ⎡ ⎤ ⎡ ⎤ ⎢ ⎥ ⎢ ⎥ ⎢ ⎥ = ⎢ ⎥ ⎢ ⎥ ⎢ ⎥ ⎢ ⎥ ⎢ ⎥ ⎢ ⎥ − − ⎣ ⎦ ⎣ ⎦ ⎣ ⎦

NO:For example, RR

T

does not equal identity.

This interpolation does not preserve rigidity(angles and lengths)

Lecture 11 Slide 10 6.837 Fall 2003 Docsity.com

3D rotations

How many degrees of freedom for 3D orientations? 3 degrees of freedom: e.g. direction of rotation and angle Or 3 Euler angles

Lecture 11 Slide 11 6.837 Fall 2003

Interpolating Euler Angles

Natural orientation representation

3 angles for 3 degrees of freedom

Unnatural interpolation: A rotation of 90

o

first around Z and then around Y

o

around (1, 1, 1).

But 30

o

around Z then Y

differs from 40

o

around (1, 1, 1).

Lecture 11 Slide 13 6.837 Fall 2003

a

b

c

a

c

b

a

b

c

a

b

c

c

b

a

a

b

c

a

b

c

a

b

c

Docsity.com

Gimbal lock

Gimbal lock:

two or more axis align resulting

in a loss of

rotation degrees of freedom.

http://www.fho-emden.de/~hoffmann/gimbal09082002.pdf Lecture 11 Slide 14 6.837 Fall 2003 Courtesy of Gernot Hoffmann. Used with permission.

Euler angles in the real world

Apollo inertial measurement unit To prevent lock, they had to add a fourth Gimbal!

Lecture 11 Slide 16 6.837 Fall 2003 http://www.hq.nasa.gov/office/pao/History/alsj/gimbals.html

Recap: Euler angles

3 angles along 3 axis Poor interpolation, lock But used in flight simulation, etc. because natural

http://www.fho-emden.de/~hoffmann/gimbal09082002.pdf Lecture 11 Slide 17 6.837 Fall 2003 Courtesy of Gernot Hoffmann. Used with permission.

Solution: Quaternion Interpolation

Interpolate orientation on the unit sphere By analogy: 1-, 2-, 3-DOF rotations as constrained points on 1,2, 3-spheres

Lecture 11 Slide 19 6.837 Fall 2003

1D sphere and complex plane

Interpolate orientation in 2D 1 angle

„

But messy because modulo 2

Use interpolation in (complex) 2D plane Orientation = complex argument of the number

Lecture 11 Slide 20 6.837 Fall 2003

0

1