3D Transformation.

Slides:



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

Computer Graphics: 3D Transformations
TRANSFORMATIONS SPI SPI
COMPUTER GRAPHICS 2D TRANSFORMATIONS.
Transformation in Geometry Created by Ms. O. Strachan.
Computer Graphics University of Palestine Dr. Sana’a Wafa Al-Sayegh
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.
COS 397 Computer Graphics Svetla Boytcheva AUBG, Spring 2013.
5.2 Three-Dimensional Geometric and Modeling Transformations 2D3D Consideration for the z coordinate.
Graphics Graphics Korea University kucg.korea.ac.kr Transformations 고려대학교 컴퓨터 그래픽스 연구실.
Lecture Notes: Computer Graphics.
2D Geometric Transformations
Part7: Geometric Transformations
Geometric Transformations
An operation that moves or changes a geometric figure (a preimage) in some way to produce a new figure (an image). Congruence transformations – Changes.
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
TRANSFORMATIONS SPI SPI TYPES OF TRANSFORMATIONS Reflections – The flip of a figure over a line to produce a mirror image. Reflections.
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.
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.
DRILL 1) If A is in between points B and C and AC is 4x + 12 and AB is 3x – 4 and BC is 57 feet how long is AB? 2) Angles A and B are Supplementary if.
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
Computer Graphic 2 D Transformation.
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.
Objectives Introduce standard transformations Introduce standard transformations Derive homogeneous coordinate transformation matrices Derive homogeneous.
Forward Projection Pipeline and Transformations CENG 477 Introduction to Computer Graphics.
Geometric Transformations for Computer Graphics
Geometric Transformations for Computer Graphics
Chapter 11 Three-Dimensional Geometric and Modeling Transformations
Modeling Transformations
Transformations Objectives
3D Geometric Transformation
3. Transformation
Geometric Transformations Hearn & Baker Chapter 5
2D Geometric Transformations
Computer Graphics CC416 Week 15 3D Graphics.
2D Transformations with Matrices
Translation Rotation Scaling
Transformation in Geometry
Computer Graphics 3D Transformations
3D Geometric Transformations
Translations and Reflections
Transformations Main Idea Notes Transformation
Lecture 7 Geometric Transformations (Continued)
Line and Character Attributes 2-D Transformation
Transformations in 3 Dimensions CS /28/2018 Dr. Mark L. Hornick
Transformations Lidia E. Garcia Alvizo.
4-4 Geometric Transformations with Matrices
Geometric Transformations for Computer Graphics
DRILL If A is in between points B and C and AC is 4x + 12 and AB is 3x – 4 and BC is 57 feet how long is AB? Angles A and B are Supplementary if.
Transformation in Geometry
Transformations 고려대학교 컴퓨터 그래픽스 연구실 kucg.korea.ac.kr.
Geometric Transformations
Transformations Ed Angel
Reflections in Coordinate Plane
Transformations Ed Angel Professor Emeritus of Computer Science
CSCE441: Computer Graphics 2D/3D Transformations
CS1550 Fundamentals For Computer Graphics Transformations-2
Isaac Gang University of Mary Hardin-Baylor
TWO DIMENSIONAL TRANSFORMATION
Transformations Translation Reflection The FRAME Routine
Translation in Homogeneous Coordinates
Presentation transcript:

3D Transformation

Anil Verma, IOE Pulchowk Transformation A transformation is an operation that transforms or changes a shape . There are several basic ways you can change a shape: Translation (moving it) Rotation (turning it round) Scaling (making it bigger or smaller). Shear (changing the main shape). Reflection (mirroring the shape about axis). Transforming an object means transforming all of its points Anil Verma, IOE Pulchowk

Anil Verma, IOE Pulchowk 3D Transformation Same as 2D. Add z-axis and z-coordinate. Use 4X4 homogenous matrix. In part I, we discussed translation, rotation and scaling. Anil Verma, IOE Pulchowk

Anil Verma, IOE Pulchowk 3D Translation Anil Verma, IOE Pulchowk

3D Scaling (relative to the origin point) x, y and z values multiplied by scaling factors sx, sy and sz Anil Verma, IOE Pulchowk

3D Scaling (relative to the origin point) Anil Verma, IOE Pulchowk

3D Scaling (relative to fixed point) Anil Verma, IOE Pulchowk

Anil Verma, IOE Pulchowk 3D Scaling (relative to fixed point) Scaling with a Selected Fixed Position y y y y x x x z x z z z Original position Translate Scaling Inverse Translate Anil Verma, IOE Pulchowk 3D Geometric Transformations

3D Scaling (relative to fixed point) for general scaling (relative to fixed point F) where Anil Verma, IOE Pulchowk

Anil Verma, IOE Pulchowk 3D Rotation Coordinate-Axes 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 Anil Verma, IOE Pulchowk 3D Geometric Transformations

Anil Verma, IOE Pulchowk June 10, 2018 3D Rotation – (z-axis) Rotating around the z axis: Anil Verma, IOE Pulchowk

Anil Verma, IOE Pulchowk June 10, 2018 3D Rotation – (x-axis) Rotation around the X axis: Anil Verma, IOE Pulchowk

Anil Verma, IOE Pulchowk June 10, 2018 3D Rotation – (y-axis) Rotation around the Y axis: Anil Verma, IOE Pulchowk

Anil Verma, IOE Pulchowk 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 Anil Verma, IOE Pulchowk 3D Geometric Transformations

Anil Verma, IOE Pulchowk General 3D Rotations Rotation about an Arbitrary Axis Basic Idea 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 T-1 z Anil Verma, IOE Pulchowk 3D Geometric Transformations

Arbitrary Axis Rotation Step 1. Translation (x2,y2,z2) (x1,y1,z1) x z y Anil Verma, IOE Pulchowk 3D Geometric Transformations

Arbitrary Axis Rotation Step 2. Establish [ TR ]x x axis (a,b,c) (0,b,c) Projected Point  Rotated Point x y z Anil Verma, IOE Pulchowk 3D Geometric Transformations

Arbitrary Axis Rotation Step 3. Rotate about y axis by  (a,b,c) (a,0,d)  l d x y Projected Point z Rotated Point Anil Verma, IOE Pulchowk 3D Geometric Transformations

Arbitrary Axis Rotation Step 4. Rotate about z axis by the desired angle  y l x  z Anil Verma, IOE Pulchowk 3D Geometric Transformations

Arbitrary Axis Rotation Step 5. Apply the reverse transformation to place the axis back in its initial position x y l z Anil Verma, IOE Pulchowk 3D Geometric Transformations

Anil Verma, IOE Pulchowk 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 Anil Verma, IOE Pulchowk 3D Geometric Transformations

Anil Verma, IOE Pulchowk Example Step1. Translate point A to the origin x z y B’(1,2,1) A’(0,0,0) Anil Verma, IOE Pulchowk 3D Geometric Transformations

Anil Verma, IOE Pulchowk 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) Anil Verma, IOE Pulchowk 3D Geometric Transformations

Anil Verma, IOE Pulchowk 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 Anil Verma, IOE Pulchowk 3D Geometric Transformations

Anil Verma, IOE Pulchowk Example Step 4. Rotate the cube 90° about the z axis Finally, the concatenated rotation matrix about the arbitrary axis AB becomes, Anil Verma, IOE Pulchowk 3D Geometric Transformations

Anil Verma, IOE Pulchowk Example Anil Verma, IOE Pulchowk 3D Geometric Transformations

Anil Verma, IOE Pulchowk Example Multiplying [TR]AB by the point matrix of the original cube Anil Verma, IOE Pulchowk 3D Geometric Transformations

Anil Verma, IOE Pulchowk 3D Reflection Reflection Relative to the xy Plane [Do also Reflection Relative to the yz,zx Plane...] x z y Anil Verma, IOE Pulchowk 3D Geometric Transformations

Anil Verma, IOE Pulchowk 3D Shear Z-axis shear Where a and b are the shear factors for x and y respectively. Do, X-axis and Y-axis shear. Anil Verma, IOE Pulchowk 3D Geometric Transformations