Matrices, Transformations and the 3D Pipeline Matthew Rusch Paul Keet.

Slides:



Advertisements
Similar presentations
3D Geometry for Computer Graphics
Advertisements

Applied Informatics Štefan BEREŽNÝ
Matrices A matrix is a rectangular array of quantities (numbers, expressions or function), arranged in m rows and n columns x 3y.
3_3 An Useful Overview of Matrix Algebra
2-D Geometry. The Image Formation Pipeline Outline Vector, matrix basics 2-D point transformations Translation, scaling, rotation, shear Homogeneous.
Maths for Computer Graphics
Lecture 6 Intersection of Hyperplanes and Matrix Inverse Shang-Hua Teng.
Chapter 2 Matrices Definition of a matrix.
Ch 7.2: Review of Matrices For theoretical and computation reasons, we review results of matrix theory in this section and the next. A matrix A is an m.
ECIV 520 Structural Analysis II Review of Matrix Algebra.
Economics 2301 Matrices Lecture 13.
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
Boot Camp in Linear Algebra Joel Barajas Karla L Caballero University of California Silicon Valley Center October 8th, 2008.
Part 3 Chapter 8 Linear Algebraic Equations and Matrices PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
Chapter 1: Matrices Definition 1: A matrix is a rectangular array of numbers arranged in horizontal rows and vertical columns. EXAMPLE:
Week 4 - Monday.  What did we talk about last time?  Vectors.
Chapter 7 Matrix Mathematics Matrix Operations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Linear Algebra & Matrices MfD 2004 María Asunción Fernández Seara January 21 st, 2004 “The beginnings of matrices and determinants.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
1 Matrix Math ©Anthony Steed Overview n To revise Vectors Matrices n New stuff Homogenous co-ordinates 3D transformations as matrices.
Compiled By Raj G. Tiwari
Graphics CSE 581 – Interactive Computer Graphics Mathematics for Computer Graphics CSE 581 – Roger Crawfis (slides developed from Korea University slides)
6.837 Linear Algebra Review Patrick Nichols Thursday, September 18, 2003.
Little Linear Algebra Contents: Linear vector spaces Matrices Special Matrices Matrix & vector Norms.
6.837 Linear Algebra Review Patrick Nichols Thursday, September 18, 2003.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 : “shiv rpi” Linear Algebra A gentle introduction Linear Algebra has become as basic and as applicable.
Transformations Jehee Lee Seoul National University.
Overview Definitions Basic matrix operations (+, -, x) Determinants and inverses.
Matrices. A matrix, A, is a rectangular collection of numbers. A matrix with “m” rows and “n” columns is said to have order m x n. Each entry, or element,
8.1 Matrices & Systems of Equations
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.
Matrix Algebra and Regression a matrix is a rectangular array of elements m=#rows, n=#columns  m x n a single value is called a ‘scalar’ a single row.
6.837 Linear Algebra Review Rob Jagnow Monday, September 20, 2004.
Sect. 4.2: Orthogonal Transformations
Matrices A matrix is a table or array of numbers arranged in rows and columns The order of a matrix is given by stating its dimensions. This is known as.
Linear Algebra 1.Basic concepts 2.Matrix operations.
Lecture 8 Matrix Inverse and LU Decomposition
Linear algebra: matrix Eigen-value Problems Eng. Hassan S. Migdadi Part 1.
Chapter 6 Systems of Linear Equations and Matrices Sections 6.3 – 6.5.
1 Graphics CSCI 343, Fall 2015 Lecture 10 Coordinate Transformations.
MT411 Robotic Engineering Asian Institution of Technology (AIT) Chapter 1 Introduction to Matrix Narong Aphiratsakun, D.Eng.
MATRICES Operations with Matrices Properties of Matrix Operations
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.
MATRIX A set of numbers arranged in rows and columns enclosed in round or square brackets is called a matrix. The order of a matrix gives the number of.
LEARNING OUTCOMES At the end of this topic, student should be able to :  D efination of matrix  Identify the different types of matrices such as rectangular,
A ij i = row j = column A [ A ] Definition of a Matrix.
Linear Algebra Review Tuesday, September 7, 2010.
2 - 1 Chapter 2A Matrices 2A.1 Definition, and Operations of Matrices: 1 Sums and Scalar Products; 2 Matrix Multiplication 2A.2 Properties of Matrix Operations;
Matrices, Vectors, Determinants.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
Graphics Graphics Korea University kucg.korea.ac.kr Mathematics for Computer Graphics 고려대학교 컴퓨터 그래픽스 연구실.
Lecture 1 Linear algebra Vectors, matrices. Linear algebra Encyclopedia Britannica:“a branch of mathematics that is concerned with mathematical structures.
Ch. 12 Vocabulary 1.) matrix 2.) element 3.) scalar 4.) scalar multiplication.
MATRICES A rectangular arrangement of elements is called matrix. Types of matrices: Null matrix: A matrix whose all elements are zero is called a null.
MTH108 Business Math I Lecture 20.
Matrices and Vector Concepts
Week 4 - Monday CS361.
Linear Algebra review (optional)
Transforms.
Linear Algebra Lecture 2.
Chapter 7 Matrix Mathematics
Copyright © 2009 Dan Nettleton
Linear independence and matrix rank
2-D Geometry.
MATRICES Operations with Matrices Properties of Matrix Operations
Transformations.
Linear Algebra review (optional)
Linear Algebra A gentle introduction
Presentation transcript:

Matrices, Transformations and the 3D Pipeline Matthew Rusch Paul Keet

Matrices What is a MATRIX  “A concise and useful way of uniquely representing and working with linear transformations.” Notation Column or row major?  Above is row major

Matrix Operations - Scalar Scalar - Matrix  Addition  Subtraction  Multiplication  Division

Matrix Operations - Matrix Matrix – Matrix  Transpose  Determinant  Matrix Addition  Matrix Multiplication  Matrix Inverse

Transpose The object obtained by replacing all elements a ij with a ji Optimization note: Matrix elements down the diagonal can be left alone Properties of the transpose:

Determinant The determinant of a matrix A is usually denoted det(A) or |A| For a 2x2 matrix, the determinant is defined as: An NxN matrix can be expanded by minors to obtain:  Sign is given by (-1) i+j Matrices with a determinant of zero are called singular matrices

Matrix Multiplication Einstein summation Associative Not generally commutative  [A][B] != [B][A] Identity matrices and matrices that are diagonal and of the same dimension are exceptions

Matrix Inverse A matrix times its inverse yields an identity matrix Same as the transpose for orthogonal matrices Gauss-Jordan elimination Gaussian elimination LU Decomposition

Matrix Inverse 2x2 matrix 3x3 matrix

Matrix Transforms Scale Rotation  Around isolated axis  Around arbitrary axis Translation  Can be a vector addition  Homogenous coordinates can be used Shearing Affine  Preserves colinearity and relations of distances  Projection matrices are NOT affine

Transformations in the 3D Pipeline Model to World, or World Transform World to View, or View Transform  OpenGL combines this with the world transform and calls it the modelview matrix Lighting is done in world space in this case View to Projection, or Projection Transform How do we get from projection space to screen space?  Screen Transform Homogenezation, or divide by w Concatination, or combining transforms