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

Similar documents
MATRIX TRANSFORMATIONS

Affine transformations

CS-184: Computer Graphics. Today

Affine transformations. Brian Curless CSE 557 Fall 2014

Graphics Example: Type Setting

CS 378: Computer Game Technology

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

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

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

Affine transformations

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

1 HOMOGENEOUS TRANSFORMATIONS

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

2D Geometric Transformations. (Chapter 5 in FVD)

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

Transformations. Chapter D Transformations Translation

Lecture 27: More on Rotational Kinematics

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

Linear and affine transformations

Computer Graphics: 2D Transformations. Course Website:

Matrices. VCE Maths Methods - Unit 2 - Matrices

Matrices. VCE Maths Methods - Unit 2 - Matrices

CS 354R: Computer Game Technology

2.3 Rectangular Components in Three-Dimensional Force Systems

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

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

Physically Based Rendering ( ) Geometry and Transformations

A Tutorial on Euler Angles and Quaternions

CSE4030 Introduction to Computer Graphics

Affine transformations

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

MAT 1275: Introduction to Mathematical Analysis. Graphs and Simplest Equations for Basic Trigonometric Functions. y=sin( x) Function

Mathematics of Cryptography Part I

Vector and Affine Math

Unit 12 Study Notes 1 Systems of Equations

Reading. Affine transformations. Vector representation. Geometric transformations. x y z. x y. Required: Angel 4.1, Further reading:

STATICS. Equivalent Systems of Forces. Vector Mechanics for Engineers: Statics VECTOR MECHANICS FOR ENGINEERS: Contents 9/3/2015.

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

4 Strain true strain engineering strain plane strain strain transformation formulae

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

Eigenvectors and Eigenvalues 1

Vertex. March 23, Ch 9 Guided Notes.notebook

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

How to rotate a vector using a rotation matrix

ENR202 Mechanics of Materials Lecture 12B Slides and Notes

The Force Table Introduction: Theory:

Pure Core 1. Revision Notes

Roger Johnson Structure and Dynamics: The 230 space groups Lecture 3

Homework Notes Week 6

EC5555 Economics Masters Refresher Course in Mathematics September 2013

RELATIONS AND FUNCTIONS through

Math 214 Spring problem set (a) Consider these two first order equations. (I) dy dx = x + 1 dy

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

COM111 Introduction to Computer Engineering (Fall ) NOTES 6 -- page 1 of 12

12.1 Systems of Linear equations: Substitution and Elimination

All parabolas through three non-collinear points

Consider a slender rod, fixed at one end and stretched, as illustrated in Fig ; the original position of the rod is shown dotted.

The Elimination Method

Lab 5 Forces Part 1. Physics 225 Lab. You will be using Newton s 2 nd Law to help you examine the nature of these forces.

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

Ground Rules. PC1221 Fundamentals of Physics I. Coordinate Systems. Cartesian Coordinate System. Lectures 5 and 6 Vectors.

Vectors in Two Dimensions

15. Polarization. Linear, circular, and elliptical polarization. Mathematics of polarization. Uniaxial crystals. Birefringence.

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

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

Linear algebra in turn is built on two basic elements, MATRICES and VECTORS.

Graphics Rendering Pipeline

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

Strain Transformation and Rosette Gage Theory

15. Eigenvalues, Eigenvectors

Space frames. b) R z φ z. R x. Figure 1 Sign convention: a) Displacements; b) Reactions

10.5. Polar Coordinates. 714 Chapter 10: Conic Sections and Polar Coordinates. Definition of Polar Coordinates

FACULTY OF MATHEMATICAL STUDIES MATHEMATICS FOR PART I ENGINEERING. Lectures AB = BA = I,

Linear Algebra (2009 Fall) Chapter 1 Matrices and Systems of Equations

Mathematical Structures for Computer Graphics Steven J. Janke John Wiley & Sons, 2015 ISBN: Exercise Answers

Identifying second degree equations

Outline. MA 138 Calculus 2 with Life Science Applications Linear Maps (Section 9.3) Graphical Representation of (Column) Vectors. Addition of Vectors

Math 223. x A7! x 1 v x n v n : x n

Created by T. Madas. Candidates may use any calculator allowed by the regulations of this examination.

Simultaneous Orthogonal Rotations Angle

Lab 5 Forces Part 1. Physics 211 Lab. You will be using Newton s 2 nd Law to help you examine the nature of these forces.

Introduction to Mechanics Vectors in 2 Dimensions

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

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

KEY IDEAS. Chapter 1 Function Transformations. 1.1 Horizontal and Vertical Translations Pre-Calculus 12 Student Workbook MHR 1

TENSOR TRANSFORMATION OF STRESSES

ES.1803 Topic 16 Notes Jeremy Orloff

Chapter 5: Systems of Equations

Lecture 5 3D polygonal modeling Part 1: Vector graphics Yong-Jin Liu.

5. Nonholonomic constraint Mechanics of Manipulation

Space Coordinates and Vectors in Space. Coordinates in Space

AE/ME 339. K. M. Isaac Professor of Aerospace Engineering. December 21, 2001 topic13_grid_generation 1

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

6. Linear transformations. Consider the function. f : R 2 R 2 which sends (x, y) (x, y)

Analytic Geometry in Three Dimensions

Phys 221. Chapter 3. Vectors A. Dzyubenko Brooks/Cole

The first change comes in how we associate operators with classical observables. In one dimension, we had. p p ˆ

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

Math 369 Exam #1 Practice Problems

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

Transcription:

walters@buffalo.edu CSE 480/580 Lecture 2 Slide 3-D Transformations 3-D space Two conventions for coordinate sstems Left-Hand vs Right-Hand (Thumb is the ais, inde is the ais) Which is which? Most graphics sstems use left hand coordinates Homogeneous Coordinates 3-D point (,,) Homogeneous (,,,)

walters@buffalo.edu CSE 480/580 Lecture 2 Slide2 Translation (',',',) (t, t, t, 0) + (,,,) ' ' ' 0 0 t 0 0 t 0 0 t ' ' ' Scaling Rotation s 0 0 0 0 s 0 0 0 0 s 0 Not as simple to etend to 3D 3 possible aes to rotate about All rotations counter clockwise - when looking down the ais B' B 2D is rotation about what ais? 2D

walters@buffalo.edu CSE 480/580 Lecture 2 Slide3 Notes: When rotating about a given ais, the coordinates of that ais are alwas unchanged So in the rotation matrices, the row and column of the rotation ais are as the identit matri Rotation Matrices differ for right and left hand sstems (Use right-hand here (assume in modelling coordinate sstem)) So what is the rotation about the ais? R( ) cos -sin 0 0 sin cos 0 0 0 0 0 R( ) 0 0 0 0 cos -sin 0 0 sin cos 0 R( ) cos 0 sin 0 0 0 0 -sin 0 cos 0

walters@buffalo.edu CSE 480/580 Lecture 2 Slide4 How would one rotate an object about an ais that is parallel to an ais of the coordinate sstem? origin of w (,,0) w is parallel to w Does this completel specif? Translate w to Rotate b about Translate back ' ' ' 0 0 -t 0 0 -t 0 0 -t 0 0 0 0 cos -sin 0 0 sin cos 0 0 0 t 0 0 t 0 0 t For eample above, what are values for translations?

walters@buffalo.edu CSE 480/580 Lecture 2 Slide5 How to rotate about an arbitrar ais Translate and rotate arbitrar ais onto a coordinate ais Perform rotation Back transform How transform arbitrar ais onto a coordinate ais? Translate origin of arbitrar ais to origin of coordinate aes ' ' ' 0 0 t 0 0 t 0 0 t If use P - get rotation one wa about the line PP2 If use P2 - get rotation other wa P (,, ) P2 (2, 2, 2) What values of t, t, and t? ' ' ' 0 0 0 0 0 0

walters@buffalo.edu CSE 480/580 Lecture 2 Slide6 Now rotate P2 onto the ais (we will rotate about the ais - could choose an ais) But can't rotate about an arbitrar ais! Solution: break into two rotations about coordinate aes Rotate about ais until P2 lies in plane Rotate about ais until P2 lies on ais Look at unit vector, u, along PP2 u' u Look at projection, u', of u onto plane u' b u' (0, b, c) Need to rotate u such that u' lies on ais Let d à b 2 + c 2 sin b/d cos c/d c R( ) 0 0 0 0 cos -sin 0 0 sin cos 0 0 0 0 0 c/d -b/d 0 0 b/d c/d 0

walters@buffalo.edu CSE 480/580 Lecture 2 Slide7 Now need to rotate about until P2 lies on ais u'' is the result of last rotation u'' (a, 0, d) sin -a u'' cos d R( ) cos 0 sin 0 0 0 0 -sin 0 cos 0 d 0 -a 0 0 0 0 a 0 d 0 Now can rotate b desired amount about ais R(½) cos ½ -sin ½ 0 0 sin ½ cos ½ 0 0 0 0 0

walters@buffalo.edu CSE 480/580 Lecture 2 Slide8 Rotation transformation up to this point cos ½ -sin ½ 0 0 sin ½ cos ½ 0 0 0 0 0 d 0 -a 0 0 0 0 a 0 d 0 0 0 0 0 c/d -b/d 0 0 b/d c/d 0 cos ½ -sin ½ 0 0 sin ½ cos ½ 0 0 0 0 0 d -ab/d -ac/d 0 0 c/d -b/d 0 a b c 0 And don't forget that initial translation: cos ½ -sin ½ 0 0 sin ½ cos ½ 0 0 0 0 0 d -ab/d -ac/d 0 0 c/d -b/d 0 a b c 0 0 0-0 0-0 0 - What are a, b, c, and d in terms of P and P2? u' c b How transform PP2 to unit vector? Alread moved P to origin P'2 (2-, 2-, 2-) P'2 (',',') Divide b its length to give it unit length D length Ã(' 2 +' 2 +' 2 ) b '/D, c '/D, d Ã(b 2 +c 2 ) a '/D

walters@buffalo.edu CSE 480/580 Lecture 2 Slide9 To complete rotation must now back transform with two rotations and the translation, all with minus values What about scaling an object relative to a fied point? Translate fied point to the origin Scale Back translate ' ' ' 0 0 -t 0 0 -t 0 0 -t s 0 0 0 0 s 0 0 0 0 s 0 0 0 0 0 0 0 t 0 0 t 0 0 t ' ' ' s 0 0 -t 0 s 0 -t 0 0 s -t 0 0 t 0 0 t 0 0 t ' ' ' What are t, t and t here?

walters@buffalo.edu CSE 480/580 Lecture 2 Slide0 Properties of 3-D Affine Transformations Lines are transformed into lines Parallel lines are transformed into parallel lines Proportional distances are preserved Volumes are scaled b the determinant of M, where M is the transformation matri P' M P Vol (P') M Vol (P) Note: It's not true that the 2D projections of these 3D transformations have these properties! This is the projection of a unit cube Is the length preserved?