y z P 3 P T P1 P 2. Werner Purgathofer. b a

Similar documents
Linear Algebra Primer

2. VECTORS. R Vectors are denoted by bold-face characters such as R, V, etc. The magnitude of a vector, such as R, is denoted as R, R, V

Linear Algebra Primer

Physics 240: Worksheet 16 Name

Let us start with a two dimensional case. We consider a vector ( x,

Elements of Computer Graphics

Angular Motion, Speed and Velocity

3D Coordinate Systems. 3D Geometric Transformation Chapt. 5 in FVD, Chapt. 11 in Hearn & Baker. Right-handed coordinate system:

Discussion Session 2 Constant Acceleration/Relative Motion Week 03

Linear Motion, Speed & Velocity

Module 2: Analysis of Stress

5.2 GRAPHICAL VELOCITY ANALYSIS Polygon Method

To become more mathematically correct, Circuit equations are Algebraic Differential equations. from KVL, KCL from the constitutive relationship

You have met function of a single variable f(x), and calculated the properties of these curves such as

AP Calculus BC Chapter 10 Part 1 AP Exam Problems

CSE 5365 Computer Graphics. Take Home Test #1

Chapter 7: Inverse-Response Systems

Outline of Topics. Analysis of ODE models with MATLAB. What will we learn from this lecture. Aim of analysis: Why such analysis matters?

Trajectory planning in Cartesian space

Linear Algebra Primer

, the. L and the L. x x. max. i n. It is easy to show that these two norms satisfy the following relation: x x n x = (17.3) max

Parametrics and Vectors (BC Only)

Motion In One Dimension. Graphing Constant Speed

Kinematics of Wheeled Robots

Physics 180A Fall 2008 Test points. Provide the best answer to the following questions and problems. Watch your sig figs.

Kinematics and kinematic functions

Randomized Perfect Bipartite Matching

3.1.3 INTRODUCTION TO DYNAMIC OPTIMIZATION: DISCRETE TIME PROBLEMS. A. The Hamiltonian and First-Order Conditions in a Finite Time Horizon

Problem Set If all directed edges in a network have distinct capacities, then there is a unique maximum flow.

From Particles to Rigid Bodies

CONTROL SYSTEMS. Chapter 10 : State Space Response

18.03SC Unit 3 Practice Exam and Solutions

Chapter 3 Kinematics in Two Dimensions

2002 November 14 Exam III Physics 191

ū(e )(1 γ 5 )γ α v( ν e ) v( ν e )γ β (1 + γ 5 )u(e ) tr (1 γ 5 )γ α ( p ν m ν )γ β (1 + γ 5 )( p e + m e ).

~v = x. ^x + ^y + ^x + ~a = vx. v = v 0 + at. ~v P=A = ~v P=B + ~v B=A. f k = k. W tot =KE. P av =W=t. W grav = mgy 1, mgy 2 = mgh =,U grav

DIFFERENTIAL GEOMETRY HW 5

Vector Calculus. Chapter 2

MEI Mechanics 1 General motion. Section 1: Using calculus

Rectilinear Kinematics

CSE-4303/CSE-5365 Computer Graphics Fall 1996 Take home Test

One-Dimensional Kinematics

3, so θ = arccos

Then. 1 The eigenvalues of A are inside R = n i=1 R i. 2 Union of any k circles not intersecting the other (n k)

Module 2 F c i k c s la l w a s o s f dif di fusi s o i n

KINEMATICS IN ONE DIMENSION

PHYSICS 151 Notes for Online Lecture #4

HW6: MRI Imaging Pulse Sequences (7 Problems for 100 pts)

Curvature. Institute of Lifelong Learning, University of Delhi pg. 1

6.8 Laplace Transform: General Formulas

PROBLEMS ON RECTILINEAR MOTION

Additional Methods for Solving DSGE Models

2001 November 15 Exam III Physics 191

Notes on MRI, Part II

and v y . The changes occur, respectively, because of the acceleration components a x and a y

Chapters 6 & 7: Trigonometric Functions of Angles and Real Numbers. Divide both Sides by 180

Roller-Coaster Coordinate System

Kinematics Vocabulary. Kinematics and One Dimensional Motion. Position. Coordinate System in One Dimension. Kinema means movement 8.

Lecture 2-1 Kinematics in One Dimension Displacement, Velocity and Acceleration Everything in the world is moving. Nothing stays still.

The fundamental mass balance equation is ( 1 ) where: I = inputs P = production O = outputs L = losses A = accumulation

Mon Apr 2: Laplace transform and initial value problems like we studied in Chapter 5

NMR Spectroscopy: Principles and Applications. Nagarajan Murali 1D - Methods Lecture 5

t )? How would you have tried to solve this problem in Chapter 3?

1 1 + x 2 dx. tan 1 (2) = ] ] x 3. Solution: Recall that the given integral is improper because. x 3. 1 x 3. dx = lim dx.

Piecewise-Defined Functions and Periodic Functions

Admin MAX FLOW APPLICATIONS. Flow graph/networks. Flow constraints 4/30/13. CS lunch today Grading. in-flow = out-flow for every vertex (except s, t)

Concourse Math Spring 2012 Worked Examples: Matrix Methods for Solving Systems of 1st Order Linear Differential Equations

ECE Spring Prof. David R. Jackson ECE Dept. Notes 39

10.1 EXERCISES. y 2 t 2. y 1 t y t 3. y e

10.6 Parametric Equations

Introduction to Congestion Games

CH.7. PLANE LINEAR ELASTICITY. Continuum Mechanics Course (MMC) - ETSECCPB - UPC

CoE4TN3 Image Processing

ANSWERS TO ODD NUMBERED EXERCISES IN CHAPTER

SUMMARY. CS380: Introduction to Computer Graphics Quaternions Chapter 7. Min H. Kim KAIST School of Computing 18/04/06.

At the end of this lesson, the students should be able to understand

ME 391 Mechanical Engineering Analysis

Chapter 1 Rotational dynamics 1.1 Angular acceleration

Lecture 4 Kinetics of a particle Part 3: Impulse and Momentum

!!"#"$%&#'()!"#&'(*%)+,&',-)./0)1-*23)

s-domain Circuit Analysis

Linear Algebra Primer

This is an example to show you how SMath can calculate the movement of kinematic mechanisms.

Thus the force is proportional but opposite to the displacement away from equilibrium.

CS4445/9544 Analysis of Algorithms II Solution for Assignment 1

A finitely presented group with unbounded dead-end depth

translational component of a rigid motion appear to originate.

CHAPTER 7: SECOND-ORDER CIRCUITS

CONTROL SYSTEMS. Chapter 3 Mathematical Modelling of Physical Systems-Laplace Transforms. Prof.Dr. Fatih Mehmet Botsalı

Sample Final Exam (finals03) Covering Chapters 1-9 of Fundamentals of Signals & Systems

Formulation of the Stress Distribution Due to a Concentrated Force Acting on the Boundary of Viscoelastic Half-Space

Laplace Transform. Inverse Laplace Transform. e st f(t)dt. (2)

18 Extensions of Maximum Flow

EE243 Advanced Electromagnetic Theory Lec # 13: Waveguides and sources

2.1: What is physics? Ch02: Motion along a straight line. 2.2: Motion. 2.3: Position, Displacement, Distance

KEY. Math 334 Midterm I Fall 2008 sections 001 and 003 Instructor: Scott Glasgow

copper ring magnetic field

Non-uniform circular motion *

In this chapter the model of free motion under gravity is extended to objects projected at an angle. When you have completed it, you should

EE 315 Notes. Gürdal Arslan CLASS 1. (Sections ) What is a signal?

Transcription:

Einführung in Viual Compuing Einführung in Viual Compuing 86.822 in co T P 3 P co in T P P 2 co in Geomeric Tranformaion Geomeric Tranformaion W P h f Werner Purgahofer b a

Tranformaion in he Rendering Pipeline cene objec in objec pace objec capure/creaion i modeling viewing projecion vere age ( vere hader ranformed verice in clip pace cene in normalied device coordinae raer image in piel coordinae Werner Purgahofer 2 clipping + homogeniaion viewpor ranformaion hading raeriaion i piel age ( fragmen hader

Geomeric Tranformaion in he Rendering Pipeline cene objec in objec pace objec capure/creaion i modeling viewing projecion vere age ( vere hader ranformed verice in clip pace cene in normalied device coordinae raer image in piel coordinae Werner Purgahofer 3 clipping + homogeniaion viewpor ranformaion hading raeriaion i piel age ( fragmen hader

Baic Tranformaion: Tranlaion ranlaing a poin from poiion P o poiion P wih ranlaion vecor T P' P T P P T noaion: P, P, T Werner Purgahofer 4

Baic Tranformaion: Tranlaion rigid bod ranformaion objec ranformed b ranforming boundar poin P 3 T P 2 P Werner Purgahofer 5

Baic Tranformaion: Roaion roaion of an objec b an angle around d he pivo poin ( r, r r r r r Werner Purgahofer 6

Baic Tranformaion: Roaion poiive angle ccw roaion = r. co = r. in (, = r. co(+ = r. co. co r. in. in =. co.ini r = r. in(+ r (, = r. co. in r. in. co =. co. in =. in. co Werner Purgahofer 7

Baic Tranformaion: Roaion formulaion wih a ranformaion mari =. co. in =. in. co P R P wih R co in in i co RP co in in co co in in co Werner Purgahofer 8

Baic Tranformaion: Scaling =., =. P P = S P P S eample: a line caled uing = =.33 i reduced in ie and moved cloer o he coordinae origin Werner Purgahofer 9

Baic Tranformaion: Scaling uniform caling: differenial caling: fied poin: ( f, f Werner Purgahofer

Tranformaion Marice caling roaion co in in co mirroring ranlaion ( = (+,, + (' '...? Werner Purgahofer

Homogeneou Coordinae ( inead of ue h h ver ofen h=, i.e. h wih = h /h, = h /h in hi wa all ranformaion can be formulaed in mari form Werner Purgahofer 2

Homogeneou Coordinae (2 Homogeneou Coordinae (2 ranlaion noaion: ranlaion P T P, ( P T P, ( roaion in co co in P R P ( li caling P S P ( P S P, ( Werner Purgahofer 3

Invere Marice ( ranlaion T (, T (, roaion R ( R( caling S (, S (/,/ Werner Purgahofer 4

Compoie Tranformaion ( n ranformaion are applied afer each oher on a poin P,, hee ranformaion are repreened b marice M, M 2,..., M n., 2,, n P = M PP P = M 2 P... P (n = M P n P (n- horer: P (n = (M n...(m 2 (M P... Werner Purgahofer 5

Compoie Tranformaion (2 P (n = (M n... (M 2 (M P... mari muliplicaion are aociaive: (M M 2 M 3 = M (M 2 M 3 (bu no commuaive: M MM 2 M 2 MM Werner Purgahofer 6

Tranformaion are no commuaive! Revering he order in which a equence of ranformaion i performed ma affec he ranformed poiion of an objec! in (a, an objec i fir ranlaed, hen roaed. in (b, he objec i roaed fir, hen ranlaed. (a (b Werner Purgahofer 7

Compoie Tranformaion (2 P (n = (M n... (M 2 (M P... mari muliplicaion are aociaive: (M M 2 M 3 = M (M 2 M 3 (bu no commuaive: M MM 2 M 2 MM herefore he oal ranformaion can alo be wrien a: P (n = ( M n... M 2 M P conan for whole image, objec, ec.!!! Werner Purgahofer 8

Compoie Tranformaion (3 Compoie Tranformaion (3 imple compoie ranformaion compoie ranlaion compoie ranlaion ( ( ( T T T, (, (, ( 2 2 2 2 T T T compoie roaion ( ( ( 2 2 R R R compoie caling ( ( ( 2 2 compoie caling ( ( ( S S S, (, (, ( 2 2 2 2 S S S Werner Purgahofer 9

Compoie Tranformaion (4 general pivo poin roaion T (, R ( T (, R (,, r r r r r r original ranlaion of poiion and objec o ha pivo poin pivo poin i a origin roaion ranlaion abou o ha he origin pivo poin i reurned Werner Purgahofer 2

Compoie Tranformaion (5 T general fied poin caling, S (, T (, S (,,, f f f f f ( f ( f, f ( f, f original poiion and fied poin ranlae objec o ha fied poin i a origin cale objec wih repec o origin ranlae o ha he fied poin i reurned Werner Purgahofer 2

Compoie Tranformaion (6 general caling direcion R ( S(, 2 R(( ( 2 (,2 2 (2,2 2 (, (, 2 original afer 45 afer (,2 afer - 45 poiion roaion caling roaion back Werner Purgahofer 22

Eample ranlae b (3,4, hen roae b 45 and hen cale up b facor 2 in direcion. M = T(3,4 = 3 4 co 45 in 45 in 45 co 45 2. M 2 = R(45 = 3. M M3 = S(2, = 2 Werner Purgahofer 23 M = M M M 3 2

Eample ranlae b (3,4, hen roae b 45 and hen cale up b facor 2 in direcion M = M 3 M 2 M = 2 co 45 in 45 = in 45 co 45 2 = Werner Purgahofer co 45 in i 45 3 4 = 3co 45 4i 4in 45 in 45 co 45 3i 3in 45 + 4co 45 = = 2co 45 in 45 in i 45 co 45 6co 45 8i 8in 45 3i 3in 45+ + 4co 45

Reflecion abou ai: i abou ai: i Rf = Rf = Werner Purgahofer 25

Eample reflecion abou he ai wih angle = Werner Purgahofer 26

Eample reflecion abou he ai wih angle. roaion b 2. mirroring abou ai 3. roaion b. 2. 3. = + + Werner Purgahofer 27

Eample reflecion abou he ai wih angle co( in(. M = R( = in( co( 2. M 2 = S(, = 3. M 3 = R( =. 2. co in co in 3. P =M 3 ( M 2 ( M P= (M 3 M 2 M P Werner Purgahofer 28

Eample reflecion abou he ai wih angle M 3 M 2 M = co in in co co( in(( in( co( = = co in in co co in in co = = co 2 in 2 2inco co2 in2 = 2inco in 2 co 2 = in2 co2 Werner Purgahofer 29

Oher Tranformaion: Reflecion abou a Poin reflecion abou origin Rf O (=R(8 ( = Werner Purgahofer 3

Reflecion wih Repec o a General Line reflecion wih repec o he line =m+b m+b T(,b R( S(, R( T(,b m = an( Werner Purgahofer 3

Oher Tranformaion: Shear ( direcion hear along ai reference line = (, (, h (h, (h +, (, (, (, (, Werner Purgahofer 32

Oher Tranformaion: Shear (2 general direcion hear along ai reference line = ref h h ref h Werner Purgahofer 33 ref

Oher Tranformaion: Shear (3 general direcion hear along ai reference line = ref h h ref ref h Werner Purgahofer 34

Tranformaion beween Coordinae Sem M R ( T (,, A Careian em poiioned a (, wih orienaion in an Careian em Poiion of he reference frame afer ranlaing he origin of he em o he coordinae origin of he em Werner Purgahofer 35

Affine Tranformaion a a b a a b collinear poin on a line a on a line parallel line parallel line raio of diance along a line are preerved finie poin finie poin an affine ranformaion i a combinaion of ranlaion, roaion, caling, (reflecion, hear ranlaion, roaion, reflecion onl: angle, lengh preerving Werner Purgahofer 36

3D Tranformaion all concep can be eended o 3D in a raigh forward wa + projecion 3D 2D Werner Purgahofer 37

3D Tranlaion ( 3D Tranlaion ( ranlaion vecor (,,,, P T P ( P T P,, ( Werner Purgahofer 38

3D Tranlaion (2 3D Tranlaion (2 objec ranlaed b ranlaing boundar poin invere:,, (,, ( T T ( ( Werner Purgahofer 39

3D Roaion: Angle Orienaion roaion ai poiive angle counerclockwie roaion Werner Purgahofer 4

3D Roaion: Coordinae Ae ( ai co in in co co in in co P R ( P Werner Purgahofer 4

3D Roaion: Coordinae Ae ( ai co in in co P R ( P Werner Purgahofer 42

3D Roaion: Coordinae Ae ( ai co in in co P R ( P Werner Purgahofer 43

3D Roaion: Ai Parallel o Ai original objec poiion. ranlae roaion ai ono ai: T 2. roae objec hrough angle q 3. ranlae R ( T R ( T roaion ai o original ii poiion: T Werner Purgahofer 44

3D Roaion around Arbirar Ai an ai of roaion (dahed line defined wih poin P and P 2. The direcion of he uni ai vecor u deermine he roaion direcion. P 2 u P P 2 ( a, b, c P P 2 u P Werner Purgahofer 45

3D Roaion around Arbirar Ai u P. ranlae 2. roae u iniial poiion P o origin ono ai P u 3. roae objec 4. roae ai o 5. ranlae ai o around ai original orienaion original poiion Werner Werner Purgahofer Purgahofer 46 46

3D Roaion around Arbirar Ai 3D Roaion around Arbirar Ai ep : ranlaion T(,,,, ( T u u P Werner Purgahofer 47

3D Roaion around Arbirar Ai u P. ranlae 2. roae u iniial poiion P o origin ono ai P u 3. roae objec 4. roae ai o 5. ranlae ai o around ai original orienaion original poiion Werner Werner Purgahofer Purgahofer 48 48

u 3D Roaion around Arbirar Ai ep 2: roaion o ha u coincide wih ai (done wih wo roaion R (a: u plane R (b: u ai u 2a: 2b: P Werner Purgahofer 49

u 3D Roaion around Arbirar Ai ep 2a: u d b 2 c 2 u ( a, b, c u (,b,c bc u u co = c/d R ( c/ d b/ d b/ d c/ d b d c P u = (a,,d Werner Purgahofer 5

u 3D Roaion around Arbirar Ai ep 2b: u (,b,c co = d d a d in = -a R ( d a d u u (a,, u = (,, d a P u = (a,,d Werner Purgahofer 5

3D Roaion around Arbirar Ai u P. ranlae 2. roae u iniial poiion P o origin ono ai P u 3. roae objec 4. roae ai o 5. ranlae ai o around ai original orienaion original poiion Werner Werner Purgahofer Purgahofer 52 52

u 3D Roaion around Arbirar Ai ep 3: u aligned wih ai roaion around ai P Werner Purgahofer 53

3D Roaion around Arbirar Ai u P. ranlae 2. roae u iniial poiion P o origin ono ai P u 3. roae objec 4. roae ai o 5. ranlae ai o around ai original orienaion original poiion Werner Werner Purgahofer Purgahofer 54 54

u 3D Roaion around Arbirar Ai ep 4: undo roaion of ep 2 ep 5: undo ranlaion of ep R(θ = T - (P R R - (α R R - (β RR (θ RR (β R(α T(P T(P ep: 5 4a 4b 3 2b 2a invere of roaion: R ( T R ( R ( P Werner Purgahofer 55

3D Scaling wih repec o Origin 3D Scaling wih repec o Origin doubling he ie of an objec alo doubling he ie of an objec alo move he objec farher from he move he objec farher from he origin origin P S P Werner Purgahofer 56

3D Scaling wih oher Fied Poin T( F, F, F F S(,,, T( F F,, F, F ( F, F, F Werner Purgahofer 57

3D Scaling wih oher Fied Poin T( F, F, F F S(,,, T( F F,, F, F ( F, F, F (,, Werner Purgahofer 58

3D Scaling wih oher Fied Poin T( F, F, F F S(,,, T( F F,, F, F ( F, F, F (,, Werner Purgahofer 59

3D Scaling wih oher Fied Poin T( F, F, F F S(,,, T( F F,, F, F ( F, F, F (,, Werner Purgahofer 6

3D Scaling wih oher Fied Poin T( F, F, F S(,, T( F, F, F ( ( ( F ( F F Werner Purgahofer 6

3D Reflecion reflecion wih repec o poin line (8 roaion plane, e.g., plane: l RF P'(a,b,-c P(a,b,c RF reflecion relaive o plane Werner Purgahofer 62

3D Shear eample: hear relaive o -ai wih a=b= a b SH a b Werner Purgahofer 63