CS-184: Computer Graphics. Today

Similar documents
CS-184: Computer Graphics. Today. Lecture #5: 3D Transformations and Rotations. Wednesday, September 7, 11. Transformations in 3D Rotations

CS-184: Computer Graphics. Today. Lecture #5: 3D Transformations and Rotations. 05-3DTransformations.key - September 21, 2016

Rigid Body Dynamics 2. CSE169: Computer Animation Instructor: Steve Rotenberg UCSD, Winter 2018

MODULE 5a and 5b (Stewart, Sections 12.2, 12.3) INTRO: In MATH 1114 vectors were written either as rows (a1, a2,..., an) or as columns a 1 a. ...

Complex Eigenvalues. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Homework Set 3 Physics 319 Classical Mechanics

Geometry of the homogeneous and isotropic spaces

r cos, and y r sin with the origin of coordinate system located at

ENGI 4430 Non-Cartesian Coordinates Page xi Fy j Fzk from Cartesian coordinates z to another orthonormal coordinate system u, v, ˆ i ˆ ˆi

Waves and Polarization in General

Lecture 8 - Gauss s Law

Question Bank. Section A. is skew-hermitian matrix. is diagonalizable. (, ) , Evaluate (, ) 12 about = 1 and = Find, if

Topic 3: Spacetime Geometry and Clifford Algebras

CS 475 / CS 675 Computer Graphics

DonnishJournals

Graphs of Sine and Cosine Functions

Right-handed screw dislocation in an isotropic solid

, and the curve BC is symmetrical. Find also the horizontal force in x-direction on one side of the body. h C

15 Solving the Laplace equation by Fourier method

CMSC 425: Lecture 5 More on Geometry and Geometric Programming

Physics 181. Assignment 4

Vector d is a linear vector function of vector d when the following relationships hold:

1 Spherical multipole moments

J. N. R E DDY ENERGY PRINCIPLES AND VARIATIONAL METHODS APPLIED MECHANICS

Question 1: The dipole

As is natural, our Aerospace Structures will be described in a Euclidean three-dimensional space R 3.

Chapter 2: Basic Physics and Math Supplements

B. Spherical Wave Propagation

Transformations in Homogeneous Coordinates

1) Consider an object of a parabolic shape with rotational symmetry z

Green s Identities and Green s Functions

Physics 201 Lecture 18

AY 7A - Fall 2010 Section Worksheet 2 - Solutions Energy and Kepler s Law

Quantum theory of angular momentum

Double-angle & power-reduction identities. Elementary Functions. Double-angle & power-reduction identities. Double-angle & power-reduction identities

Your Comments. Conductors and Insulators with Gauss's law please...so basically everything!

7.2.1 Basic relations for Torsion of Circular Members

Nuclear models: Shell model

Introduction to Vectors and Frames

Chapter 1: Introduction to Polar Coordinates

Mechanics Physics 151

Nalanda Open University

Review. Electrostatic. Dr. Ray Kwok SJSU

Mobility of atoms and diffusion. Einstein relation.

e.g: If A = i 2 j + k then find A. A = Ax 2 + Ay 2 + Az 2 = ( 2) = 6

Relative motion. measurements by taking account of the motion of the. To apply Newton's laws we need measurements made

3D-Central Force Problems I

ECE 3318 Applied Electricity and Magnetism. Spring Prof. David R. Jackson ECE Dept. Notes 13

THE LAPLACE EQUATION. The Laplace (or potential) equation is the equation. u = 0. = 2 x 2. x y 2 in R 2

PHY2061 Enriched Physics 2 Lecture Notes. Gauss Law

F(r) = r f (r) 4.8. Central forces The most interesting problems in classical mechanics are about central forces.

is the instantaneous position vector of any grid point or fluid

Phys-272 Lecture 17. Motional Electromotive Force (emf) Induced Electric Fields Displacement Currents Maxwell s Equations

( ) into above PDE. ( ), wherec = 1

MAGNETIC FIELD AROUND TWO SEPARATED MAGNETIZING COILS

Physics 235 Chapter 5. Chapter 5 Gravitation

Physics 121 Hour Exam #5 Solution

Physics 2020, Spring 2005 Lab 5 page 1 of 8. Lab 5. Magnetism

PHYS 1114, Lecture 21, March 6 Contents:

I. CONSTRUCTION OF THE GREEN S FUNCTION

Dynamics of Rotational Motion

Chapter 4. Newton s Laws of Motion

On the radial derivative of the delta distribution

Quantum Fourier Transform

AST 121S: The origin and evolution of the Universe. Introduction to Mathematical Handout 1

2 x 8 2 x 2 SKILLS Determine whether the given value is a solution of the. equation. (a) x 2 (b) x 4. (a) x 2 (b) x 4 (a) x 4 (b) x 8

f(k) e p 2 (k) e iax 2 (k a) r 2 e a x a a 2 + k 2 e a2 x 1 2 H(x) ik p (k) 4 r 3 cos Y 2 = 4

2 Governing Equations

Conservative Averaging Method and its Application for One Heat Conduction Problem

Lecture 7: Angular Momentum, Hydrogen Atom

, the tangent line is an approximation of the curve (and easier to deal with than the curve).

Your Comments. Do we still get the 80% back on homework? It doesn't seem to be showing that. Also, this is really starting to make sense to me!

SIO 229 Gravity and Geomagnetism. Lecture 6. J 2 for Earth. J 2 in the solar system. A first look at the geoid.

Physics 506 Winter 2006 Homework Assignment #9 Solutions

ω = θ θ o = θ θ = s r v = rω

Numerical Integration

Physics 202, Lecture 2

(Sample 3) Exam 1 - Physics Patel SPRING 1998 FORM CODE - A (solution key at end of exam)

CALCULUS II Vectors. Paul Dawkins

Objects usually are charged up through the transfer of electrons from one object to the other.

F 12. = G m m 1 2 F 21 = F 12. = G m 1m 2. Review. Physics 201, Lecture 22. Newton s Law Of Universal Gravitation

Stress, Cauchy s equation and the Navier-Stokes equations

(read nabla or del) is defined by, k. (9.7.1*)

Information Filtering and Retrieval lecture SS 2007

Qualifying Examination Electricity and Magnetism Solutions January 12, 2006

Linear Algebra Math 221

Rotational Motion. Lecture 6. Chapter 4. Physics I. Course website:

Force and Work: Reminder

Appendix A. Appendices. A.1 ɛ ijk and cross products. Vector Operations: δ ij and ɛ ijk

Cartesian Control. Analytical inverse kinematics can be difficult to derive Inverse kinematics are not as well suited for small differential motions

Physics 111 Lecture 5 (Walker: 3.3-6) Vectors & Vector Math Motion Vectors Sept. 11, 2009

Math 124B February 02, 2012

A matrix method based on the Fibonacci polynomials to the generalized pantograph equations with functional arguments

Math Section 4.2 Radians, Arc Length, and Area of a Sector

Electrostatics (Electric Charges and Field) #2 2010

ME 210 Applied Mathematics for Mechanical Engineers

Math 209 Assignment 9 Solutions

Exceptional regular singular points of second-order ODEs. 1. Solving second-order ODEs

Quaternion Based Inverse Kinematics for Industrial Robot Manipulators with Euler Wrist

B da = 0. Q E da = ε. E da = E dv

Transcription:

CS-184: Compute Gaphics Lectue #6: 3D Tansfomations and Rotations Pof. James O Bien Univesity of Califonia, Bekeley V2006-F-06-1.0 Today Tansfomations in 3D Rotations Matices Eule angles Eponential maps Quatenions 2

3D Tansfomations Geneally, the etension fom 2D to 3D is staightfowad Vectos get longe by one Matices get eta column and ow SVD still woks the same way Scale, Tanslation, and Shea all basically the same Rotations get inteesting 3 Tanslations à = 1 0 t 0 1 t y 0 0 1 1 0 0 t à = 0 1 0 t y 0 0 1 t z 0 0 0 1 Fo 2D Fo 3D 4

Scales à = s 0 0 0 s y 0 0 0 1 s 0 0 0 à = 0 s y 0 0 0 0 s z 0 0 0 0 1 Fo 2D Fo 3D (Ais-aligned) 5 Sheas à = 1 h y 0 h y 1 0 0 0 1 1 h y h z 0 à = h y 1 h yz 0 h z h zy 1 0 0 0 0 1 Fo 2D Fo 3D (Ais-aligned) 6

à = Sheas 1 h y h z 0 h y 1 h yz 0 h z h zy 1 0 0 0 0 1 Sheas y into 7 Rotations 3D Rotations fundamentally moe comple than in 2D 2D: amount of otation 3D: amount and ais of otation -vs- 2D 3D 8

Rotations Rotations still othonomal Det(R) = 1 1 Peseve lengths and distance to oigin 3D otations DO NOT COMMUTE Right-hand ule Unique matices 9 Ais-aligned 3D Rotations 2D otations implicitly otate about a thid out of plane ais 10

Ais-aligned 3D Rotations 2D otations implicitly otate about a thid out of plane ais [ ] cos() sin() R = sin() cos() cos() sin() 0 R = sin() cos() 0 0 0 1 Note: looks same as R 11 Ais-aligned 3D Rotations R = 1 0 0 0 cos() sin() ˆ 0 sin() cos() R = cos() 0 sin() 0 1 0 ŷ sin() 0 cos() cos() sin() 0 R = sin() cos() 0 ẑ 0 0 1 ŷ ẑ ˆ 12

Ais-aligned 3D Rotations R = 1 0 0 0 cos() sin() ˆ 0 sin() cos() R = cos() 0 sin() 0 1 0 ŷ sin() 0 cos() cos() sin() 0 R = sin() cos() 0 ẑ 0 0 1 Z is in you face ŷ ẑ ˆ 12 Ais-aligned 3D Rotations R = 1 0 0 0 cos() sin() ˆ 0 sin() cos() R = cos() 0 sin() 0 1 0 ŷ sin() 0 cos() cos() sin() 0 R = sin() cos() 0 ẑ 0 0 1 Also ight handed Zup ẑ ŷ ˆ 13

Ais-aligned 3D Rotations Also known as diection-cosine matices R = 1 0 0 0 cos() sin() R = cos() 0 sin() 0 1 0 ˆ ŷ 0 sin() cos() sin() 0 cos() cos() sin() 0 R = sin() cos() 0 ẑ 0 0 1 14 Abitay Rotations Can be built fom ais-aligned matices: R = Rẑ Rŷ R ˆ Result due to Eule... hence called Eule Angles Easy to stoe in vecto R = ot(,y,z) But NOT a vecto. 15

Abitay Rotations R = Rẑ Rŷ R ˆ R ˆ Rŷ Rẑ R 16 Abitay Rotations Allows tumbling Eule angles ae non-unique Gimbal-lock Moving -vs- fied aes Revese of each othe 17

Eponential Maps Diect epesentation of abitay otation AKA: ais-angle, angula displacement vecto Rotate Encode = degees about some ais by length of vecto ˆ 18 Given vecto Eponential Maps, how to get mati Method fom tet: 1. otate about ais to put into the -y plane 2. otate about z ais align with the ais 3. otate degees about ais 4. undo #2 and then #1 5. composite togethe R 19

Eponential Maps Vecto epessing a point has two pats does not change otates like a 2D point 20 Eponential Maps = ˆ = ˆ (ˆ ) = + sin() + cos() sin() cos() 21

Eponential Maps Rodiguez Fomula = ˆ(ˆ ) +sin()(ˆ ) cos()(ˆ (ˆ )) Actually a mino vaiation... 22 Eponential Maps Rodiguez Fomula = ˆ(ˆ ) +sin()(ˆ ) cos()(ˆ (ˆ )) Linea in Actually a mino vaiation... 22

Eponential Maps Building the mati = ((ˆˆ t ) + sin()(ˆ ) cos()(ˆ )(ˆ )) (ˆ ) = 0 ˆ z ˆ y ˆ z 0 ˆ ˆ y ˆ 0 Antisymmetic mati (a )b = a b Easy to veify by epansion 23 Eponential Maps Allows tumbling No gimbal-lock Oientations ae space within -adius ball Nealy unique epesentation Singulaities on shells at 2 Nice fo intepolation 24

Eponential Maps Why eponential? Recall seies epansion of e e = 1 + 1 + 2 2 + 3 3 + 25 Eponential Maps = Why eponential? Recall seies epansion of e Eule: what happens if you put in i fo e i = 1 + i 1 + 2 2 + i3 3 (1 + 2 2 + 4 4 + ) + i = cos() + isin() + 4 4 + ( 1 + 3 3 + ) 26

Why eponential? e (ˆ ) = I + (ˆ ) 1 Eponential Maps + (ˆ )2 2 2 + (ˆ )3 3 3 + (ˆ )4 4 4 + But notice that: (ˆ ) 3 = (ˆ ) e (ˆ ) = I + (ˆ ) 1 + (ˆ )2 2 2 + (ˆ )3 3 + (ˆ )2 4 4 + 27 Eponential Maps e (ˆ ) = I + (ˆ ) 1 + (ˆ )2 2 2 + (ˆ )3 3 + (ˆ )2 4 4 + ( ) ) e (ˆ ) = (ˆ ) 1 3 3 + + I + (ˆ ) (+ 2 2 2 4 4 + e (ˆ ) = (ˆ )sin() + I + (ˆ ) 2 (1 cos()) 28

Quatenions Moe popula than eponential maps Natual etension of e i = cos() + isin() Due to Hamilton (1843) Inteesting histoy Involves hemaphoditic monstes 29 Quatenions Ube-Comple Numbes q = (z 1,z 2,z 3,s) = (z,s) q = iz 1 + jz 2 + kz 3 + s i 2 = j 2 = k 2 = 1 i j = k ji = k jk = i k j = i ki = j ik = j 30

Quatenions Multiplication natual consequence of defn. q p = (z q s p + z p s q + z p z q, s p s q z p z q ) Conjugate q = ( z,s) Magnitude q 2 = z z + s 2 = q q 31 Quatenions Vectos as quatenions v = (v,0) Rotations as quatenions = (ˆsin 2,cos 2 ) Rotating a vecto = Composing otations = 1 2 Compae to Ep. Map 32

Quatenions No tumbling No gimbal-lock Oientations ae double unique Suface of a 3-sphee in 4D = 1 Nice fo intepolation 33 Rotation Matices Eigen system One eal eigenvalue Real ais is ais of otation Imaginay values ae 2D otation as comple numbe Logaithmic fomula (ˆ ) = ln(r) = 2sin (R RT ) = cos 1 ( T(R) 1 2 ) Simila fomulae as fo eponential... 34

Rotation Matices Conside: & $ RI = $ $ % y z y yy zy z yz zz #& 1 $ $ 0 " $ % 0 0 1 0 0# 0 1 " Columns ae coodinate aes afte tansfomation (tue fo geneal matices) Rows ae oiginal aes in oiginal system (not tue fo geneal matices) 35 Note: Rotation stuff in the book is a bit weak... luckily you have these nice slides 36