II-1 Transformations Transformations are needed to: –Position objects defined relative to the origin –Build scenes based on hierarchies –Project objects.

Slides:



Advertisements
Similar presentations
Transformations Ed Angel Professor Emeritus of Computer Science
Advertisements

COMPUTER GRAPHICS 2D TRANSFORMATIONS.
Geometric Transformations
Three Dimensional Modeling Transformations
1 ME 302 DYNAMICS OF MACHINERY Dynamic Force Analysis IV Dr. Sadettin KAPUCU © 2007 Sadettin Kapucu.
Informationsteknologi Wednesday, November 7, 2007Computer Graphics - Class 51 Today’s class Geometric objects and transformations.
25 May May May 2015Week 5-2D Transformations1 2D Transformations By: KanwarjeetSingh.
HCI 530 : Seminar (HCI) Damian Schofield. HCI 530: Seminar (HCI) Transforms –Two Dimensional –Three Dimensional The Graphics Pipeline.
Graphs of Trig Functions
Math for CSTutorial 11 Course Outline Homogeneous Coordinates.
CS 4731: Computer Graphics Lecture 7: Introduction to Transforms, 2D transforms Emmanuel Agu.
CS 376 Introduction to Computer Graphics 02 / 09 / 2007 Instructor: Michael Eckmann.
1 CSCE 441 Computer Graphics: 2D Transformations Jinxiang Chai.
2D/3D Geometric Transformations CS485/685 Computer Vision Dr. George Bebis.
1 Geometrical Transformation Tong-Yee Lee. 2 Modeling Transform Specify transformation for objects Allow definitions of objects in own coordinate systems.
©College of Computer and Information Science, Northeastern UniversityJune 26, CS U540 Computer Graphics Prof. Harriet Fell Spring 2009 Lecture 11.
Math for CSLecture 11 Mathematical Methods for Computer Science Lecture 1.
Math for CSTutorial 11 Matrix Multiplication Rule Matrices make linear transformations of vectors.
Transformations CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
Computer Graphics with OpenGL 3e
Larry F. Hodges (modified by Amos Johnson) 1 2D Transformations.
2D Transformations x y x y x y. 2D Transformation Given a 2D object, transformation is to change the object’s Position (translation) Size (scaling) Orientation.
2D Transformations Unit - 3. Why Transformations? In graphics, once we have an object described, transformations are used to move that object, scale it.
CAP4730: Computational Structures in Computer Graphics
UNIT - 5 3D transformation and viewing. 3D Point  We will consider points as column vectors. Thus, a typical point with coordinates (x, y, z) is represented.
Unit 9: Vectors, Matrices and Transformations
5.2 Three-Dimensional Geometric and Modeling Transformations 2D3D Consideration for the z coordinate.
POLAR COORDINATES (Ch )
CS 480/680 Computer Graphics Representation Dr. Frederick C Harris, Jr. Fall 2012.
Geometric Transformation. So far…. We have been discussing the basic elements of geometric programming. We have discussed points, vectors and their operations.
CS 480/680 Computer Graphics Transformations Dr. Frederick C Harris, Jr.
Lecture Notes: Computer Graphics.
Dx = 2 dy = 3 Y X D Translation A translation is applied to an object by repositioning it along a straight-line path.
Part7: Geometric Transformations
CSE 681 Review: Transformations. CSE 681 Transformations Modeling transformations build complex models by positioning (transforming) simple components.
Transformations Jehee Lee Seoul National University.
Computer Graphics, KKU. Lecture 51 Transformations Given two frames in an affine space of dimension n, we can find a ( n+1 ) x ( n +1) matrix that.
Transformations Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
Geometric Objects and Transformation
CSE Real Time Rendering Week 5. Slides(Some) Courtesy – E. Angel and D. Shreiner.
Computer Graphics 3D Transformations. Translation.
Two-Dimensional Geometric Transformations A two dimensional transformation is any operation on a point in space (x, y) that maps that point's coordinates.
GEOMETRIC TRANFORMATIONS Presented By -Lakshmi Sahithi.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
Transformations of Geometric Figures Dr. Shildneck Fall, 2015.
Objective: Students will be able to represent translations, dilations, reflections and rotations with matrices.
Properties or Rules of Transformations Equations used to find new locations.
Geometric Transformations UBI 516 Advanced Computer Graphics Aydın Öztürk
January 19, y X Z Translations Objects are usually defined relative to their own coordinate system. We can translate points in space to new positions.
3-D Geometric Transformations
Fall 2004CS-321 Dr. Mark L. Hornick 1 2-D Transformations World Coordinates Local/Modelling Coordinates x y Object descriptions Often defined in model.
Affine Geometry.
Honors Geometry.  We learned how to set up a polygon / vertex matrix  We learned how to add matrices  We learned how to multiply matrices.
 An image is the new figure, and the preimage is the original figure  Transformations-move or change a figure in some way to produce an image.
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.
Computer Graphics I, Fall 2010 Transformations.
2D Transformation Homogenous Coordinates Scale/Rotate/Reflect/Shear: X’ = XT Translate: X’ = X + T Multiple values for the same point e.g., (2, 3, 6)
Polar Graphs: Rose By: Sandy Foley and Dan Sigman 27 February 2014 Period B.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Transformations Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Computer Graphic 2 D Transformation.
CSCE 441 Computer Graphics: 2D Transformations
Transformations. Transformations Introduce standard transformations ◦ Rotation ◦ Translation ◦ Scaling ◦ Shear Derive homogeneous coordinate transformation.
Modeling Transformation
Robotic Arms and Matrices By Chris Wong and Chris Marino.
Lecture 10 Geometric Transformations In 3D(Three- Dimensional)
Transforms.
Computer Graphics 3D Transformations
Chapter IV Spaces and Transforms
TWO DIMENSIONAL TRANSFORMATION
Presentation transcript:

II-1 Transformations Transformations are needed to: –Position objects defined relative to the origin –Build scenes based on hierarchies –Project objects from three to two dimensions Transformations include: –Translation –Scaling –Rotation –Reflections Transformations can be represented by matrices and matrix multiplication II 2D Transformation

II-2 Transformation of Points Representation of Points: ; Transformation of Straight Lines

II-3 Rotation Consider rotation about the origin by  degrees –radius stays the same, angle increases by  x’=x cos  –y sin  y’ = x sin  + y cos  x = r cos  y = r sin  x’ = r cos (  y’ = r sin ( 

II-4 The transformation for a general rotation about the origin by an arbitrary angle

II-5 Scaling Scaling increases or decreases the size of the object Scaling occurs with respect to the origin –If the object is not centered at the origin, it will move in addition to changing size In general, this is done with the equations: x n = s x * x y n = s y * y This can also be done with the matrix multiplication:

II-6 Example:

II-7 Reflection corresponds to negative scale factors original s x = -1 s y = 1 s x = -1 s y = -1s x = 1 s y = -1

II-8 The reflection about the y=x is obtained by The reflection about the y-axis (x=0) is obtained by The reflection about the x-axis (y=0) is obtained by The reflection about the y=-x is obtained by

II-9

II-10

II-11 Translations The amount of the translation is added to or subtracted from the x and y coordinates In general, this is done with the equations: x n = x + t x y n = y + t y This can also be done with the matrix multiplication:

II-12 Homogeneous Coordinates The two dimensional point (x, y) is represented by the homogeneous coordinate (x, y, 1) Some transformations will alter this third component so it is no longer 1 In general, the homogeneous coordinate (x, y, w) represents the two dimensional point (x/w, y/w) General transformation matrix:

II-13 Order of Transformations Matrix multiplication is not commutative so changing the order of transformation can change the result For example, changing the order of a translation and a rotation produces a different result:

II-14

II-15

II-16

II-17 Rotation about an arbitrary point through an angle

II-18

II-19

II-20