Math for CSTutorial 11 Course Outline Homogeneous Coordinates.

Slides:



Advertisements
Similar presentations
Computer Graphics Lecture 4 Geometry & Transformations.
Advertisements

Kinematic Modelling in Robotics
1 ME 302 DYNAMICS OF MACHINERY Dynamic Force Analysis IV Dr. Sadettin KAPUCU © 2007 Sadettin Kapucu.
Kinematics Pose (position and orientation) of a Rigid Body
1 Geometrical Transformation 2 Outline General Transform 3D Objects Quaternion & 3D Track Ball.
CMPE 466 COMPUTER GRAPHICS
Linear Algebra and SVD (Some slides adapted from Octavia Camps)
Elementary 3D Transformations - a "Graphics Engine" Transformation procedures Transformations of coordinate systems Translation Scaling Rotation.
Ch. 2: Rigid Body Motions and Homogeneous Transforms
3-D Geometry.
CSCE 689: Computer Animation Rotation Representation and Interpolation
1 Geometrical Transformation Tong-Yee Lee. 2 Modeling Transform Specify transformation for objects Allow definitions of objects in own coordinate systems.
Math for CSLecture 11 Mathematical Methods for Computer Science Lecture 1.
Math for CSLecture 11 Mathematical Methods for Computer Science Lecture 1.
Math for CSTutorial 11 Matrix Multiplication Rule Matrices make linear transformations of vectors.
2D Transformations Unit - 3. Why Transformations? In graphics, once we have an object described, transformations are used to move that object, scale it.
3D Graphics Goal: To produce 2D images of a mathematically described 3D environment Issues: –Describing the environment: Modeling (mostly later) –Computing.
Mathematical Fundamentals
Systems and Matrices (Chapter5)
FROM CONCRETE TO ABSTRACT Basic Skills Analysis Hypothesis Proof Elementary Matrices and Geometrical Transformations for Linear Algebra Helena Mirtova.
5.2 Three-Dimensional Geometric and Modeling Transformations 2D3D Consideration for the z coordinate.
Geometric Transformation. So far…. We have been discussing the basic elements of geometric programming. We have discussed points, vectors and their operations.
Transformation of Graphics
Kinematics of Robot Manipulator
1 Ray Tracing Polyhedra ©Anthony Steed
Lecture Notes: Computer Graphics.
Homogeneous Coordinates (Projective Space) Let be a point in Euclidean space Change to homogeneous coordinates: Defined up to scale: Can go back to non-homogeneous.
CGPage: 1 東吳資訊科學 江清水 3.1 2D Geometry - points and polygons X Y A point in 2D is represented by two real numbers (X,Y) A line segment is represented by.
CSE 681 Review: Transformations. CSE 681 Transformations Modeling transformations build complex models by positioning (transforming) simple components.
Transformations Jehee Lee Seoul National University.
Rick Parent - CIS681 ORIENTATION Use Quaternions Interpolating rotations is difficult.
Advanced Computer Graphics Spring 2014
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
Jinxiang Chai Composite Transformations and Forward Kinematics 0.
Computer Graphics 3D Transformations. Translation.
Two-Dimensional Geometric Transformations ch5. 참조 Subjects : Basic Transformations Homogeneous Coordinates Composite Transformations Other Transformations.
Geometric Transformations Hearn & Baker Chapter 5 Some slides are taken from Robert Thomsons notes.
Geometric Transformations
ARCH 655 Parametric Modeling in Design Wei Yan, Ph.D., Associate Professor College of Architecture, Texas A&M University Lecture 5 Matrices and Transforms.
CPSC 453 Tutorials Xin Liu Oct 16, HW1 review Why I was wrong?
Composite 3D Transformations. Example of Composite 3D Transformations Try to transform the line segments P 1 P 2 and P 1 P 3 from their start position.
3D Transformation A 3D point (x,y,z) – x,y, and z coordinates
Geometric Transformations UBI 516 Advanced Computer Graphics Aydın Öztürk
Fall 2004CS-321 Dr. Mark L. Hornick 1 2-D Transformations World Coordinates Local/Modelling Coordinates x y Object descriptions Often defined in model.
Honours Graphics 2008 Session 2. Today’s focus Vectors, matrices and associated math Transformations and concatenation 3D space.
CSCE 552 Fall 2012 Math By Jijun Tang. Applied Trigonometry Trigonometric functions  Defined using right triangle  x y h.
II-1 Transformations Transformations are needed to: –Position objects defined relative to the origin –Build scenes based on hierarchies –Project objects.
III- 1 III 3D Transformation Homogeneous Coordinates The three dimensional point (x, y, z) is represented by the homogeneous coordinate (x, y, z, 1) In.
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
Computer Graphic 2 D Transformation.
Robotic Arms and Matrices By Chris Wong and Chris Marino.
Lecture 10 Geometric Transformations In 3D(Three- Dimensional)
Unit 5 Transformations Review
Ch. 2: Rigid Body Motions and Homogeneous Transforms
3. Transformation
Geometric Transformations Hearn & Baker Chapter 5
Review: Transformations
Solving Systems of Linear Equations by Graphing
We will be looking for a solution to the system of linear differential equations with constant coefficients.
Review: Transformations
Homogeneous Coordinates (Projective Space)
Mobile Robot Kinematics
9.3 – Graphing Linear Equations
(c) University of Wisconsin, CS559
Course 7 Motion.
CSCE441: Computer Graphics 2D/3D Transformations
Chapter 2 Mathematical Analysis for Kinematics
Warm Up 6.3 Complete the chart for the given counterclockwise rotations about the origin. 90o 180o 270o R(3, -3) S(1, 4) Use.
3.5 Write and Graph Equations of Lines
Solving Linear Systems by Graphing
Presentation transcript:

Math for CSTutorial 11 Course Outline Homogeneous Coordinates

Math for CSTutorial 12 Matrix Multiplication Rule Matrices make linear transformations of vectors

Math for CSTutorial 13 Translation, Scaling, Rotation of Vectors

Math for CSTutorial 14 Translation Now, we can write the translation as the multiplication by specially designed matrix: Translation in Homogeneous coordinates

Math for CSTutorial 15 Two translations We can check that the matrix representing two sequential translations can be written as the multiplication of their matrices. Sequential Translations in Homogeneous Coordinates

Math for CSTutorial 16 Scaling in Homogeneous coordinates Scaling Scaling matrix looks similar to what it was for ordinary coordinates: What is the Matrix for Scaling 0.1x 1 and 10x 2 ?

Math for CSTutorial 17 Two scalings The matrix of two successful scalings is the multiplication of two scaling matrices: Several Scalings in Homogeneous coordinates What is the Matrix for Scaling 0.1x 1 and 10x 2 and then 20x 1 and 0.1x 2 ?

Math for CSTutorial 18 Rotation Two Rotations Easy to check, that clock-wise rotation on angle θ is given by: Two successful rotations can be represented by multiplication of their matrices: Rotation in Homogeneous coordinates

Math for CSTutorial 19 Homogeneous coordinates scaled by a constant, represent the same point. x2x2 x1x1 W2W3 W1 Scaling of Homogeneous coordinates

Math for CSTutorial 110 Scaling of Homogeneous coordinates

Math for CSTutorial 111 Rotation How to write the rotation around a point ? Bring p back Bring p to the origin Scaling Bring p back Bring p to the origin Bring the point p to the origin; make a rotation, bring it back: … the same procedure for scaling: Rotation around arbitrary point

Math for CSTutorial 112 1). Write down the matrix for: Rotation θ=90° around p=(2,5), translation (-2,2), scaling (x2) around p=(-1,1). Translation Rotation Scaling ( T(-1,1)·S(2,2)·T(1,-1) ) ·T(-2,2) ·( T(2,5) ·R(90) ·T(-2,-5) ) Example 1. Series of transformations

Math for CSTutorial 113 PointTranslation Scaling The translation and scaling are very similar in 3D: Homogeneous coordinates in 3D

Math for CSTutorial 114 The Rotation in 3D can be done around arbitrary axis. Euler angles representation. Any rotation is the composition of three basic rotation, a rotation around the axis x of an angle , a rotation around the axis y of an angle  and a rotation around the angle z of an angle  are called Euler angles In right hand coordinated these rotations are defined as follows Simple representation Order-dependent:  Not suitable for animation, because the interpolation between the angles of rotation leads to false locations Rotation in 3D: Axis needed

Math for CSTutorial 115 2). Rotation θ=90° around x followed by rotation θ=90° around y. find the axis of rotation. R=R1·R2; If c – rotation axis, then: Rc=c; Solve v.r.t c; c=(a,a,-a,1) 3). Prove that rotation is not commutative: Rx(θ 1 )·Ry(θ 2 )≠ Ry(θ 2 ) ·Rx(θ 1 ) Examples 2,3. Rotations in 3D

Math for CSTutorial 116 The line equation in Euclidian Coordinates is: The Euclidian point (x,y) in Homogeneous Coordinates can be written as p=(x,y,1) or p=(αx, αy, α) Therefore, denoting Euclidian line (1) by the homogeneous triple u=(a,b,c) we obtain, that the point p lies on the line u iff: For example, point p=(1,2,1) lies on the line y=x+1 which can be written by u=(1,-1,1) Lines in Homogeneous Coordinates

Math for CSTutorial 117 Now, let us look for the interception point p=(x, y, w) of two lines u 1 =(a 1,b 1,c 1 ) and u 2 =(a 2,b 2,c 2 ): Form the first equation: Substituting this into the second: Taking convenient choice of scaling, in which Intersection of two lines 1/2

Math for CSTutorial 118 We obtain On the other hand, writing formally We have showed, that the point p of the intersection of two lines u 1 and u 2 is described by Intersection of two lines 2/2

Math for CSTutorial 119 Now, let us look for the line u=(a, b, c) passing through two points p 1 =(x 1,y 1,w 1 ) and p 2 =(x 2,y 2,w 2 ): Similarly to the solution of the lines intersection, we obtain The third point p 3 =(x 3,y 3,w 3 ) lies on the line u if (p 3,u)=0, which via definitions of determinant can be written as Due to duality of representation of lines and points in Homogeneous Coordinates, if the three lines u 1, u 2 and u 3 intersect in a single point, they satisfy Three points on the line