168 471 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.

Slides:



Advertisements
Similar presentations
Computer Graphics: 3D Transformations
Advertisements

1Computer Graphics Homogeneous Coordinates & Transformations Lecture 11/12 John Shearer Culture Lab – space 2
Transformations Ed Angel Professor Emeritus of Computer Science
1 Computer Graphics Chapter 8 3D Transformations.
Geometric Transformations
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.
1 Geometrical Transformation 2 Outline General Transform 3D Objects Quaternion & 3D Track Ball.
1 CSCE 441 Computer Graphics: 2D Transformations Jinxiang Chai.
3D Coordinate Systems and Transformations Revision 1
COMP322/S2000/L221 Relationship between part, camera, and robot (cont’d) the inverse perspective transformation which is dependent on the focal length.
Transformations CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
Computer Graphics with OpenGL 3e
2D Transformations Unit - 3. Why Transformations? In graphics, once we have an object described, transformations are used to move that object, scale it.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology 3D Engines and Scene Graphs Spring 2012.
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.
Reference: “3D Math Primer for Graphics and Game Development, 2 nd ed.” Chapter 5 Chapter 6.x MATRIX.
COS 397 Computer Graphics Svetla Boytcheva AUBG, Spring 2013.
Transformations Aaron Bloomfield CS 445: Introduction to Graphics
2.2 Linear Transformations in Geometry For an animation of this topic visit
5.2 Three-Dimensional Geometric and Modeling Transformations 2D3D Consideration for the z coordinate.
Transformations of Objects CVG lab. Introduction  Affine transformations : Affine transformations are a fundamental cornerstone of computer graphics.
CS 480/680 Computer Graphics Representation Dr. Frederick C Harris, Jr. Fall 2012.
Geometric Transformation. So far…. We have been discussing the basic elements of geometric programming. We have discussed points, vectors and their operations.
CS 480/680 Computer Graphics Transformations Dr. Frederick C Harris, Jr.
Lecture Notes: Computer Graphics.
CSE 681 Review: Transformations. CSE 681 Transformations Modeling transformations build complex models by positioning (transforming) simple components.
Transformations Jehee Lee Seoul National University.
CS 376 Introduction to Computer Graphics 02 / 16 / 2007 Instructor: Michael Eckmann.
Transformations Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
Geometric Objects and Transformation
1 Computer Graphics Week9 -3D Geometric Transformation.
Transformations A rule for moving every point in a figure to a new location.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Affine Transformations.
Computer Graphics 3D Transformations. Translation.
Two-Dimensional Geometric Transformations ch5. 참조 Subjects : Basic Transformations Homogeneous Coordinates Composite Transformations Other Transformations.
Geometric Transformations
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.
Computer Graphics, KKU. Lecture 41 The Computer Programming Laws Any given program, when running, is obsolete. Any given program costs more and.
3D Transformation A 3D point (x,y,z) – x,y, and z coordinates
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
Affine Geometry.
II-1 Transformations Transformations are needed to: –Position objects defined relative to the origin –Build scenes based on hierarchies –Project objects.
Digital Image Processing Additional Material : Imaging Geometry 11 September 2006 Digital Image Processing Additional Material : Imaging Geometry 11 September.
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.
Computer Graphics I, Fall 2010 Transformations.
CS 325 Introduction to Computer Graphics 02 / 19 / 2010 Instructor: Michael Eckmann.
Computer Graphics Lecture 16 Fasih ur Rehman. Last Class Homogeneous transformations Types of Transformations – Linear Transformations – Affine Transformations.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Transformations Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
4. Affine transformations. Reading Required:  Watt, Section 1.1. Further reading:  Foley, et al, Chapter  David F. Rogers and J. Alan Adams,
CSCE 441 Computer Graphics: 2D Transformations
3D Geometry and Transformations
Modeling Transformation
Objectives Introduce standard transformations Introduce standard transformations Derive homogeneous coordinate transformation matrices Derive homogeneous.
Lecture 10 Geometric Transformations In 3D(Three- Dimensional)
Transforms.
Computer Graphics CC416 Week 15 3D Graphics.
Computer Graphics 3D Transformations
Computer Graphics, KKU. Lecture 11
Translation in Homogeneous Coordinates
Presentation transcript:

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 converts the coor- dinates of a point in the first frame to the coordinates of the same point in the second frame. The opera- tion are called transformation. The matrix is called transformation matrix. In 3D space, for example, the general form of the matrix is

Computer Graphics, KKU. Lecture 52 Transformations: The Relationship The matrix can be applied to - the coordinate,leaving the frame fixed. - the frame, leaving the coordinate fixed. It is useful to allow us to shift a point between the local coordinates of the point, or between the frames In 3D space

Computer Graphics, KKU. Lecture 53 Cramer’s Rule Given a frame and any point having coordinates ( u,v,w ), we can define a vector Cramer’s Rule states that and

Computer Graphics, KKU. Lecture 54 Finding a transformation matrix Consider two frames denoted as and By Cramer’s rule, let 1. If we give, then we can get 2. If we give, then we can get 3. If we give, then we can get 4. If we give, then we can get

Computer Graphics, KKU. Lecture 55

6 Simple Transformations Translation Scaling Rotation Shearing

Computer Graphics, KKU. Lecture 57 Translation Moves all points of an objects a fixed distance in a specified direction. Translation of frames Translation of points within the frame the origin is moved but the vectors stay the same.

Computer Graphics, KKU. Lecture 58 Translation (Cont.) A translation matrix is The matrix is most frequently applied to all points of an object in the local system to move the object within the system.

Computer Graphics, KKU. Lecture 59 Scaling Scales the coordinates of an objects Scaling a frame - expands or contracts the lengths of the vectors Scaling a point

Computer Graphics, KKU. Lecture 510 Scaling (Cont.) A Scaling matrix By scaling, you multiply each point of an object by a factor which effectively scaling the object about the origin.

Computer Graphics, KKU. Lecture 511 Scaling (Cont.) If the center of the object is not at the origin, the operation will move the object away from the origin of the frame.

Computer Graphics, KKU. Lecture 512 Scaling (Cont.) For the case of scaling about other points, we need to combine the scaling transformation with two translation transformations in order to correctly get a transformation matrix.

Computer Graphics, KKU. Lecture 513 performed about an axis which is usually specified by a point P and a vector direction. Rotation Rotating about a point in two dimensions Rotation matrix

Computer Graphics, KKU. Lecture 514 Rotation about the X-Axis

Computer Graphics, KKU. Lecture 515 Rotation about the Y-Axis

Computer Graphics, KKU. Lecture 516 Rotation about the Z-Axis

Computer Graphics, KKU. Lecture 517 Rotation about an arbitrary axis Assuming the axis of rotation is represented by and then a rotation of degrees about this axis can be defined by concatenating the following transformations 1. Translate so that the point P moves to the origin

Computer Graphics, KKU. Lecture 518 Rotation about an arbitrary axis (Cont.) 2. Rotate the vector until it is in the yz plane by using a rotation where

Computer Graphics, KKU. Lecture 519 Rotation about an arbitrary axis (Cont.) 3. Rotate the vector until it coincides with the x axis where

Computer Graphics, KKU. Lecture 520 Rotation about an arbitrary axis (Cont.) 4. Rotate about the z axis.

Computer Graphics, KKU. Lecture 521 Rotation about an arbitrary axis (Cont.) 5. Use rotations and translations to reverse the first three steps

Computer Graphics, KKU. Lecture 522 Rotation about an arbitrary axis (Cont.) The matrix representation of the general rotation is given by the product of the above transformations.

Computer Graphics, KKU. Lecture 523 Shearing Shearing transformations in three-dimensions alter two of the three coordinate values proportionally to the value of the third coordinate.

Computer Graphics, KKU. Lecture 524 X-Shearing X-shearing a frame: We ``x-shear'' a frame by modifying the first vector of the frame by adding to it a linear combination of the other two vectors.

Computer Graphics, KKU. Lecture 525 X-Shearing (Cont.) X-shearing a point The X-shear transformation matrix can be defined by

Computer Graphics, KKU. Lecture 526 Y-Shearing Y-shearing a frame

Computer Graphics, KKU. Lecture 527 Y-Shearing (Cont.) Y-shearing a point The Y-shear transformation matrix can be defined by

Computer Graphics, KKU. Lecture 528 Z-Shearing Z-shearing a frame

Computer Graphics, KKU. Lecture 529 Z-Shearing (Cont.) Z-shearing a point The Z-shear transformation matrix can be defined by