2D TRANSFORMATIONS.

Slides:



Advertisements
Similar presentations
Computer Graphics: 2D Transformations
Advertisements

Computer Graphics: 3D Transformations
COMPUTER GRAPHICS 2D TRANSFORMATIONS.
Gursharan Singh Tatla TRANSFORMATIONS Gursharan Singh Tatla Gursharan Singh Tatla.
Geometric Transformations
Three Dimensional Modeling Transformations
1 Computer Graphics Chapter 6 2D Transformations.
Chapter 5 Geometric Transformations
Two-Dimensional Geometric Transformations
2D TRANSFORMATIONS. 2D Transformations What is transformations? –The geometrical changes of an object from a current state to modified state. Why the.
25 May May May 2015Week 5-2D Transformations1 2D Transformations By: KanwarjeetSingh.
Linear Algebra and SVD (Some slides adapted from Octavia Camps)
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 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
CS 450: Computer Graphics 2D TRANSFORMATIONS
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.
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
Graphics Graphics Korea University cgvr.korea.ac.kr 2D Geometric Transformations 고려대학교 컴퓨터 그래픽스 연구실.
2D Transformation of Graphics
2D Transformations.
Dx = 2 dy = 3 Y X D Translation A translation is applied to an object by repositioning it along a straight-line path.
2D Geometric Transformations
Part7: Geometric Transformations
GRAFIKA KOMPUTER ~ M. Ali Fauzi. Drawing 2 D Graphics.
 2D Transformations 2D Transformations  Translation Translation  Rotation Rotation  Scaling Scaling.
CSE 681 Review: Transformations. CSE 681 Transformations Modeling transformations build complex models by positioning (transforming) simple components.
Transformations Jehee Lee Seoul National University.
Geometric Transformations
Computer Graphics 2D Transformations. 2 of 74 Contents In today’s lecture we’ll cover the following: –Why transformations –Transformations Translation.
Introduction to Computer Graphics Geometric Transformations
Computer Graphics 3D Transformations. Translation.
Two-Dimensional Geometric Transformations ch5. 참조 Subjects : Basic Transformations Homogeneous Coordinates Composite Transformations Other Transformations.
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 Transformations
GEOMETRIC TRANFORMATIONS Presented By -Lakshmi Sahithi.
Transformations on the Coordinate Plane: Translations and Rotations.
2D Geometric Transformation Translation A translation is applied to an object by repositioning it along a straight-line path from one coordinate location.
Geometric Transformations UBI 516 Advanced Computer Graphics Aydın Öztürk
Lecture 3: Introduction to 2D Graphics
CS552: Computer Graphics Lecture 4: 2D Graphics. Recap 2D Graphics Coordinate systems 2D Transformations o Translation o Scaling o Rotation Combining.
II-1 Transformations Transformations are needed to: –Position objects defined relative to the origin –Build scenes based on hierarchies –Project objects.
Learning Objectives Affine transformations Affine transformations Translation Translation Rotation Rotation Scaling Scaling Reflection Reflection Shear.
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.
1 Teaching Innovation - Entrepreneurial - Global The Centre for Technology enabled Teaching & Learning, N Y S S, India DTEL DTEL (Department for Technology.
w v The reflection of throughvw Reflection is a linear transformation Find a matrix M such that M = v The reflection of through y = mxv.
Computer Graphics Lecture 11 2D Transformations I Taqdees A. Siddiqi
Geometric Transformations Ceng 477 Introduction to Computer Graphics Computer Engineering METU.
2D Transformations What is transformations? The geometrical changes of an object from a current state to modified state. Why the transformations is needed?
Computer Graphic 2 D Transformation.
CSCE 441 Computer Graphics: 2D Transformations
Transformations. Transformations Introduce standard transformations ◦ Rotation ◦ Translation ◦ Scaling ◦ Shear Derive homogeneous coordinate transformation.
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.
2D TRANSFORMATIONS.
2D Transformations By: KanwarjeetSingh
2D Geometric Transformations
Computer Graphics CC416 Week 15 3D Graphics.
Computer Graphics Lecture 18 3-D Transformations-II Taqdees A
Computer Graphics 3D Transformations
2D Transformations y y x x y x.
Line and Character Attributes 2-D Transformation
Unit 1 Transformations in the Coordinate Plane
2D/3D Transformations User Interfaces.
TWO DIMENSIONAL TRANSFORMATION
Presentation transcript:

2D TRANSFORMATIONS

To be discussed… Need of 2D-transformation. Types of transformation - Translation - Rotation - Scaling Composite transformation Reflection Shearing

2D Transformations Need of transformation: -The geometrical changes of an object from a current state to modified state. Need of transformation: -To manipulate the initially created object and to display the modified object without having to redraw it.

2D Transformations 2 ways Object Transformation Alter the coordinates descriptions of an object. Translation, rotation, scaling etc. Coordinate system remains unchanged. Coordinate transformation Produce a different coordinate system.

Translation A translation moves all points in an object along the same straight-line path to new positions. The path is represented by a vector, called the translation or shift vector. We can write the components: p'x px + p'y = py + or in matrix form: P' = P + T (2, 2) = 6 =4 ? ty tx ’ tx ty

Matrix Representation Point in column-vector: Our point now has three coordinates. So our matrix is needs to be 3x3. Translation: x y 1 BACK

Rotation P’ A rotation repositions all points in an object along a circular path in the plane centered at the pivot point. First, we’ll assume the pivot is at the origin.  P

Rotation r  P(x,y) y x P’(x’, y’)  y’  x’ We can write the components: p'x = px cos  – py sin  p'y = px sin  + py cos  or in matrix form: P' = R • P  can be clockwise (-ve) or counterclockwise (+ve as our example).  y’ P(x,y) r  y  x x’ BACK

Scaling P’ Scaling changes the size of an object and involves two scale factors, Sx and Sy for the x- and y- coordinates respectively. Scales are about the origin. We can write the components: p'x = sx • px p'y = sy • py or in matrix form: P' = S • P Scale matrix as: P

Matrix Representation Rotation Scaling BACK

Composite Transformation We can represent any sequence of transformations as a single matrix. Composite transformations: Rotate about an arbitrary point – translate, rotate, translate Scale about an arbitrary point – translate, scale, translate Change coordinate systems – translate, rotate, scale

Composite Transformation Matrix Arrange the transformation matrices in order from right to left. General Pivot- Point Rotation Operation :- Translate (pivot point is moved to origin) Rotate about origin Translate (pivot point is returned to original position) T(pivot) • R() • T(–pivot) 1 0 -tx 0 1 -ty 0 0 1 cos -sin 0 sin cos 0 0 0 1 1 0 tx 0 1 ty . cos -sin -tx cos+ ty sin sin cos -tx sin - ty cos 0 0 1 1 0 tx 0 1 ty 0 0 1 . cos -sin -tx cos+ ty sin + tx sin cos -tx sin - ty cos + ty 0 0 1

Composite Transformation Matrix General Fixed-Point Scaling Operation :- Translate (fixed point is moved to origin) Scale with respect to origin Translate (fixed point is returned to original position) BACK

Other transformations Reflection: x-axis y-axis

Other transformations Reflection: origin line x=y BACK

Other transformations Shear: x-direction y-direction BACK

Thankyou BACK