3D Geometric Transformation

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
Transformation in Geometry Created by Ms. O. Strachan.
1 ME 302 DYNAMICS OF MACHINERY Dynamic Force Analysis IV Dr. Sadettin KAPUCU © 2007 Sadettin Kapucu.
Two-Dimensional Geometric Transformations
CMPE 466 COMPUTER GRAPHICS
CS 376 Introduction to Computer Graphics 02 / 09 / 2007 Instructor: Michael Eckmann.
2D/3D Geometric Transformations CS485/685 Computer Vision Dr. George Bebis.
3D Coordinate Systems and Transformations Revision 1
1 Geometrical Transformation Tong-Yee Lee. 2 Modeling Transform Specify transformation for objects Allow definitions of objects in own coordinate systems.
Computer Graphics University of Palestine Dr. Sana’a Wafa Al-Sayegh
Computer Graphics with OpenGL 3e
COS 397 Computer Graphics Svetla Boytcheva AUBG, Spring 2013.
Transformations Aaron Bloomfield CS 445: Introduction to Graphics
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
Graphics Graphics Korea University kucg.korea.ac.kr Transformations 고려대학교 컴퓨터 그래픽스 연구실.
Graphics Graphics Korea University cgvr.korea.ac.kr 2D Geometric Transformations 고려대학교 컴퓨터 그래픽스 연구실.
2D Transformation of Graphics
Lecture Notes: Computer Graphics.
2D Geometric Transformations
Part7: Geometric Transformations
Transformation a change of position, shape or size of a figure Three types of transformation A slide called a translation A flip, called a reflection The.
Geometric Transformations
Graphics Graphics Korea University cgvr.korea.ac.kr 3D Viewing 고려대학교 컴퓨터 그래픽스 연구실.
©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.
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
Jinxiang Chai Composite Transformations and Forward Kinematics 0.
Transformation.
Computer Graphics 3D Transformations. Translation.
Two-Dimensional Geometric Transformations A two dimensional transformation is any operation on a point in space (x, y) that maps that point's coordinates.
Geometric Transformations Hearn & Baker Chapter 5 Some slides are taken from Robert Thomsons notes.
Geometric Transformations
Transformations CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
12/24/2015 A.Aruna/Assistant professor/IT/SNSCE 1.
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
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
3D Coordinate Systems o3D computer graphics involves the additional dimension of depth, allowing more realistic representations of 3D objects in the real.
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.
Graphics Graphics Korea University cgvr.korea.ac.kr Mathematics for Computer Graphics 고려대학교 컴퓨터 그래픽스 연구실.
Instructor: Mircea Nicolescu Lecture 9
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
Computer Graphics I, Fall 2010 Transformations.
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.
Computer Graphic 2 D Transformation.
3D Geometry and Transformations
Modeling Transformation
FCC Graficación CAD/CAM 3D Transformations. Contents 1. Translation 2. Scaling 3. Rotation 4. Other Transformations.
Instructor: Dr. Shereen Aly Taie Basic Two-Dimensional Geometric Transformation 5.2 Matrix Representations and Homogeneous Coordinates 5.3 Inverse.
Objectives Introduce standard transformations Introduce standard transformations Derive homogeneous coordinate transformation matrices Derive homogeneous.
Lecture 10 Geometric Transformations In 3D(Three- Dimensional)
3D Geometric Transformation
Computer Graphics CC416 Week 15 3D Graphics.
3D Transformation.
Computer Graphics 3D Transformations
3D Geometric Transformations
Presentation transcript:

3D Geometric Transformation 고려대학교 그래픽스 연구실 cgvr.korea.ac.kr

Contents Translation Scaling Rotation Other Transformations Coordinate Transformations cgvr.korea.ac.kr

Transformation in 3D Transformation Matrix 33 : Scaling, Reflection, Shearing, Rotation 31 : Translation 11 : Uniform global Scaling 13 : Homogeneous representation cgvr.korea.ac.kr

3D Translation Translation of a Point y x z cgvr.korea.ac.kr

3D Scaling Uniform Scaling y x z cgvr.korea.ac.kr

Relative Scaling Scaling with a Selected Fixed Position y y y y x x x z z z z Original position Translate Scaling Inverse Translate cgvr.korea.ac.kr

3D Rotation Coordinate-Axes Rotations General 3D Rotations X-axis rotation Y-axis rotation Z-axis rotation General 3D Rotations Rotation about an axis that is parallel to one of the coordinate axes Rotation about an arbitrary axis cgvr.korea.ac.kr

Coordinate-Axes Rotations Z-Axis Rotation X-Axis Rotation Y-Axis Rotation y y y x x x z z z cgvr.korea.ac.kr

Order of Rotations Order of Rotation Affects Final Position X-axis  Z-axis Z-axis  X-axis cgvr.korea.ac.kr

General 3D Rotations Rotation about an Axis that is Parallel to One of the Coordinate Axes Translate the object so that the rotation axis coincides with the parallel coordinate axis Perform the specified rotation about that axis Translate the object so that the rotation axis is moved back to its original position cgvr.korea.ac.kr

General 3D Rotations Rotation about an Arbitrary Axis Basic Idea T R Translate (x1, y1, z1) to the origin Rotate (x’2, y’2, z’2) on to the z axis Rotate the object around the z-axis Rotate the axis to the original orientation Translate the rotation axis to the original position y T (x2,y2,z2) R (x1,y1,z1) R-1 x z T-1 cgvr.korea.ac.kr

General 3D Rotations Step 1. Translation y (x2,y2,z2) (x1,y1,z1) x z cgvr.korea.ac.kr

General 3D Rotations Step 2. Establish [ TR ]x x axis y (0,b,c) (a,b,c) Projected Point   x z Rotated Point cgvr.korea.ac.kr

Arbitrary Axis Rotation Step 3. Rotate about y axis by  y (a,b,c) Projected Point l d x  (a,0,d) Rotated Point z cgvr.korea.ac.kr

Arbitrary Axis Rotation Step 4. Rotate about z axis by the desired angle  y l x  z cgvr.korea.ac.kr

Arbitrary Axis Rotation Step 5. Apply the reverse transformation to place the axis back in its initial position y l l x z cgvr.korea.ac.kr

Example Ex) Find the new coordinates of a unit cube 90º-rotated about an axis defined by its endpoints A(2,1,0) and B(3,3,1). A Unit Cube cgvr.korea.ac.kr

Step1. Translate point A to the origin Example Step1. Translate point A to the origin x z y B’(1,2,1) A’(0,0,0) cgvr.korea.ac.kr

Example Step 2. Rotate axis A’B’ about the x axis by and angle , until it lies on the xz plane. y Projected point (0,2,1) B’(1,2,1) l  x z B”(1,0,5) cgvr.korea.ac.kr

Example Step 3. Rotate axis A’B’’ about the y axis by and angle , until it coincides with the z axis. y l  x (0,0,6) B”(1,0,  5) z cgvr.korea.ac.kr

Step 4. Rotate the cube 90° about the z axis Example Step 4. Rotate the cube 90° about the z axis Finally, the concatenated rotation matrix about the arbitrary axis AB becomes, cgvr.korea.ac.kr

Example cgvr.korea.ac.kr

Example Multiplying [TR]AB by the point matrix of the original cube cgvr.korea.ac.kr

Other Transformations Reflection Relative to the xy Plane Z-axis Shear y y z z x x cgvr.korea.ac.kr

Coordinate Transformations Multiple Coordinate System Hierarchical Modeling As tractor moves, tractor coordinate system and front-wheel coordinate system move in world coordinate system front wheels rotate in wheel coordinate system When tractor turns, wheel coordinate system rotates in tractor system World Coordinate System Tractor Coordinate System Front-Wheel Coordinate System cgvr.korea.ac.kr

Coordinate Transformations Transformation of an Object Description from One Coordinate System to Another Set up a translation that brings the new coordinate origin to the position of the other coordinate origin Rotations that corresponding coordinate axes Scaling transformation, if different scales are used in the two coordinates systems Example y’ z’ x’ u’y u’z u’x (x0,y0,z0) x y z (0,0,0) cgvr.korea.ac.kr