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.

Slides:



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

Computer Graphics: 3D Transformations
COMPUTER GRAPHICS 2D TRANSFORMATIONS.
Computer Graphics Lecture 4 Geometry & Transformations.
Geometric Transformations
Three Dimensional Modeling Transformations
1 Computer Graphics Week6 –Basic Transformations- Translation & Scaling.
1 Computer Graphics Chapter 6 2D Transformations.
2D TRANSFORMATIONS.
CMPE 466 COMPUTER GRAPHICS
HCI 530 : Seminar (HCI) Damian Schofield. HCI 530: Seminar (HCI) Transforms –Two Dimensional –Three Dimensional The Graphics Pipeline.
Elementary 3D Transformations - a "Graphics Engine" Transformation procedures Transformations of coordinate systems Translation Scaling Rotation.
CS 376 Introduction to Computer Graphics 02 / 09 / 2007 Instructor: Michael Eckmann.
Computer Graphics University of Palestine Dr. Sana’a Wafa Al-Sayegh
Computer Graphics with OpenGL 3e
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology 3D Engines and Scene Graphs Spring 2012.
5.2 Three-Dimensional Geometric and Modeling Transformations 2D3D Consideration for the z coordinate.
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
2D Transformation of Graphics
Part7: Geometric Transformations
Transformations Jehee Lee Seoul National University.
Geometric Transformations
CS 376 Introduction to Computer Graphics 02 / 16 / 2007 Instructor: Michael Eckmann.
1 CS 430/536 Computer Graphics I 3D Transformations World Window to Viewport Transformation Week 2, Lecture 4 David Breen, William Regli and Maxim Peysakhov.
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.
Transformation.
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.
Gopi -ICS280F02 - Slide 1 Model Transformations. Gopi -ICS280F02 - Slide 2 Popular Linear Transformations TranslationTranslation ScalingScaling RotationRotation.
Geometric Transformations
GEOMETRIC TRANFORMATIONS Presented By -Lakshmi Sahithi.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
12/24/2015 A.Aruna/Assistant professor/IT/SNSCE 1.
2D Geometric Transformation Translation A translation is applied to an object by repositioning it along a straight-line path from one coordinate location.
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.
Honours Graphics 2008 Session 2. Today’s focus Vectors, matrices and associated math Transformations and concatenation 3D space.
II-1 Transformations Transformations are needed to: –Position objects defined relative to the origin –Build scenes based on hierarchies –Project objects.
1 By Dr. HANY ELSALAMONY.  We have seen how to create models in the 3D world. We discussed transforms in lecture 3, and we have used some transformations.
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.
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)
Geometric Transformations Ceng 477 Introduction to Computer Graphics Computer Engineering METU.
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.
Lecture 10 Geometric Transformations In 3D(Three- Dimensional)
3D Geometric Transformation
Computer Graphics CC416 Week 15 3D Graphics.
Review: Transformations
3D Transformation.
Computer Graphics 3D Transformations
Review: Transformations
Three-Dimensional Graphics
Unit 1 Transformations in the Coordinate Plane
A movement of a figure in a plane.
Geometric Transformations
Reflections in Coordinate Plane
Transformations –Translation
Transformations.
Unit 1 Transformations in the Coordinate Plane
TWO DIMENSIONAL TRANSFORMATION
Maps one figure onto another figure in a plane.
Unit 1 Transformations in the Coordinate Plane
Transformations –Translation, Reflection, Rotation and Dilations
Translation in Homogeneous Coordinates
Presentation transcript:

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 as:

3 Representation of 3D Transformations Z axis represents depth Right Handed System When looking “down” at the origin, positive rotation is CCW Left Handed System When looking “down”, positive rotation is in CW More natural interpretation for displays, big z means “far” (into screen)

Translation Objects are usually defined relative to their own coordinate system. We can translate points in space to new positions by adding offsets to their coordinates, as shown in the following vector equation. P’ = T. P

x’ = x + tx y’ = y + ty z’ = z + tz Translating a point with translation with vector T = (tx,ty,tz).

6 3D Translations.  An object is translated in 3D dimensional by transforming each of the defining points of the objects.

Rotation Rotations in three-dimensions are considerably more complicated than two-dimensional rotations. In general, rotations are specified by a rotation axis and an angle. In two-dimensions there is only one choice of a rotation axis that leaves points in the plane.

Rotation about x axis

Rotation about z axis Rotation is in the following form :

12 3D Transformations: Rotation One rotation for each world coordinate axis

3D Scaling  P is scaled to P' by S: Called the Scaling matrix S =

14 3D Scaling Scaling with respect to the coordinate origin

3D Scaling Scaling with respect to a selected fixed position (x f, y f, z f ) 1. Translate the fixed point to origin 2. Scale the object relative to the coordinate origin 3. Translate the fixed point back to its original position

3D Scaling

3D Reflections  About an axis: equivalent to 180˚rotation about that axis

18 3D Reflections

19 3D Shearing Modify object shapes Useful for perspective projections: –E.g. draw a cube (3D) on a screen (2D) –Alter the values for x and y by an amount proportional to the distance from z ref

20 Shears