5.2 Three-Dimensional Geometric and Modeling Transformations 2D3D Consideration for the z coordinate.

Slides:



Advertisements
Similar presentations
3D Transformations Assist. Prof. Dr. Ahmet Sayar
Advertisements

Computer Graphics: 3D Transformations
Gursharan Singh Tatla TRANSFORMATIONS Gursharan Singh Tatla Gursharan Singh Tatla.
Three Dimensional Modeling Transformations
1 ME 302 DYNAMICS OF MACHINERY Dynamic Force Analysis IV Dr. Sadettin KAPUCU © 2007 Sadettin Kapucu.
1 Computer Graphics Chapter 6 2D Transformations.
Chapter 5 Geometric Transformations
1 Geometrical Transformation 2 Outline General Transform 3D Objects Quaternion & 3D Track Ball.
CMPE 466 COMPUTER GRAPHICS
1 King ABDUL AZIZ University Faculty Of Computing and Information Technology CS 454 Computer graphics Two Dimensional Geometric Transformations Dr. Eng.
CS 376 Introduction to Computer Graphics 02 / 09 / 2007 Instructor: Michael Eckmann.
1 CSCE 441 Computer Graphics: 2D Transformations Jinxiang Chai.
Computer Graphics University of Palestine Dr. Sana’a Wafa Al-Sayegh
Computer Graphics with OpenGL 3e
12.6 Matrices & Transformations. Graphical transformations (reflections & rotations) can be interpreted using matrices. (point) general or specific 
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.
04 – Geometric Transformations Overview Geometric Primitives –Points, Lines, Planes 2D Geometric Transformations –Translation, Rotation, Scaling, Affine,
COS 397 Computer Graphics Svetla Boytcheva AUBG, Spring 2013.
Transformation of Graphics
2D Transformation of Graphics
Lecture Notes: Computer Graphics.
2D Geometric Transformations
CS 376 Introduction to Computer Graphics 02 / 16 / 2007 Instructor: Michael Eckmann.
©Larry F. Hodges (modified by Amos Johnson) 1 3-D Mathematical Preliminaries & Transformations.
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.
1 Computer Graphics Week9 -3D Geometric Transformation.
Symmetry Two points, P and P ₁, are symmetric with respect to line l when they are the same distance from l, measured along a perpendicular line to l.
Computer Graphics 3D Transformations. Translation.
Two-Dimensional Geometric Transformations ch5. 참조 Subjects : Basic Transformations Homogeneous Coordinates Composite Transformations Other Transformations.
3D Transformations. Translation x’ = x + tx y’ = y + ty z’ = z + tz P = P’ = T = P’ = T. P tx ty tz xyz1xyz1 x’ y’ z’ 1 x y.
Geometric Transformations Hearn & Baker Chapter 5 Some slides are taken from Robert Thomsons notes.
Geometric Transformations
GEOMETRIC TRANFORMATIONS Presented By -Lakshmi Sahithi.
12/24/2015 A.Aruna/Assistant professor/IT/SNSCE 1.
Geometric Transformations UBI 516 Advanced Computer Graphics Aydın Öztürk
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS D Geometric Transformations Graphics Systems.
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
3D Geometric Transformation
3D Geometric Transformation
CSCI 425/ D Mathematical Preliminaries. CSCI 425/525 2 Coordinate Systems Z X Y Y X Z Right-handed coordinate system Left-handed coordinate system.
Lecture 5: Introduction to 3D
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.
Homogeneous Coordinates and Matrix Representations Cartesian coordinate (x, y, z) Homogeneous coordinate (x h, y h, z h, h) Usually h = 1. But there are.
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.
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)
CS 325 Introduction to Computer Graphics 02 / 19 / 2010 Instructor: Michael Eckmann.
Geometric Transformations Ceng 477 Introduction to Computer Graphics Computer Engineering METU.
Computer Graphic 2 D Transformation.
CSCE 441 Computer Graphics: 2D Transformations
3D Geometry and 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.
Chapter 11 Three-Dimensional Geometric and Modeling Transformations
Lecture 10 Geometric Transformations In 3D(Three- Dimensional)
Review: 3D Transforms Continued
3D Geometric Transformation
3. Transformation
Geometric Transformations Hearn & Baker Chapter 5
2D Geometric Transformations
Computer Graphics CC416 Week 15 3D Graphics.
3D Transformation.
Computer Graphics Lecture 18 3-D Transformations-II Taqdees A
Computer Graphics 3D Transformations
Lecture 7 Geometric Transformations (Continued)
Geometric Transformations
TWO DIMENSIONAL TRANSFORMATION
Presentation transcript:

5.2 Three-Dimensional Geometric and Modeling Transformations 2D3D Consideration for the z coordinate

5.2.1 Translation From position P=(x, y, z) to P ’ (x ’, y ’, z ’ ) Or P ’ =T · P An equivalent representation: x ’ =x +t x y’=y + t y z ’ =z + t z

5.2.2 Rotation Designate an axis of rotation and the amount of angular rotation

Coordinate-Axes Rotations x' = x cosθ - y sinθ y' = x sinθ + y cosθ z' = z Z-axis rotation equation: Homogeneous coordinate form Or P ’ = Rz(θ) · P

a cyclic permutation of the coordinate parameters x, y x → y → z → x x → y → z → x x' = x cosθ - y sinθ y' = x sinθ + y cosθ z' = z Z-axis rotation equation: y' = y cosθ - z sinθ z' = y sinθ + z cosθ x' = x X-axis rotation equation: Or P ’ = Rz(θ) · POr P ’ = Rx(θ) · P

y' = y cosθ - z sinθ z' = y sinθ + z cosθ x' = x X-axis rotation equation: z' = z cosθ – x sinθ x' = z sinθ + x cosθ y' = y Y-axis rotation equation: Or P ’ = Ry(θ) · P Or P ’ = Rx(θ) · P

General Three-Dimensional Rotations an object is to be rotated about an axis that is parallel to one of the coordinate axes Step 1: Translate the object so that the rotation axis coincides with the parallel coordinate axis.

General Three-Dimensional Rotations Step 2: Perform the specified rotation about that axis.

General Three-Dimensional Rotations Step 3: Translate the object so that the rotation axis is moved back to its original position.

General Three-Dimensional Rotations

rotation about an arbitrary axis (five steps) Step 1: Translate the object so that the rotation axis passes through the coordinate origin.

rotation about an arbitrary axis (five steps) Step 2:Rotate the object so that the axis of rotation coincides with one of the coordinate axes. Step 3:Perform the specified rotation about that coordinate axis.

rotation about an arbitrary axis (five steps) Step 4: Apply inverse rotations to bring the rotation axis back to its original orientation. Step 5: Apply the inverse translation to bring the rotation axis back to its original position.

5.2.3 Scaling From position P=(x, y, z) to P ’ (x ’, y ’, z ’ ) Or P ’ =S · P An equivalent representation: x' = x' · sx, y' = y · sy, z' = z · sz

Sx=Sy=Sz=2

Scaling with respect to a fixed position (xf, yf, zf,) Step 1: Translate the fixed point to the origin. Step 2: Scale the object relative to the coordinate origin. Step 3: Translate the fixed point back to its original position.

5.2.4 Other Transformation ---- reflection The matrix representation for this reflection of points relative to the xy plane is

5.2.4 Other Transformation The matrix representation for this reflection of points relative to the yz plane is The matrix representation for this reflection of points relative to the zx plane is

5.2.4 Other Transformation ---- shear As an example of three- dimensional shearing, the following transformation produces a z-axis shear:

a = b = 1