CS1550 Fundamentals For Computer Graphics Transformations-2

Slides:



Advertisements
Similar presentations
Computer Graphics: 2D Transformations
Advertisements

Transforming graphs of functions
Computer Graphics 2D & 3D Transformation.
Geometric Transformations
1 King ABDUL AZIZ University Faculty Of Computing and Information Technology CS 454 Computer graphics Two Dimensional Geometric Transformations Dr. Eng.
CS 4731: Computer Graphics Lecture 7: Introduction to Transforms, 2D transforms Emmanuel Agu.
Elementary 3D Transformations - a "Graphics Engine" Transformation procedures Transformations of coordinate systems Translation Scaling Rotation.
1 CSCE 441 Computer Graphics: 2D Transformations Jinxiang Chai.
Transformations Review. Recall: Types of Transformations Translations Reflections Rotations.
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.
5.2 Three-Dimensional Geometric and Modeling Transformations 2D3D Consideration for the z coordinate.
2D Geometric Transformations
 2D Transformations 2D Transformations  Translation Translation  Rotation Rotation  Scaling Scaling.
Two-Dimensional Geometric Transformations A two dimensional transformation is any operation on a point in space (x, y) that maps that point's coordinates.
Section 9.2 Adding and Subtracting Matrices Objective: To add and subtract matrices.
Multimedia Programming 07: Image Warping Keyframe Animation Departments of Digital Contents Sang Il Park.
3D Transformation A 3D point (x,y,z) – x,y, and z coordinates
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.
Computer Graphics Lecture 16 Fasih ur Rehman. Last Class Homogeneous transformations Types of Transformations – Linear Transformations – Affine Transformations.
CSCE 441 Computer Graphics: 2D Transformations
Modeling Transformation
Instructor: Dr. Shereen Aly Taie Basic Two-Dimensional Geometric Transformation 5.2 Matrix Representations and Homogeneous Coordinates 5.3 Inverse.
Forward Projection Pipeline and Transformations CENG 477 Introduction to Computer Graphics.
2D Geometry - points and polygons
Computer Graphics 2D Transformations
Modeling Transformations
Lecture 10 Geometric Transformations In 3D(Three- Dimensional)
Math Fundamentals Maths revisit.
Transformations Objectives
3D Geometric Transformation
Geometric Transformations Hearn & Baker Chapter 5
2D TRANSFORMATIONS.
2D Transformations By: KanwarjeetSingh
Computer Graphics CC416 Week 15 3D Graphics.
Computer Graphics Transformations.
11.3 Reflections 1/11/17.
3D Transformation.
CS1550 Fundamentals For Computer Graphics Trigonometry
Computer Graphics 3D Transformations
3D Geometric Transformations
3B Reflections 9-2 in textbook
CS1550 Fundamentals For Computer Graphics Transformations-1
Objectives Identify reflections, rotations, and translations.
Chapter 5 2-D Transformations.
Computer Graphics Transformations.
Introduction to Computer Graphics CS 445 / 645
Lecture 7 Geometric Transformations (Continued)
2D Transformations y y x x y x.
Computer Graphics Transformations
Three-Dimensional Graphics
Line and Character Attributes 2-D Transformation
Linear Algebra Review.
Unit 1 Transformations in the Coordinate Plane
Computer Graphics Lecture 12 2D Transformations II Taqdees A
Transformations in 3 Dimensions CS /28/2018 Dr. Mark L. Hornick
4-4 Geometric Transformations with Matrices
Three-Dimensional Graphics
Transformations Ed Angel
Reflections in Coordinate Plane
Unit 1 Transformations in the Coordinate Plane
Transformations Ed Angel Professor Emeritus of Computer Science
Isaac Gang University of Mary Hardin-Baylor
Transformations.
Maps one figure onto another figure in a plane.
QQ.
Translation in Homogeneous Coordinates
Presentation transcript:

CS1550 Fundamentals For Computer Graphics Transformations-2 Sumanth Shankar California State University, Los Angeles

Homogeneous Coordinates Homogeneous coordinates define a point in a plane using three coordinates instead of two. For a point P with coordinates (X, Y) there exists homogeneous point (x, y, t) such that X = x/t and Y = y/t. For example the point(3, 4) has homogeneous coordinates (6, 8, 2).

2D Translation The matrix notation for 2D translation is 𝑥′ 𝑦′ 1 = 1 0 𝑡𝑥 0 1 𝑡𝑦 0 0 1 * 𝑥 𝑦 1 x’ = x + tx y’ = y + ty

2D Scaling The matrix notation for 2D scaling is 𝑥′ 𝑦′ 1 = 𝑠𝑥 0 0 0 𝑠𝑦 0 0 0 1 * 𝑥 𝑦 1 Scaling is relative to the origin. It means the point (0, 0) remains (0, 0) all other points move away from the origin

2D Scaling To scale relative to another point (px, py) we first subtract (px, py) from (x, y) and add (px, py) back to (x, y). x’ = sx(x – px) + px y’ = sy(y – py) + py x’ = sx x + px(1 – sx) y’ = sy y + py(1 – sy)

2D Scaling In matrix form it is represented using 𝑥′ 𝑦′ 1 = 𝑠𝑥 0 𝑝𝑥(1 −𝑠𝑥) 0 𝑠𝑦 𝑝𝑦(1 −𝑠𝑦) 0 0 1 * 𝑥 𝑦 1

2D Reflections To make reflection about the vertical axis when x = 1, we subtract 1 from the x coordinate, then we reverse the sign of the modified x coordinate and finally we add 1 to the x coordinate. x1 = x – 1 x2 = -(x – 1) x’ = -(x – 1) + 1 y’ = y

2D Reflections In general when for ax the following transformation is required. x’ = -(x – ax) + ax = -x + 2ax y’ = y In matrix form 𝑥′ 𝑦′ 1 = −1 0 2𝑎𝑥 0 1 0 0 0 1 * 𝑥 𝑦 1

2D Reflections Similarly when for ay the following transformation is required. x’ = x y’ = -(y – ay) + ay = -y + 2ay In matrix form 𝑥′ 𝑦′ 1 = 1 0 0 0 −1 2𝑎𝑦 0 0 1 * 𝑥 𝑦 1