1 Computer Graphics Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester 2008-2009 ITGD3107 University of Palestine.

Slides:



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

30/9/2008Lecture 21 Computer Graphics Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD3107 University of Palestine.
2D Geometric Transformations
Computer Graphics Lecture 4 Geometry & Transformations.
Bellwork  Perform a glide reflection of and over line y=x for the points A: (-4,2), B:(-22,-3) and C:( 0,2) No Clickers.
1 Computer Graphics Chapter 6 2D Transformations.
Graphics-1 Gentle Introduction to Computer Graphics (2) Based on: –David Brogan’s “Introduction to Computer Graphics” Course Slides, University of Virginia.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Representation Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
1 Geometrical Transformation Tong-Yee Lee. 2 Modeling Transform Specify transformation for objects Allow definitions of objects in own coordinate systems.
Course Website: Computer Graphics 3: 2D Transformations.
Representation CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
Computer Graphics University of Palestine Dr. Sana’a Wafa Al-Sayegh
Graphics Programming Graphics Programming: Transformations.
1 Computer Graphics Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD3107 University of Palestine.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
C O M P U T E R G R A P H I C S Stuff CMSC 435 / 634 Transformations 1/29 Geometric Transformations Readings: Chapters 5-6.
Geometric Transformation. So far…. We have been discussing the basic elements of geometric programming. We have discussed points, vectors and their operations.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
CS 480/680 Computer Graphics Transformations Dr. Frederick C Harris, Jr.
Transformation & Projection Feng Yu Proseminar Computer Graphics :
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.
Introduction to Computer Security1 Information Security Principles Assistant Professor Dr. Sana’a Wafa Al-Sayegh 1 st semester University of.
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
University of Palestine Computer Graphics ITGD3107 Prepare: Mohammed J. el-masre Nidal M. El-Borbar Supervision:
Transformations Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
Introduction to Computer Security ©2004 Matt Bishop Information Security Principles Assistant Professor Dr. Sana’a Wafa Al-Sayegh 1 st Semester
16/5/ :47 UML Computer Graphics Conceptual Model Application Model Application Program Graphics System Output Devices Input Devices API Function.
Macromedia Fireworks MX 2004 ITEC 4830 Graphics Design Lesson 1 Bitmap Editing.
Geometric Transformations Hearn & Baker Chapter 5 Some slides are taken from Robert Thomsons notes.
Geometric Transformations
1 Representation. 2 Objectives Introduce concepts such as dimension and basis Introduce coordinate systems for representing vectors spaces and frames.
 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.
Computer Graphics I, Fall 2010 Transformations.
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,
Transformations. Transformations Introduce standard transformations ◦ Rotation ◦ Translation ◦ Scaling ◦ Shear Derive homogeneous coordinate transformation.
COMPUTER GRAPHICS AND LINEAR ALGEBRA AN INTRODUCTION.
Instructor: Dr. Shereen Aly Taie Basic Two-Dimensional Geometric Transformation 5.2 Matrix Representations and Homogeneous Coordinates 5.3 Inverse.
Transformations University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2016 Tamara Munzner.
Modeling Transformations
Introduction to Computer Graphics with WebGL
Lecture 10 Geometric Transformations In 3D(Three- Dimensional)
Computer Graphics 3: 2D Transformations
Transformations Objectives
Coordinate Change.
Warm up Identify the transformation ∆RST → ∆XYZ.
Geometric Transformations Hearn & Baker Chapter 5
Computer Graphics Transformations.
Computer Graphics 3: 2D Transformations
3D Geometric Transformations
2D Transformation.
Computer Graphics Transformations.
Points, Vectors, Lines, Spheres and Matrices
Lecture 2 Transformations
COMP 175: Computer Graphics February 9, 2016
[ ] [ ] EXAMPLE 4 Use scalar multiplication in a dilation
Geometric Transformations
4.1: Congruence and Transformation
2D Geometric Transformations
Transformations Ed Angel
Transformations Ed Angel Professor Emeritus of Computer Science
Geometrical Transformations
Isaac Gang University of Mary Hardin-Baylor
Warm up Identify the transformation ∆RST → ∆XYZ.
Objectives Draw, identify, and describe transformations in the coordinate plane. Use properties of rigid motions to determine whether figures are congruent.
Dilations NOT an isometry.
Warm up.
Translation in Homogeneous Coordinates
Presentation transcript:

1 Computer Graphics Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD3107 University of Palestine

2 Chapter 5 Two Dimensional Geometric Transformations ITGD3107 Computer Graphics

3 Two Dimensional Geometric Transformations Some Basics 2D Translations. 2D Scaling from the origin. 2D Rotation about the origin. Transformations.

4 Some Basics Basic geometric types. –Scalars s –Vectors v –Points p Transformations –Types of transformation: rotation, translation, scale. –Matrix representation –Order P=T(P)

5 2D Translations. P P’

6 Component-wise addition of vectors v’ = v + t where and x’ = x + dx y’ = y + dy To move polygons: translate vertices (vectors) and redraw lines between them Preserves lengths (isometric) Preserves angles (conformal) dx = 2 dy = 3 Y X Example: 2D Translation (Note: Points are at object’s local coordinate system origin)

7 2D Scaling from the origin. P P’

8 Component-wise scalar multiplication of vectors v’ = Sv where and Y X Example: 2D Scaling

9 2D Rotation about the origin. y x r r P’(x’,y’) P(x,y) 

10 2D Rotation about the origin. y x r r P’(x’,y’) P(x,y)   y x

11 2D Rotation about the origin. y x r r P’(x’,y’) P(x,y)   y x

12 2D Rotation about the origin. Substituting for r : Gives us :

13 2D Rotation about the origin. Rewriting in matrix form gives us :

14 Transformations. Translation. –P=T + P Scale –P=S  P Rotation –P=R  P We would like all transformations to be multiplications

15 Translate [1,3] by [7,9] Scale [2,3] by 5 in the X direction and 10 in the Y direction Rotate [2,2] by 90 ° ( π /2) Examples