3D Geometry and Transformations

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 Chapter 6 2D Transformations.
Two-Dimensional Geometric Transformations
CS 376 Introduction to Computer Graphics 02 / 09 / 2007 Instructor: Michael Eckmann.
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
Geometry: Dilations. We have already discussed translations, reflections and rotations. Each of these transformations is an isometry, which means.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology 3D Engines and Scene Graphs Spring 2012.
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.
CS 480/680 Computer Graphics Transformations Dr. Frederick C Harris, Jr.
Graphics Graphics Korea University kucg.korea.ac.kr Transformations 고려대학교 컴퓨터 그래픽스 연구실.
2D Transformation of Graphics
Lecture Notes: Computer Graphics.
2D Geometric Transformations
Geometric 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.
Geometric Objects and 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.
Geometric Transformations Hearn & Baker Chapter 5 Some slides are taken from Robert Thomsons notes.
Geometric Transformations
Coordinate Reference Frames ♦Vector Space Vectors have magnitude and direction Vectors have no posotion ♦Affine Space Vector Space + Points (location)
Transformations CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
Transformations on the Coordinate Plane: Translations and Rotations.
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
3D Coordinate Systems o3D computer graphics involves the additional dimension of depth, allowing more realistic representations of 3D objects in the real.
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.
Computer Graphic 2 D Transformation.
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.
Chapter 11 Three-Dimensional Geometric and Modeling Transformations
Lecture 10 Geometric Transformations In 3D(Three- Dimensional)
Computer Animation Algorithms and Techniques
3D Geometric Transformation
3. Transformation
2D Geometric Transformations
Computer Graphics CC416 Week 15 3D Graphics.
3D Transformation.
Translation Rotation Scaling
Transformation in Geometry
Computer Graphics 3D Transformations
3D Geometric Transformations
Computer Graphics Transformations
4-4 Geometric Transformations with Matrices
Transformation in Geometry
Geometrical Transformations
Transformations.
TWO DIMENSIONAL TRANSFORMATION
Translation in Homogeneous Coordinates
Presentation transcript:

3D Geometry and Transformations 11 고려대학교 컴퓨터학과 김 창 헌

Contents Translation Scaling Rotation Other transformations Transformation of coordinate systems

Transformation in 3D 33 : Scaling, Reflection, Shearing, Rotation 31 : Translation 11 : Uniform global Scaling 13 : Homogeneous representation

3D Translation Translation of a Point y x z

3D Scaling Uniform scaling y x z

Relative Scaling Scaling with a selected fixed position x z y Original position Translate Scaling Inverse Translate

3D Rotation 1. Coordinate-Axes Rotations 좌표축을 기준으로 회전 2. General Three-Dimensional Rotations 좌표축에 평행한 회전축 기준 회전 임의의 회전축(직선) 기준 회전

Coordinate-Axis Rotations y X축 중심 회전 Z 축 중심 회전 x z x축 중심 회전 y z y x z축 중심 회전 Y축 중심 회전 x z y축 중심 회전

Order of rotations affects the final position of an object

Rotation about an Principal axis  좌표축과 평행한 회전축 중심 회전 물체를 좌표축과 평행하게 이동 (회전축이동) 회전 물체를 원위치로 이동 (회전축 원위치)

Rotation about an arbitrary axis  Basic Idea 1. 원점을 지나도록 회전축을 평행이동 2. 좌표축과 일치하도록 회전축을 회전 3. 축에 대한 회전 4. 회전축을 원래 방향으로 역회전 5. 회전축을 원위치로 평행 이동 y T (x2,y2,z2) R (x1,y1,z1) R-1 x T-1 z

Rotation about an arbitrary axis Step 1. Translation (x2,y2,z2) (x1,y1,z1) x z y

Rotation about an arbitrary axis Step 2. Establish [ TR ]x x axis y (0,b,c) (a,b,c) Projected Point   x z Rotated Point

Rotation about an arbitrary axis Step 3. Rotate about y axis by  y (a,b,c) l Projected Point d x  (a,0,d) Rotated Point z

Rotation about an arbitrary axis Step 4. Rotate about z axis by the desired angle  y l x  z

Rotation about an arbitrary axis Step 5. Apply the reverse translation to place the axis back in its initial position x z y l

Rotation about an arbitrary axis Ex) Find the new coordinates of a unit cube rotated about an axis defined by its endpoints A(2,1,0) and B(3,3,1). Step1. Translate point A to the origin y B’(1,2,1) A’(0,0,0) x A Unit Cube z

Rotation about an arbitrary axis 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)

Rotation about an arbitrary axis 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,  6) z

Rotation about an arbitrary axis Step 4. Rotate the cube 90° about the z axis Finally, the concatenated rotation matrix about the arbitrary axis AB becomes,

Rotation about an arbitrary axis

Rotation about an arbitrary axis Multiplying [TR]AB by the point matrix of the original cube

3D Reflections & Shears Reflection relative to the xy plane z-axis shear y y z z x x

Transformation of Coordinate System Front-Wheel Tractor System World Coordinate Coordinate Coordinate

Transformation of Coordinate System Use of Multiple Coordinate System zworld