Transformations of Objects – 3D

Slides:



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

Computer Graphics: 3D Transformations
Transformations Ed Angel Professor Emeritus of Computer Science
University of North Carolina at Greensboro
Geometric Transformations
Arbitrary Rotations in 3D Lecture 18 Wed, Oct 8, 2003.
1 ME 302 DYNAMICS OF MACHINERY Dynamic Force Analysis IV Dr. Sadettin KAPUCU © 2007 Sadettin Kapucu.
CMPE 466 COMPUTER GRAPHICS
2D Geometric Transformations
CMPE 466 COMPUTER GRAPHICS
University of North Carolina at Greensboro
Image Warping : Computational Photography Alexei Efros, CMU, Fall 2006 Some slides from Steve Seitz
2D/3D Geometric Transformations CS485/685 Computer Vision Dr. George Bebis.
3-D Geometry.
3D orientation.
©College of Computer and Information Science, Northeastern UniversityJune 26, CS U540 Computer Graphics Prof. Harriet Fell Spring 2009 Lecture 11.
Transformations CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
Computer Graphics with OpenGL 3e
CS 4731: Computer Graphics Lecture 8: 3D Affine transforms Emmanuel Agu.
Mathematical Fundamentals
COS 397 Computer Graphics Svetla Boytcheva AUBG, Spring 2013.
©College of Computer and Information Science, Northeastern UniversitySeptember 9, CS 4300 Computer Graphics Prof. Harriet Fell Fall 2011 Lecture.
Transformations of Objects CVG lab. Introduction  Affine transformations : Affine transformations are a fundamental cornerstone of computer graphics.
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.
Computer Graphics Bing-Yu Chen National Taiwan University.
Homogeneous Coordinates (Projective Space) Let be a point in Euclidean space Change to homogeneous coordinates: Defined up to scale: Can go back to non-homogeneous.
Geometric Transformations Jehee Lee Seoul National University.
2003CS Hons RW778 Graphics1 Chapter 5: Transforming Objects 5.2 Introduction to Transformations 5.2 Introduction to Transformations –Affine transformations.
Dx = 2 dy = 3 Y X D Translation A translation is applied to an object by repositioning it along a straight-line path.
Chi-Cheng Lin, Winona State University CS430 Computer Graphics Transformations of Objects – 2D Part I.
Rotations and Translations
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.
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.
Transformations Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
Jinxiang Chai Composite Transformations and Forward Kinematics 0.
Geometric Objects and Transformation
CSE Real Time Rendering Week 5. Slides(Some) Courtesy – E. Angel and D. Shreiner.
Computer Graphics 3D Transformations. Translation.
Geometric Transformations
Geometric Transformations Sang Il Park Sejong University Many slides come from Jehee Lee’s.
3D Transformation A 3D point (x,y,z) – x,y, and z coordinates
Geometric Transformations UBI 516 Advanced Computer Graphics Aydın Öztürk
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.
Lecture 5: Introduction to 3D
Affine Geometry.
Transformations of objects
7.5 Composition Transformations California Standards for Geometry 17: Prove theorems using coordinate geometry 22: Know the effect of rigid motions on.
CS559: Computer Graphics Lecture 9: 3D Transformation and Projection Li Zhang Spring 2010 Most slides borrowed from Yungyu ChuangYungyu Chuang.
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
Computer Graphics I, Fall 2010 Transformations.
CS 551 / 645: Introductory Computer Graphics Viewing Transforms.
CS 325 Introduction to Computer Graphics 02 / 19 / 2010 Instructor: Michael Eckmann.
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,
Geometric Transformations Ceng 477 Introduction to Computer Graphics Computer Engineering METU.
Fundamentals of Computer Animation Orientation and Rotation.
Transformations. Transformations Introduce standard transformations ◦ Rotation ◦ Translation ◦ Scaling ◦ Shear Derive homogeneous coordinate transformation.
Modeling Transformation
Transformations. Modeling Transformations  Specify transformations for objects  Allows definitions of objects in own coordinate systems  Allows use.
Transformations University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2016 Tamara Munzner.
Computer Graphics Lecture 15 Fasih ur Rehman. Last Class Combining Transformations Affine versus Rigid body Transformations Homogenous Transformations.
Objectives Introduce standard transformations Introduce standard transformations Derive homogeneous coordinate transformation matrices Derive homogeneous.
Review: Transformations
Computer Graphics Transformations
Transformations 2 University of British Columbia
Presentation transcript:

Transformations of Objects – 3D CS430 Computer Graphics Transformations of Objects – 3D Chi-Cheng Lin, Winona State University

Topics 3D Affine Transformations Composition of 3D Affine Transformations Properties of Affine Transformations Changing Coordinate Systems

3D Affine Transformations Translation T(dx, dy, dz) =

3D Affine Transformations Scaling S(Sx, Sy, Sz) =

3D Affine Transformations Rotations: Three elementary rotations Rotation about the x-axis (x-roll) Rotation about the y-axis (y-roll) Rotation about the z-axis (z-roll) Positive values of rotation angel cause a counterclockwise (CCW) rotation about an axis as one looks inward from a point on the positive axis toward the origin

3D Rotations Let c = cos() and s = sin()  x-roll  z-roll  y-roll

Composition of 3D Affine Transformations Similar to 2D If a sequence of transformations, represented by M1, M2, …, Mn, is applied to a 3D point P, then P is transformed to MP, where M = Mn    M2  M1 Important distinction between 2D and 3D rotations 3D rotation matrices do not commute 3D rotation can be about different axis

Combining 3D Rotations Euler’s Theorem Calculation is complex Any rotation (or sequence of rotations) about a point is equivalent to a single rotation about some axis through that point Calculation is complex Good news: OpenGL can do it for you glRotated(angle, ux, uy, uz), rotates angle degrees about an axis with unit vector (ux, uy, uz)

Properties of Affine Transformations Affine transformation preserve affine combinations of points Affine transformation preserve lines and planes Parallelism of lines and planes is preserved Relative ratios are preserved Every affine transformation is composed of fundamental transformations

Properties of Affine Transformations If M is the 2D transformation matrix, then Rotation, translation, and shearing do not change the area (why?) For scaling, new area = (old area)|SxSy| If M is the 3D transformation matrix, then

Properties of Affine Transformations The columns of the matrix M reveal the transformed coordinate frame In 2D, The axes of the new coordinate frame are m1 and m2, and the origin is m3 The axes of new coordinates frame are not necessarily perpendicular nor must they be of unit length

Changing Coordinate Systems Suppose coordinate system #2 is formed from coordinate system #1 by affine transformation M , then for a point P in system #2, its coordinates are MP. System #2 P b System #1 d c j’ i j i’ a

Changing Coordinate Systems Successive changes in coordinate system System #3 P b f System #2 e System #1 d c System #1 System #2 System #3 M1 a M2

Changing Coordinate Systems Transforming points If a sequence of transformations, represented by M1, M2, …, Mn, is applied to a point P, then P is transformed to MP, where M = Mn    M2  M1 Transforming coordinate system If a sequence of transformations represented by M1, M1, …, Mn, is applied to the coordinate system, then a point P expressed in the transformed system has coordinates MP in the original system, where M = M1  M2    Mn