Rigid Body Transforms-3D. J.C. Dill transforms3d 27Jan99

Similar documents
( ) ( ) ( ) ( ) TNM046: Datorgrafik. Transformations. Linear Algebra. Linear Algebra. Sasan Gooran VT Transposition. Scalar (dot) product:

Introduction to 3D Game Programming with DirectX 9.0c: A Shader Approach

Mathematics 309 Conic sections and their applicationsn. Chapter 2. Quadric figures. ai,j x i x j + b i x i + c =0. 1. Coordinate changes

Physically Based Rendering ( ) Geometry and Transformations

ES.1803 Topic 16 Notes Jeremy Orloff

Engineering Mathematics I

CS 335 Graphics and Multimedia. 2D Graphics Primitives and Transformation

2D Geometric Transformations. (Chapter 5 in FVD)

Two conventions for coordinate systems. Left-Hand vs Right-Hand. x z. Which is which?

CS 4300 Computer Graphics. Prof. Harriet Fell Fall 2011 Lecture 11 September 29, 2011

Linear and affine transformations

VECTORS IN THREE DIMENSIONS

CS-184: Computer Graphics. Today

Linear and Angular Velocities 2/4. Instructor: Jacob Rosen Advanced Robotic - MAE 263D - Department of Mechanical & Aerospace Engineering - UCLA

CS 354R: Computer Game Technology

1 HOMOGENEOUS TRANSFORMATIONS

Affine transformations. Brian Curless CSE 557 Fall 2014

Transformations. Chapter D Transformations Translation

CS 378: Computer Game Technology

Some linear transformations on R 2 Math 130 Linear Algebra D Joyce, Fall 2013

MATRIX TRANSFORMATIONS

Identifying second degree equations

Eigenvectors and Eigenvalues 1

Kinematics. Félix Monasterio-Huelin, Álvaro Gutiérrez & Blanca Larraga. September 5, Contents 1. List of Figures 1.

Affine transformations

The notes cover linear operators and discuss linear independence of functions (Boas ).

Analytic Geometry in Three Dimensions

STATICS. Equivalent Systems of Forces. Vector Mechanics for Engineers: Statics VECTOR MECHANICS FOR ENGINEERS: Contents & Objectives.

Simultaneous Orthogonal Rotations Angle

Vector and Affine Math

Computer Graphics: 2D Transformations. Course Website:

5. Nonholonomic constraint Mechanics of Manipulation

Coordinates for Projective Planes

KINEMATIC RELATIONS IN DEFORMATION OF SOLIDS

Reading. 4. Affine transformations. Required: Watt, Section 1.1. Further reading:

9.2. Cartesian Components of Vectors. Introduction. Prerequisites. Learning Outcomes

Mechanics Physics 151

Geometry review, part I

Review of Linear Algebra

Worksheet #1. A little review.

8 Properties of Lamina

STUDY KNOWHOW PROGRAM STUDY AND LEARNING CENTRE. Functions & Graphs

And similarly in the other directions, so the overall result is expressed compactly as,

we must pay attention to the role of the coordinate system w.r.t. which we perform a tform

Graphics Example: Type Setting

Answer Key for Exam #2

Lecture 27: More on Rotational Kinematics

Pure Further Mathematics 2. Revision Notes

In this chapter a student has to learn the Concept of adjoint of a matrix. Inverse of a matrix. Rank of a matrix and methods finding these.

A Tutorial on Euler Angles and Quaternions

4 The Cartesian Coordinate System- Pictures of Equations

j=1 u 1jv 1j. 1/ 2 Lemma 1. An orthogonal set of vectors must be linearly independent.

we must pay attention to the role of the coordinate system w.r.t. which we perform a tform

3D Coordinate Transformations. Tuesday September 8 th 2015

Affine transformations

Second-Order Linear Differential Equations C 2

MATH Line integrals III Fall The fundamental theorem of line integrals. In general C

Linear Algebra & Geometry why is linear algebra useful in computer vision?

UNCORRECTED SAMPLE PAGES. 3Quadratics. Chapter 3. Objectives

Answer Key for Exam #2

Today. CS-184: Computer Graphics. Introduction. Some Examples. 2D Transformations

LESSON 35: EIGENVALUES AND EIGENVECTORS APRIL 21, (1) We might also write v as v. Both notations refer to a vector.

Announcements. Topics: Homework: - section 12.4 (cross/vector product) - section 12.5 (equations of lines and planes)

6.4 graphs OF logarithmic FUnCTIOnS

Chapter 2: Vector Geometry

15. Eigenvalues, Eigenvectors

MMJ1153 COMPUTATIONAL METHOD IN SOLID MECHANICS PRELIMINARIES TO FEM

Fixed Point Theorem and Sequences in One or Two Dimensions

x y plane is the plane in which the stresses act, yy xy xy Figure 3.5.1: non-zero stress components acting in the x y plane

9.1 VECTORS. A Geometric View of Vectors LEARNING OBJECTIVES. = a, b

Chapter 2: Numeric, Cell, and Structure Arrays

On Range and Reflecting Functions About the Line y = mx

9.1 VECTORS. A Geometric View of Vectors LEARNING OBJECTIVES. = a, b

Linear Algebra V = T = ( 4 3 ).

Demonstrate solution methods for systems of linear equations. Show that a system of equations can be represented in matrix-vector form.

2018 Fall 2210Q Section 013 Midterm Exam I Solution

Vectors in Two Dimensions

Cumulative Review of Vectors

Linear Algebra & Geometry why is linear algebra useful in computer vision?

The Coordinate Plane and Linear Equations Algebra 1

Vector Fields. Field (II) Field (V)

Vector Calculus Review

Get Solution of These Packages & Learn by Video Tutorials on Matrices

Mathematics of Cryptography Part I

Exponential and Logarithmic Functions

3.7 InveRSe FUnCTIOnS

CSC Computer Graphics

Exercise solutions: concepts from chapter 5

The standard form of the equation of a circle is based on the distance formula. The distance formula, in turn, is based on the Pythagorean Theorem.

2014 Mathematics. Advanced Higher. Finalised Marking Instructions

Determinants. We said in Section 3.3 that a 2 2 matrix a b. Determinant of an n n Matrix

Handout #3 SUBSPACE OF A VECTOR SPACE Professor Moseley

Eigenvalues for Triangular Matrices. ENGI 7825: Linear Algebra Review Finding Eigenvalues and Diagonalization

Miscellaneous (dimension, angle, etc.) - black [pencil] Use different colors in diagrams. Body outline - blue [black] Vector

Chapter 2: Rigid Body Motions and Homogeneous Transforms

CSC 470 Introduction to Computer Graphics. Mathematical Foundations Part 2

Infinitesimal Rotations

Dealing with Rotating Coordinate Systems Physics 321. (Eq.1)

Math 3108: Linear Algebra

Solutions to the Exercises of Chapter 4

Transcription:

ESC 489 3D ransforms 1 igid Bod ransforms-3d J.C. Dill transforms3d 27Jan99 hese notes on (2D and) 3D rigid bod transform are currentl in hand-done notes which are being converted to this file from that form. E (99-1): this file is incomplete; hand-written notes will be made available. Homogenous Coordinates for 3D ordinar point ( ) is represented as: ( w) recover ordinar Cartesian coordinate b dividing b w: (/w /w /w 1) as in 2D, 2 homogeneous points are same if one is a multiple of the other: H 2 ch 1 w represents the point at infinit. Convention Use HS; rotation is positive ccw looking in toward the origin. ote: Computer graphics often uses a HS. Wh is this? ransforms ranslate 1 1 1 d d d S S Scale S S otation X Ais Y Ais Z Ais c s s c c s s c 1 c s 1 s c

ESC 489 3D ransforms 2 Eample: rotate vector in X ais b +9 about Z ais [1 1 ] ( 9) c -s c s -1 1 1 1 1 1 1 1 Suggestion: make up our own eample to verif (d,d,d) and S(s,s,s ) do what ou think the should do.

ESC 489 3D ransforms 3 roperties of otation matrices Just as in 2D, the "upper left" 3 3 (in this case) submatri of the 4 4 transformation matri has some helpful properties: columns and rows are mutuall perpendicular unit vectors determinant of 3 3 1 so that these sub-matrices are Special rthogonal (sometimes called proper orthonormal) and: product of an pair of special orthogonal matrices is also special orthogonal inverse transpose ( 1 so that I ) and just like in the 2D case row vectors: unit vectors which rotate into principal aes column vectors: unit vectors into which principle aes rotate ow Vector eample (9) Upper 3 3 is ( 9) 1 1 1 ow Vectors r, r, r, ow vectors r, r, r, before rotation after rotation r r r r r r Suggested eercise: work through the column vector equivalent for (9).

ESC 489 3D ransforms 4 Inverses ranslate: Scale: otate: negate d, d, d from s to 1/ s, etc. negate the angle Shear A little more comple than for 2D since we need three flavors: SH, SH, SH, i.e. one for each coordinate plane. ote that each requires two parameters, since the shear with respect to a plane can be in either of the aes defining the plane. For eample, 1 sh sh SH 1 is the shear for -. SH (1,): General combined + An arbitrar sequence of rotations, translations and scales can be represented as: r r r t 11 12 13 r r r t 21 22 23 r r r t 32 32 33 where upper left 3 3 is the combined Scale and otate.

ESC 489 3D ransforms 5 ransforming points, lines and lanes oints: what weve been doing so far (and onl this) ines: defined b endpoints; just transform the endpoints and join the transformed points. lanes: tricker; if defined b 3 points, can transform points, but... more often defined b a plane equation: A + B + C + D how do we transform the plane equation coefficients????? answer is to transform the normal (recall n [A B C] ) ransforming the lane Equation first, represent the plane as a column vector of coefficients: [A B C D ] then the plane can be defined b all points [ 1 ] such that or A B C D 1 and from this, performing the dot product, we recover the plane equation! A + B + C + D now, in matri form, we use the row vector of coefficients, and a column vector for : ow, suppose we want to transform our space b the transformation matri : to maintain, we must also transform. et this transform be. hen * transformed normal is * transformed point is * and from the definition of the plane ( ) * so using a little matri algebra: ( ) his last statement will be true if ki ( ) ( ) * * ( ) -1 etting k 1 gives ( )

ESC 489 3D ransforms 6 Eample + + 1 ( θ) ( 9) 1 ( ) + + 1 * otate 9 deg about Ais: so or c -s s c -1 1-1 1-1 1 1 1 1 n* n

ESC 489 3D ransforms 7 Composition of 3D ransforms We illustrate this with a simplified version of the "3-point transform", where we move and orient one object with respect to another. he eample also will help understand viewing transforms. roblem: Given two directed line segments, 1 2 and 1 3, find a transform such that 1 moves to the origin 1 2 moves to the positive ais 1 3 moves to the positive - plane 3 3 1 2 1 2 he approach well take is: 1. translate to origin 2. rotate to put 2 into the - plane 3. rotate to put 2 on the positive ais 4. and finall rotate 3 into the positive - plane.

ESC 489 3D ransforms 8 Composing 3D ransforms 1 3 2 ets look at one of the transforms, sa the second (θ-9) otation is - (9 - ) - 9; (wh?) 3 1 2 θ D 1 2 3 φ 1 (- 1,- 1,- 1 ) (θ-9) 2 cos( - 9) sin sin( - 9) - cos - 2 D 2-2 1 2 2 ultipling this out we get 2 2 - D 1 2 1 1 1 (φ) and we note 2 as required. 2 1 α 3 ------------------------------------------------------------ he final overall transform is: ( α) ( φ) ( θ 9 ) (α) ------------------------------------------------------------- 3 2 1 Suggested eercise: construct the three rotation matrices and verif that the requirements are indeed met, i.e. that - 1 -> - 2 -> positive ais - 3 -> positive - plane

ESC 489 3D ransforms 9 Alternate method: Use orthonormal matri properties ecall from the "nice" properties of the rotation matrices: r r r 1 2 3 r r r 1 2 3 r r r 1 2 3 the are the unit row vectors which rotate into coordinate aes. ets tr to construct these directl, assuming the translation is alread done. i 1. the unit vector we want to move to lie on the positive ais is: 2. the unit vector that rotates into is normal to the plane 123. But a unit vector normal to the plane is simpl given b: 1 2 1 2 r r r 1 3 1 2 1 3 1 2 1 2 3 r r r 1 2 3 3. B definition, must rotate into the remaining ais and:... and thats it, were done! he transformation is: where ( 1, 1, 1) 1