1 Graphics CSCI 343, Fall 2015 Lecture 10 Coordinate Transformations.

Slides:



Advertisements
Similar presentations
2.3 Modeling Real World Data with Matrices
Advertisements

Transformations Ed Angel Professor Emeritus of Computer Science
Matrices A matrix is a rectangular array of quantities (numbers, expressions or function), arranged in m rows and n columns x 3y.
Maths for Computer Graphics
Chapter 4.1 Mathematical Concepts
Chapter 4.1 Mathematical Concepts. 2 Applied Trigonometry Trigonometric functions Defined using right triangle  x y h.
CS5500 Computer Graphics March 22, Angel: Interactive Computer Graphics 3E © Addison-Wesley 2002 Coordinate-Free Geometry When we learned simple.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 12 System of Linear Equations.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Representation Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
CSCE 590E Spring 2007 Basic Math By Jijun Tang. Applied Trigonometry Trigonometric functions  Defined using right triangle  x y h.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 14 Elimination Methods.
Transformations. 2 Angel: Interactive Computer Graphics 3E © Addison-Wesley 2002 Coordinate-Free Geometry When we learned simple geometry, most of us.
Representation CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
Transformations CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
1 Matrix Math ©Anthony Steed Overview n To revise Vectors Matrices n New stuff Homogenous co-ordinates 3D transformations as matrices.
Graphics CSE 581 – Interactive Computer Graphics Mathematics for Computer Graphics CSE 581 – Roger Crawfis (slides developed from Korea University slides)
ECON 1150 Matrix Operations Special Matrices
CS 480/680 Computer Graphics Representation Dr. Frederick C Harris, Jr. Fall 2012.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
CS 480/680 Computer Graphics Transformations Dr. Frederick C Harris, Jr.
Intro to 3D Models Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
1 Math Review Coordinate systems 2-D, 3-D Vectors Matrices Matrix operations.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
Lecture 28: Mathematical Insight and Engineering.
Matrices. Definitions  A matrix is an m x n array of scalars, arranged conceptually as m rows and n columns.  m is referred to as the row dimension.
©College of Computer and Information Science, Northeastern University CS 4300 Computer Graphics Prof. Harriet Fell Fall 2012 Lecture 12 – October 1, 2012.
Transformations Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
16/5/ :47 UML Computer Graphics Conceptual Model Application Model Application Program Graphics System Output Devices Input Devices API Function.
C O M P U T E R G R A P H I C S Guoying Zhao 1 / 52 C O M P U T E R G R A P H I C S Guoying Zhao 1 / 52 Computer Graphics Three-Dimensional Graphics I.
CSE Real Time Rendering Week 5. Slides(Some) Courtesy – E. Angel and D. Shreiner.
Chun-Yuan Lin Mathematics for Computer Graphics 2015/12/15 1 CG.
1 Graphics CSCI 343, Fall 2015 Lecture 9 Geometric Objects.
Sec 4.1 Matrices.
Algebra Matrix Operations. Definition Matrix-A rectangular arrangement of numbers in rows and columns Dimensions- number of rows then columns Entries-
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
CSC461: Lecture 13 Coordinates Objectives Introduce concepts such as dimension and basis Introduce concepts such as dimension and basis Introduce coordinate.
1 Representation. 2 Objectives Introduce concepts such as dimension and basis Introduce coordinate systems for representing vectors spaces and frames.
CSCE 552 Fall 2012 Math By Jijun Tang. Applied Trigonometry Trigonometric functions  Defined using right triangle  x y h.
Matrices and Matrix Operations. Matrices An m×n matrix A is a rectangular array of mn real numbers arranged in m horizontal rows and n vertical columns.
Computer Graphics I, Fall 2010 Transformations.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Transformations Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
A rectangular array of numeric or algebraic quantities subject to mathematical operations. The regular formation of elements into columns and rows.
Lecture 1 Linear algebra Vectors, matrices. Linear algebra Encyclopedia Britannica:“a branch of mathematics that is concerned with mathematical structures.
Vectors, Matrices and their Products Hung-yi Lee.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
1 Matrix Math ©Anthony Steed Overview n To revise Vectors Matrices.
MTH108 Business Math I Lecture 20.
12-1 Organizing Data Using Matrices
Linear Algebra review (optional)
Finding the Inverse of a Matrix
Representation Ed Angel Professor Emeritus of Computer Science,
Matrix Operations SpringSemester 2017.
Isaac Gang University of Mary Hardin-Baylor
الوحدة السابعة : المصفوفات . تنظيم البيانات فى مصفوفات . الوحدة السابعة : المصفوفات . تنظيم البيانات فى مصفوفات . 1 جمع المصفوفات وطرحها.
CSC461: Lecture 14 Representations
Lecture 11 Matrices and Linear Algebra with MATLAB
Rigid Body Transformations
Representation Ed Angel Professor Emeritus of Computer Science,
Linear Algebra review (optional)
1.8 Matrices.
Matrix Operations SpringSemester 2017.
Rigid Body Transformations
1.8 Matrices.
Representation Ed Angel
Translation in Homogeneous Coordinates
Presentation transcript:

1 Graphics CSCI 343, Fall 2015 Lecture 10 Coordinate Transformations

2 Matrices A Matrix is a rectangular array of quantities: 2x2 Matrix 2x3 Matrix 3x1 Matrix mxn Matrix

3 Matrix multiplication To multiply two matrices, multiply the rows in the first matrix by the columns of the second matrix. Example:

4 Matrix multiplication In general:

5 Practice a) b)

6 Representing systems of equations A system of equations, e.g. can be represented with a matrix equation:

7 Matrix terminology 1. The transpose of a matrix, exchanges the rows and columns of that matrix. 2. When a matrix, A, is multiplied by the identity matrix, the result is the same matrix A. 3. The a matrix, A, is multiplied by its inverse, A -1, the result is the identity matrix. AI = A AA -1 = I

8 Recall Coordinate systems Coordinate systems are represented by a set of basis vectors (v 1, v 2, v 3 ) and a reference point, P 0. Points can be written as: v1v1 v2v2 v3v3 P P0P0 Vectors can be written as:

9 Changing the basis set We can move from basis (v 1, v 2, v 3 ) to basis (u 1, u 2, u 3 ) using the following set of equations: v1v1 v2v2 v3v3 u1u1 u2u2 u3u3 In matrix form: u = Mv

10 Representing a vector in the new basis set Suppose: We would like to find b, such that:

11 Solving for b We will solve for b in class

12 Homogeneous coordinates Transformation of basis vectors leaves the origin unchanged. Homogeneous coordinates allow us to transform the origin. Recall representation of a point: To represent P with matrices, we add a 4th dimension so we can include position: P is represented by: For vectors, the fourth coordinate is zero.

13 Changing frames in homogeneous coordinates Changing from (v 1, v 2, v 3, P 0 ) to (u 1, u 2, u 3, Q 0 ): v1v1 v2v2 v3v3 u1u1 u2u2 u3u3 P0P0 Q0Q0 In matrix form:

14 Transforming a point between coordinate systems Suppose P is represented by b in the u, Q 0 space and by a in the v, P 0 space. (b T = [  1,  2,  3, 1], a T = [  1,  2,  3, 1]) We will solve for b in class.

15 Affine transformations Affine transformations are linear transformations from a point in one frame to another frame: f(  p +  q) =  f(p) +  f(q) ,  are scalars; p, q are vertices. Affine transformations preserve lines. We can represent the transformation as: v = Auwhere

16 Translation Translation: Displace points by a fixed distance in a given direction. d x' = x +  x y' = y +  y z' = z +  z p' = Tp where Equations: In matrix form:

17 Inverse translation T is the translation matrix Inverse translation: Displace by -d