Uses of transformations. 3D transformations. Review of vectors. Vectors in 3D. Points vs. vectors. Homogeneous coordinates S S [ H [ S \ H \ S ] H ]

Similar documents
To Do. Vectors. Motivation and Outline. Vector Addition. Cartesian Coordinates. Foundations of Computer Graphics (Spring 2010) x y

DEFINITION OF ASSOCIATIVE OR DIRECT PRODUCT AND ROTATION OF VECTORS

set is not closed under matrix [ multiplication, ] and does not form a group.

Chapter 4 Contravariance, Covariance, and Spacetime Diagrams

Chapter 14. Matrix Representations of Linear Transformations

11-755/ Machine Learning for Signal Processing. Algebra. Class August Instructor: Bhiksha Raj

11-755/ Machine Learning for Signal Processing. Algebra. Class Sep Instructor: Bhiksha Raj

Math 33A Discussion Example Austin Christian October 23, Example 1. Consider tiling the plane by equilateral triangles, as below.

Things to Memorize: A Partial List. January 27, 2017

Math 520 Final Exam Topic Outline Sections 1 3 (Xiao/Dumas/Liaw) Spring 2008

MATRICES AND VECTORS SPACE

a a a a a a a a a a a a a a a a a a a a a a a a In this section, we introduce a general formula for computing determinants.

Chapter 3. Vector Spaces

Lecture Note 9: Orthogonal Reduction

MATRIX DEFINITION A matrix is any doubly subscripted array of elements arranged in rows and columns.

Matrix Solution to Linear Equations and Markov Chains

13.3 CLASSICAL STRAIGHTEDGE AND COMPASS CONSTRUCTIONS

2. VECTORS AND MATRICES IN 3 DIMENSIONS

Machine Learning for Signal Processing Fundamentals of Linear Algebra

How do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique?

Here we study square linear systems and properties of their coefficient matrices as they relate to the solution set of the linear system.

Fundamentals of Linear Algebra

Chapter 5 Determinants

Numerical Linear Algebra Assignment 008

THREE-DIMENSIONAL KINEMATICS OF RIGID BODIES

Lecture 8 Wrap-up Part1, Matlab

Vectors , (0,0). 5. A vector is commonly denoted by putting an arrow above its symbol, as in the picture above. Here are some 3-dimensional vectors:

Fundamentals of Linear Algebra

Matrices. Elementary Matrix Theory. Definition of a Matrix. Matrix Elements:

Introduction To Matrices MCV 4UI Assignment #1

1 ELEMENTARY ALGEBRA and GEOMETRY READINESS DIAGNOSTIC TEST PRACTICE

Matrix Eigenvalues and Eigenvectors September 13, 2017

Basics of space and vectors. Points and distance. Vectors

Exploring parametric representation with the TI-84 Plus CE graphing calculator

Convert the NFA into DFA

THE DISCRIMINANT & ITS APPLICATIONS

DIRECT CURRENT CIRCUITS

Chapter 3 MATRIX. In this chapter: 3.1 MATRIX NOTATION AND TERMINOLOGY

This lecture covers Chapter 8 of HMU: Properties of CFLs

CS 301. Lecture 04 Regular Expressions. Stephen Checkoway. January 29, 2018

Vectors. Introduction. Definition. The Two Components of a Vector. Vectors

Lecture 2e Orthogonal Complement (pages )

HW3, Math 307. CSUF. Spring 2007.

7.1 Integral as Net Change and 7.2 Areas in the Plane Calculus

KINEMATICS OF RIGID BODIES

A Matrix Algebra Primer

How do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique?

Matrices 13: determinant properties and rules continued

Lecture V. Introduction to Space Groups Charles H. Lake

Differential Geometry: Conformal Maps

Non-deterministic Finite Automata

4 VECTORS. 4.0 Introduction. Objectives. Activity 1

ODE: Existence and Uniqueness of a Solution

STRAND J: TRANSFORMATIONS, VECTORS and MATRICES

Consolidation Worksheet

First Midterm Examination

Matrix Algebra. Matrix Addition, Scalar Multiplication and Transposition. Linear Algebra I 24

Chapter 3 Polynomials

13: Diffusion in 2 Energy Groups

Stage 11 Prompt Sheet

Introduction to Determinants. Remarks. Remarks. The determinant applies in the case of square matrices

4.5 JACOBI ITERATION FOR FINDING EIGENVALUES OF A REAL SYMMETRIC MATRIX. be a real symmetric matrix. ; (where we choose θ π for.

Lecture 3. In this lecture, we will discuss algorithms for solving systems of linear equations.

Chapter 2. Determinants

Math 113 Exam 1-Review

Math 4310 Solutions to homework 1 Due 9/1/16

MTH 5102 Linear Algebra Practice Exam 1 - Solutions Feb. 9, 2016

IMPOSSIBLE NAVIGATION

Lecture 7 notes Nodal Analysis

308K. 1 Section 3.2. Zelaya Eufemia. 1. Example 1: Multiplication of Matrices: X Y Z R S R S X Y Z. By associativity we have to choices:

Elementary Linear Algebra

Week 10: Line Integrals

NFAs and Regular Expressions. NFA-ε, continued. Recall. Last class: Today: Fun:

Matrices and Determinants

Coalgebra, Lecture 15: Equations for Deterministic Automata

Analytical Methods for Materials

5.2 Exponent Properties Involving Quotients

INTRODUCTION TO LINEAR ALGEBRA

Analytically, vectors will be represented by lowercase bold-face Latin letters, e.g. a, r, q.

I. Equations of a Circle a. At the origin center= r= b. Standard from: center= r=

Indefinite Integral. Chapter Integration - reverse of differentiation

Dynamics and control of mechanical systems. Content

First Midterm Examination

Advanced Algebra & Trigonometry Midterm Review Packet

Formal languages, automata, and theory of computation

CS375: Logic and Theory of Computing

In this skill we review equations that involve percents. review the meaning of proportion.

Scientific notation is a way of expressing really big numbers or really small numbers.

A matrix is a set of numbers or symbols arranged in a square or rectangular array of m rows and n columns as

Point Lattices: Bravais Lattices

Algorithm Design and Analysis

Math 113 Fall Final Exam Review. 2. Applications of Integration Chapter 6 including sections and section 6.8

3. Vectors. Home Page. Title Page. Page 2 of 37. Go Back. Full Screen. Close. Quit

Introduction to Group Theory

really ultimately take the view that this geometric Liveartrausfomatiousthesaelofliuearalgebrwe doing function that of what A is will

Algebra Of Matrices & Determinants

Linearity, linear operators, and self adjoint eigenvalue problems

UNIT 5 QUADRATIC FUNCTIONS Lesson 3: Creating Quadratic Equations in Two or More Variables Instruction

5.2 Volumes: Disks and Washers

ROTATION IN 3D WORLD RIGID BODY MOTION

Transcription:

Uses of trnsformtions 3D trnsformtions Modeling: position nd resize prts of complex model; Viewing: define nd position the virtul cmer Animtion: define how objects move/chnge with time y y Sclr (dot) product ( number): α b Cross product ( vector): x x Review of vectors Addition: +b Multipliction by number c: 3D: D E 2D: 3D: b (,b) = x b x + y b y c (,b) = x b x + y b y + z b z (,b) = b cosα (,b) = (b,) (, k 1 b +k 2 c ) = k 1 (,b)+k 2 (,c ) GHW H[ H\ H] D [ D \ D ] E [ E \ E ] MD EM MDMMEM VLQ D E ƒe D Vectors in 3D p y p p x p z S S [ H [ H \ H ] unit bsis vectors D N E NF ND E ND F Homogeneous coordintes S [ % S [ S Z & % regulr 3D point to homogeneous: homogeneous point to regulr 3D: & S [ S Z S Z S Z Points vs. vectors trnslted point is different point trnslted vector is the sme vector in homogeneous coordintes: points hve lst component nonzero vectors hve lst component zero 1

Trnsltion nd scling Similr to 2D; trnsltion by vector W >W [ W \ W ] @ Nonuniform scling in three directions W [ W \ W ] V [ V \ V ] Rottions round coord xes ngle, round X xis: round Y xis: FRV ƒ VLQ VLQ FRV round Z xis: FRV ƒ VLQ VLQ FRV FRV VLQ ƒ VLQ FRV note where the minus is! Generl rottions Given n xis ( unit vector) nd n ngle, find the mtrix S N Y S S" S N rotted S rotted S" S" Only the component perpendiculr to xis chnges Y Generl rottions (rotted vectors re denoted with ) project p on Y: the rest of p is the other component: rotte perp. component: dd bck two components: S Combine everything, using S N SYY S" S ƒ SYY S " S" FRV D Y S" VLQ S " S N Y S" Y S to simplify: S FRV S ƒ FRV SYY VLQ Y S Generl rottions Composition of trnsformtions How do we write ll this using mtrices? SYY Y S S FRV S ƒ FRV SYY VLQ Y S Y[Y[ Y[Y\S\ Y[Y]S] Y[Y[ Y[Y\ Y[Y] Y\Y[ Y\ Y\S\ Y\Y] S] Y\Y[ Y\Y\ Y\Y] Y]Y[ Y] Y\S\ Y]Y]S] Y]Y[ Y]Y\ Y]Y] ƒy]s\ Y\S] ƒy] Y\ S\ Y] ƒ Y[S] ƒy\ Y[S\ Y] ƒy[ ƒy\ Y[ Finl result, the mtrix for generl rottion round by ngle : FRV ƒfrv Y [Y [ Y [Y \ Y [Y ] Y \ Y [ Y\ Y \ Y\ Y ] VLQ ƒy ] Y \ Y ] ƒy [ ƒy \ Y[ Y ] Y [ Y] Y \ Y] Y ] S] S\ S] Order mtters! ( rottion * trnsltion trnsltion * rottion) Composition of trnsformtions = mtrix multipliction: if T is rottion nd S is scling, then pplying scling first nd rottion second is the sme s pplying trnsformtion given by the mtrix TS (note the order). Reversing the order does not work in most cses 2

Trnsformtion order Building the rm When we write trnsformtions using stndrd mth nottion, the closest trnsformtion to the point is pplied first: Strt: unit squre 756S 7 56S first, the object is scled, then rotted, then trnslted This is the most common trnsformtion order for n object (scle-rotte-trnslte) Step 1: scle to the correct size Building the rm step 2: trnslte to the correct position step 5: rotte the second box step 3: dd nother unit squre step 6: trnslte the second box step 4: scle the second box Positioning ech prt of complex object seprtely is difficult If we wnt to move whole complex objects consisting of mny prts or complex prts of n object (for exmple, the rm of robot) then we would hve to modify trnsformtions for ech prt solution: build objects hierrchiclly Ide: group prts hierrchiclly, ssocite trnsforms with ech group. whole robot = hed + body + legs + rms leg = upper prt + lower prt hed = neck + eyes + Hierrchicl representtion of n object is tree. The non-lef nodes re groups of objects. The lef nodes re primitives (e.g. polygons) Trnsformtions re ssigned to ech node, nd represent the reltive trnsform of the group or primitive with respect to the prent group As the tree is trversed, the trnsformtions re combined into one 3

Trnsformtion stck T nose nose robot S 1, T 1 hed body right left right leg leg rm eyes T hed upper prt lower prt left rm To keep trck of the current trnsformtion, the trnsformtion stck is mintined. Bsic opertions on the stck: push: crete copy of the mtrix on the top nd put it on the top pop: remove the mtrix on the top multiply: multiply the top by the given mtrix lod: replce the top mtrix with given mtrix TO drw the robot, we use mnipultions with the trnsform stck to get the correct trnsform for ech prt. For exmple, to drw the nose nd the eyes: push mult. T hed T hed lod S 1 mult. T 1 push T hed T hed mult. T nose T hed T nose T hed Drw the nose S 1 stck empty Sequence of opertions in the (pseudo)code: pop Drw the eyes T hed pop T hed push T hed T hed pop mult. T eyes T hed T eyes T hed Drw body etc lod S 1 ; mult T 1 ; push; mult. T hed ; push; mult T nose ; drw nose; push; mult. T eyes ; drw eyes; 4

Animtion The dvntge of hierrchicl trnsformtions is tht everything cn be nimted with little effort. Generl ide: before doing mult. or lod, compute trnsform s function of time. time = 0; min loop { drw(time); increment time; } drw( time ) { compute R rm (time) mult. R rm } 5