Chapter 11 Three-Dimensional Geometric and Modeling Transformations

Slides:



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

Computer Graphics: 3D Transformations
Computer Graphics - Viewing -
Three Dimensional Viewing
Projection.
Three-Dimensional Viewing Sang Il Park Sejong University Lots of slides are stolen from Jehee Lee’s.
Three Dimensional Modeling Transformations
1 Projection. 2 Model Transform Viewing Transform Modelview Matrix world coordinates Pipeline Review Focus of this lecture.
3D Concepts UNIT 3. 3-D Coordinate Spaces Remember what we mean by a 3-D coordinate space x axis y axis z axis P y z x Right-Hand Reference System.
IT- 601: Computer Graphics Lecture-11 Mathematics of Projection Jesmin Akhter Lecturer,IIT Jahangirnagar University, Savar, Dhaka,Bangladesh.
5.2 Three-Dimensional Geometric and Modeling Transformations 2D3D Consideration for the z coordinate.
Transformation & Projection Feng Yu Proseminar Computer Graphics :
Computer Graphics I, Fall 2010 Classical Viewing.
Viewing Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
1 Classical Viewing. 2 Objectives Introduce the classical views Compare and contrast image formation by computer with how images have been formed by architects,
Graphics Graphics Korea University cgvr.korea.ac.kr 3D Viewing 고려대학교 컴퓨터 그래픽스 연구실.
Computer Graphics Bing-Yu Chen National Taiwan University.
CAP 4703 Computer Graphic Methods Prof. Roy Levow Chapter 5.
CS 325 Introduction to Computer Graphics 02 / 22 / 2010 Instructor: Michael Eckmann.
University of North Carolina at Greensboro
2003CS Hons RW778 Graphics1 Chapter 7: Three-Dimensional Viewing Chapter 5: Camera with parallel projection Chapter 5: Camera with parallel projection.
Geometric Transformations
Three-Dimensional Viewing
12/24/2015 A.Aruna/Assistant professor/IT/SNSCE 1.
Graphics CSCI 343, Fall 2015 Lecture 16 Viewing I
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Classical Viewing Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Projection.
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.
Classical Viewing Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Lecture 5: Introduction to 3D
CS552: Computer Graphics Lecture 11: Orthographic Projection.
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)
Viewing Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
Viewing. Classical Viewing Viewing requires three basic elements - One or more objects - A viewer with a projection surface - Projectors that go from.
Computer Graphics Lecture 19 PROJECTIONS I Taqdees A. Siddiqi
Projection. Conceptual model of 3D viewing process.
PROJECTIONS PROJECTIONS 1. Transform 3D objects on to a 2D plane using projections 2 types of projections Perspective Parallel In parallel projection,
Forward Projection Pipeline and Transformations CENG 477 Introduction to Computer Graphics.
Three Dimensional Viewing
Viewing Viewing and viewing space (camera space)
Rendering Pipeline Fall, 2015.
3D Geometric Transformation
University of North Carolina at Greensboro
Computer Graphics CC416 Week 15 3D Graphics.
3D Transformation.
Computer Graphics 3D Transformations
PERSPECTIVE PROJECTION…...
Projection Our 3-D scenes are all specified in 3-D world coordinates
3D Viewing cgvr.korea.ac.kr.
CSCE 441 Computer Graphics 3-D Viewing
CSC461: Lecture 18 Classical Viewing
3D Transformation Pipeline
CSC461: Lecture 19 Computer Viewing
Classical Viewing Ed Angel
Isaac Gang University of Mary Hardin-Baylor
Introduction to Computer Graphics with WebGL
Three Dimensional Viewing
OpenGL 2D Viewing Pipeline
Planar Geometric Projection Classes
Three-Dimensional Viewing
3D Graphics.
Viewing (Projections)
Viewing (Projections)
THREE-DIMENSIONAL VIEWING II
THREE-DIMENSIONAL VIEWING
PROJECTIONS KOYEL DATTA GUPTA.
University of New Mexico
Isaac Gang University of Mary Hardin-Baylor
TWO DIMENSIONAL TRANSFORMATION
Presentation transcript:

Chapter 11 Three-Dimensional Geometric and Modeling Transformations

Translation

Rotation Positive rotation angles produce counterclockwise rotations about a coordinate axis

Rotation

Coordinate-Axes Rotations

Coordinate-Axes Rotations

Coordinate-Axes Rotations

Coordinate-Axes Rotations

General Three-Dimensional Rotations An object is to be rotated 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

General Three-Dimensional Rotations An object is to be rotated about an axis that is not parallel to one of the coordinate axes Translate the object so that the rotation axis passes through the coordinate origin. Rotate the object so that the axis of rotation coincide with one of the coordinate axes. Perform the specified rotation about that coordinate axis. Apply inverse rotations to bring the rotation axis back to its original orientation. Apply the inverse Translation to bring the rotation axis back to its original position.

General Three-Dimensional Rotations Transforming the rotation axis onto the z-axis. Rotation axis vector V=P2-P1 =(x2-x1,y2-y1,z2-z1) Unit vector u is defined along the rotation axis as: where a,b,c are the direction cosines for the rotation axis: Transforming the rotation axis onto the z-axis. Rotation axis vector V=P2-P1 =(x2-x1,y2-y1,z2-z1) Unit vector u is defined along the rotation axis as: where a,b,c are the direction cosines for the rotation axis: Transforming the rotation axis onto the z-axis. Rotation axis vector V=P2-P1 =(x2-x1,y2-y1,z2-z1) Unit vector u is defined along the rotation axis as: where a,b,c are the direction cosines for the rotation axis: Transforming the rotation axis onto the z-axis. Rotation axis vector V=P2-P1 =(x2-x1,y2-y1,z2-z1) Unit vector u is defined along the rotation axis as: where a,b,c are the direction cosines for the rotation axis:

Step1:set up the translation matrix

Step2:put the rotation axis on the z axis Rotate about the x axis to transform vector u into xz plane Swing u around to the z axis using a y-axis rotation

transform vector u into xz plane Projection of u in the yz plane be u’ & d be the magnitude of u’ Coordinate independent form: Cartesian form: (i) & (ii) => where |uz|=1 & |u’|=d (i) (ii)

This matrix rotates unit vector u about the x –axis into the xz plane

Swing u around to the z axis using a y-axis rotation It’s z-component is d i.e., the magnitude of u’ because vector u’ has been rotated onto the z-axis & y-component =0 since it is in xz-plane | u’’ | = |uz| = 1

Step3: rotation about the z axis  Composition of transformations:

Scaling Scaling with respect to the coordinate origin

Scaling Scaling with respect to a selected fixed position (xf, yf, zf) Translate the fixed point to origin Scale the object relative to the coordinate origin Translate the fixed point back to its original position

Scaling

Reflections

Shears

Composite transformations Carried out from right to left, where the rightmost matrix is the first transformation to be applied to an object and the leftmost matrix is the last transformation.

Find the matrix for rotating any object by 300 about an axis passing through the origin and point (10,0,10).

Three-Dimensional Viewing Chapter 12 Three-Dimensional Viewing

Viewing Analogous to the photographing process Camera position Camera orientation

Viewing Pipeline

THE VIEWING SYSTEM The viewing system is a unified model for image visualization and consists of a view coordinate system and point of view. These two components establish the viewer’s position in terms of world coordinates. The coordinate system is specified with respect to this point of view.

THE VIEWING SYSTEM The point of view can either be the origin of the coordinate system, or the center of projection. The viewing system must also contain an image plane for the projection of scenes and a view frustum/volume for the specification of the field of view.

THE VIEWING SYSTEM

Viewing-Coordinate System Viewing -Coordinate System or View Reference Coordinate System

Viewing-Coordinate System View plane (or projection plane) Perpendicular to the viewing zv axis View-plane normal vector N Choose a world coordinate position to determine N Determined by a look-at point relative to the view reference point.

Viewing-Coordinate System

Viewing-Coordinate System xv zv P0

Viewing-Coordinate System View-up vector V This vector is used to establish the positive direction for the yv axis. It is difficult to determine the direction for V that is precisely perpendicular to N. V is adjusted so that it is projected into a plane that is perpendicular to the normal vector.

Viewing-Coordinate System View-plane distance Choose the position of the view plane along the zv axis. The view plane is always parallel to the xvyv plane. Right-handed viewing system The convention of PHIGS and OpenGL To obtain a series of views of a scene Fix the view reference point and change the direction of N. The normal vector N is the most often changed viewing parameter

Transformation from World to Viewing Coordinates

Transformation from World to Viewing Coordinates MWC, VC = R. T

Projection Projection plane (or view plane) Center of projection (or projection reference point) An arbitrary point in the three-dimensional space. Usually it is the view point. Projectors Lines from the center of projection through each point in an object. Parallel projection The center of projection is located at infinity. All the projectors are parallel

Projection Perspective projection The center of projection is located at a finite point in three space. A distant line is displayed smaller than a nearer line of the same length.

Orthographic Parallel Projection Projection is perpendicular to the view plane Front, side, rear orthographic projections of an object are called elevations Top orthographic projection is called a plan view

Orthographic Parallel Projection Axonometric: orthographic projections that display more than one face of an object n not parallel to any principal axis Foreshortening factor sin() Isometric: all 3 principal axes foreshortened equally Dimetric: 2 foreshortened equally Trimetric: all 3 foreshortened unequally

Oblique Parallel Projection Projection is not perpendicular to the view plane

Parallel Projection: Cavalier Projections Lines perpendicular to the projection plane are projected with no change in length

Parallel Projection: Cabinet Projections Lines perpendicular to the projection plane are projected at ½ of their length. They appear more realistic

Perspective Projection

Perspective Projection zp = 0

Perspective Projection In three-dimensional homogeneous-coordinate representation h = (z - zprp)/dp is the homogeneous factor xp = xh / h & yp = yh / h