Download presentation
Presentation is loading. Please wait.
1
Modeling Transformations
2
Contents 2D-Transformations -Translation – 2D - Scaling – 2D
-Rotation – 2D Mirror Reflection Inverse 2D – Transformations Homogeneous coordinates -Translations with homogeneous -Scaling with homogeneous -Rotation with homogeneous
3
2D-Transformations Transformations are a fundamental part of computer graphics. Transformations are used to position objects, to shape objects, to change viewing positions, and even to change how something is viewed (e.g. the type of perspective that is used). There are 4 main types of transformations that one can perform in 2 dimensions: Translations Scaling Rotation Reflection BACK
4
Translation – 2D Shifting of an object from one position to anther is called translation Translated coord. are , x’ = x + dx y’ = y + dy BACK
5
Scaling – 2D To scale an object by a vector v = (vx, vy, vz), each point p = (px, py, pz) would need to be multiplied with this scaling matrix: Types of Scaling: Differential ( sx != sy ) Uniform ( sx = sy ) BACK
6
Rotation – 2D rotated original Coordinates before rotation
Coordinates after rotation BACK
7
Rotation – 2D BACK
8
Mirror Reflection Back
9
Inverse 2D - Transformations
BACK
10
Homogeneous coordinates
To perform a complex transformation, you usually make it by combining a number of basic transformations. In order to represent all transformations in the same form, computer scientists have devised what are called homogeneous coordinates. Add a third coordinate, z A 2D point is a 3 coordinates vector: BACK
11
Translations with homogeneous
BACK
12
Scaling with homogeneous
BACK
13
Rotation with homogeneous
BACK
14
Thanks !!!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.