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.

Slides:



Advertisements
Similar presentations
Computer Graphics - Viewing -
Advertisements

Three Dimensional Viewing
Three-Dimensional Viewing Sang Il Park Sejong University Lots of slides are stolen from Jehee Lee’s.
1 Projection. 2 Model Transform Viewing Transform Modelview Matrix world coordinates Pipeline Review Focus of this lecture.
Now Playing: Coulibaly Amadou & Mariam from Dimanche a Bamako Released August 2, 2005.
4.1si31_2001 SI31 Advanced Computer Graphics AGR Lecture 4 Projection Clipping Viewport Transformation.
Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
IT- 601: Computer Graphics Lecture-11 Mathematics of Projection Jesmin Akhter Lecturer,IIT Jahangirnagar University, Savar, Dhaka,Bangladesh.
1 Chapter 5 Viewing. 2 Perspective Projection 3 Parallel Projection.
1 of 23 New Lecture And Lab Information Lectures: –Thursday 12:00 – 13:00 (room tba) –Friday 15:00 – 16:00 (A28) Labs: –Wednesday 10:00 – 11:00 (A305)
Visualization and Graphics Introduction
12.1 Si23_03 SI23 Introduction to Computer Graphics Lecture 12 – 3D Graphics Transformation Pipeline: Projection and Clipping.
Computer Graphics (fall 2009)
Advanced Computer Graphics Three Dimensional Viewing
Transformation & Projection Feng Yu Proseminar Computer Graphics :
Computer Graphics I, Fall 2010 Classical Viewing.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
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.
University of Palestine Computer Graphics ITGD3107 Prepare: Mohammed J. el-masre Nidal M. El-Borbar Supervision:
1 Computer Graphics Week9 -3D Geometric Transformation.
CS 325 Introduction to Computer Graphics 02 / 22 / 2010 Instructor: Michael Eckmann.
Basic Projections 2D to 3D
I N T R O D U C T I O N T O C O M P U T E R G R A P H I C S Andries van Dam 3D Viewing I CIS 736 Computer Graphics Review of Basics 2 of 5: 3D Viewing.
CS5500 Computer Graphics March 12, 2007.
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.
Three-Dimensional Viewing
Three-Dimensional Viewing Hearn & Baker Chapter 7
12/24/2015 A.Aruna/Assistant professor/IT/SNSCE 1.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Classical Viewing Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Projection.
Classical Viewing Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Taxonomy of Projections FVFHP Figure Taxonomy of Projections.
CS552: Computer Graphics Lecture 11: Orthographic Projection.
1 PTT 105/3: Engineering Graphics. TAXONOMY OF PLANAR GEOMETRIC PROJECTIONS PTT 105/3: Engineering Graphics 2 Planar Geometric Projections Parallel Multiview.
1 By Dr. HANY ELSALAMONY.  We have seen how to create models in the 3D world. We discussed transforms in lecture 3, and we have used some transformations.
CS 376 Introduction to Computer Graphics 02 / 21 / 2007 Instructor: Michael Eckmann.
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
Computer Graphics Projections.
Viewing in 3D Lecture 11. Viewing in 3D2 u The 3D viewing process is inherently more complex than is the 2D viewing process. F In 2D, we simply specify.
PROJECTIONS PROJECTIONS 1. Transform 3D objects on to a 2D plane using projections 2 types of projections Perspective Parallel In parallel projection,
3D Viewing and Clipping Ming Ouhyoung 歐陽明 Professor Dept. of CSIE and GINM NTU.
COMPUTER GRAPHICS 1/36 Viewing 1 Viewing: Types of Projections Computer Graphics.
Forward Projection Pipeline and Transformations CENG 477 Introduction to Computer Graphics.
Chapter 11 Three-Dimensional Geometric and Modeling Transformations
University of North Carolina at Greensboro
Translation Rotation Scaling
PERSPECTIVE PROJECTION…...
Projection Our 3-D scenes are all specified in 3-D world coordinates
3D Viewing cgvr.korea.ac.kr.
Rendering Pipeline Aaron Bloomfield CS 445: Introduction to Graphics
CSC461: Lecture 18 Classical Viewing
Viewing in 3D Chapter 6.
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
3D Graphics.
Viewing (Projections)
Viewing (Projections)
THREE-DIMENSIONAL VIEWING
University of New Mexico
Isaac Gang University of Mary Hardin-Baylor
Presentation transcript:

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

Translations In 3-D To translate a point in three dimensions by tx, ty and tz simply calculate the new points as follows: x’ = x + tx y’ = y + tyz’ = z + tz (x’, y’, z’) (x, y, z) Translated Position

Scaling In 3-D To scale a point in three dimensions by sx, sy and sz simply calculate the new points as follows: x’ = sx*xy’ = sy*yz’ = sz*z (x, y, z) Scaled Position (x’, y’, z’)

Rotations In 3-D x’ = x·cosθ - y·sinθ y’ = x·sinθ + y·cosθ z’ = z x’ = x y’ = y·cosθ - z·sinθ z’ = y·sinθ + z·cosθ x’ = z·sinθ + x·cosθ y’ = y z’ = z·cosθ - x·sinθ The equations for the three kinds of rotations in 3-D are as follows:

Homogeneous Coordinates In 3-D Similar to the 2-D situation we can use homogeneous coordinates for 3-D transformations - 4 coordinate column vector All transformations can then be represented as matrices x axis y axis z axis P y z x P (x, y, z) =

3D Transformation Matrices Translation by tx, ty, tz Scaling by sx, sy, sz Rotate About X-AxisRotate About Y-AxisRotate About Z-Axis

Projections Our 3-D scenes are all specified in 3-D world coordinates To display these we need to generate a 2-D image - project objects onto a picture plane So how do we figure out these projections? Picture Plane Objects in World Space

Converting From 3D To 2D Projection is just one part of the process of converting from 3D world coordinates to a 2D image Clip against view volume Project onto projection plane Transform to 2-D device coordinates 3-D world coordinate output primitives 2-D device coordinates

3D Viewing In 2D viewing we have 2D window & 2D viewport & objects in the world coordinates. The 3D viewing has an added dimension which makes it complex as even though objects are 3D the display devices are only 2D. The mismatch between 3D objects & 2D displays is compensated by introducing projections. The projection transforms 3D objects into a 2D projection plane. View plane: It is nothing but the film plane in a camera which is positioned & oriented for a particular shot of the scene. World coordinates positions in the scene are transformed to viewing coordinates, then viewing coordinates are projected onto the view plane.

View reference point: This point is the center of our viewing coordinate system. The production of a 2D image of higher dimensional object refers to graphical projection. A projection can be defined as a mapping of any point P[x,y,z] to its image P`[x`,y`,z`] onto the view plane, called as projection plane. Parallel & perspective projections are the two broad categories of projections.

Types of Projections There are two broad classes of projection: – Parallel: Typically used for architectural and engineering drawings. – Perspective: Realistic looking and used in computer graphics. Perspective Projection Parallel Projection

Parallel Projections Some examples of parallel projections Orthographic Projection Isometric Projection

Perspective Projections Perspective projections are much more realistic than parallel projections

Geometric projection Perspective Parallel Orthogr aphic Three- point Two- point Oblique To p One- point Other Cavalier Isometric Cabinet Fro nt Ax on om etr ic Side elev atio n

Parallel projection: – If the direction of projection is perpendicular to the projection plane, it is an orthographic projection. – If the direction of projection is not perpendicular to the projection plane is called as oblique projection. – A multi-view projection displays a single face of a 3D object. – Axonometric projections allow the user to place the view-plane normal in any direction such that 3 adjacent faces of a cube like object are visible. – Dimetric projections differ from isometric projections in the direction of the view-plane normal.

– Trimetric projections allow the viewer the most freedom in selecting the components of n. Perspective projection: – It is a type of projection where 3D objects are not projected along parallel lines, but along lines emerging from a single point. – A vanishing point is a point in a perspective drawing to which parallel lines appear to converge. – One-point perspective exists when a painting plate is parallel to two axes of a rectilinear scene. – Two point perspective

Assignment Orthographic Wireframe Elevation Orthographic Wireframe Plan Orthographic Wireframe End-Elevation Perspective View