Content. Coordinate systems Orthographic projection. (Engineering Drawings)

Similar documents
Projection Lecture Series

MAE : Lecture #12 - Projection and Perspective. Lecture Overview:

CITSTUDENTS.IN VIEWING. Computer Graphics and Visualization. Classical and computer viewing. Viewing with a computer. Positioning of the camera

Chapter 8 Three-Dimensional Viewing Operations

3D Viewing. CMPT 361 Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

3D Viewing. Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

Computer Science 426 Midterm 3/11/04, 1:30PM-2:50PM

Introduction to Computer Graphics 4. Viewing in 3D

2D Image Transforms Computer Vision (Kris Kitani) Carnegie Mellon University

Coordinate transformations. 5554: Packet 8 1

MATHEMATICS FOR ENGINEERING TUTORIAL 5 COORDINATE SYSTEMS

Transformations in Ray Tracing. MIT EECS 6.837, Durand and Cutler

Specifying Complex Scenes

So we have been talking about 3D viewing, the transformations pertaining to 3D viewing. Today we will continue on it. (Refer Slide Time: 1:15)

Viewing with Computers (OpenGL)

3D Polygon Rendering. Many applications use rendering of 3D polygons with direct illumination

+ i a y )( cosφ + isinφ) ( ) + i( a x. cosφ a y. = a x

Computer Graphics Viewing

Computer Graphics Geometric Transformations

3D Viewing. With acknowledge to: Ed Angel. Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico

ME-430 Introduction to CAD Lecture Notes- Part 3

COMP30019 Graphics and Interaction Three-dimensional transformation geometry and perspective

2D and 3D Coordinate Systems and Transformations

Geometry: Unit 1: Transformations. Chapter 14 (In Textbook)

Computer Graphics 7: Viewing in 3-D

COMP3421. Introduction to 3D Graphics

Chapter 5. Projections and Rendering

Graphics and Interaction Transformation geometry and homogeneous coordinates

CS452/552; EE465/505. Models & Viewing

COMP30019 Graphics and Interaction Transformation geometry and homogeneous coordinates

CSC 305 The Graphics Pipeline-1

Computer Vision cmput 428/615

Transformation Algebra

Answers to practice questions for Midterm 1

One or more objects A viewer with a projection surface Projectors that go from the object(s) to the projection surface

Adding vectors. Let s consider some vectors to be added.

Image Warping. Some slides from Steve Seitz

Visual Recognition: Image Formation

Computer Vision. Coordinates. Prof. Flávio Cardeal DECOM / CEFET- MG.

Multimedia Signals and Systems Virtual Reality and VRML

Supplementary Material: The Rotation Matrix

Computer Graphics: Viewing in 3-D. Course Website:

Image Warping : Computational Photography Alexei Efros, CMU, Fall Some slides from Steve Seitz

Chap 7, 2008 Spring Yeong Gil Shin

Transformations. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico

Transforms. COMP 575/770 Spring 2013

1 OpenGL - column vectors (column-major ordering)

Lecture 5: Transforms II. Computer Graphics and Imaging UC Berkeley CS184/284A

521493S Computer Graphics Exercise 2 Solution (Chapters 4-5)

Three-Dimensional Viewing Hearn & Baker Chapter 7

Differential Geometry: Circle Patterns (Part 1) [Discrete Conformal Mappinngs via Circle Patterns. Kharevych, Springborn and Schröder]

COMP3421. Introduction to 3D Graphics

Lecture 6 Sections 4.3, 4.6, 4.7. Wed, Sep 9, 2009

Computer Graphics. P05 Viewing in 3D. Part 1. Aleksandra Pizurica Ghent University

Computer Graphics. Chapter 5 Geometric Transformations. Somsak Walairacht, Computer Engineering, KMITL

BASIC ELEMENTS. Geometry is the study of the relationships among objects in an n-dimensional space

Transformations Computer Graphics I Lecture 4

Three-Dimensional Graphics III. Guoying Zhao 1 / 67

Script for the Excel-based applet StereogramHeijn_v2.2.xls

Overview. Viewing and perspectives. Planar Geometric Projections. Classical Viewing. Classical views Computer viewing Perspective normalization

CS 563 Advanced Topics in Computer Graphics. by Emmanuel Agu

Transformations: 2D Transforms

Overview of Transformations (18 marks) In many applications, changes in orientations, size, and shape are accomplished with

Classical and Computer Viewing. Adapted From: Ed Angel Professor of Emeritus of Computer Science University of New Mexico

1 Transformations. Chapter 1. Transformations. Department of Computer Science and Engineering 1-1

EEE 187: Robotics Summary 2

Transforms II. Overview. Homogeneous Coordinates 3-D Transforms Viewing Projections. Homogeneous Coordinates. x y z w

Camera Pose Measurement from 2D-3D Correspondences of Three Z Shaped Lines

2D and 3D Viewing Basics

2.1 Three Dimensional Concepts

2D and 3D Transformations AUI Course Denbigh Starkey

Lesson 5.6: Angles in Standard Position

Three Dimensional Geometry. Linear Programming

Computer Graphics. Jeng-Sheng Yeh 葉正聖 Ming Chuan University (modified from Bing-Yu Chen s slides)

Computer Graphics. Chapter 7 2D Geometric Transformations

Computer Graphics. Ch 6. 3D Viewing

Prof. Feng Liu. Fall /19/2016

PreCalculus Unit 1: Unit Circle Trig Quiz Review (Day 9)

CALCULATING TRANSFORMATIONS OF KINEMATIC CHAINS USING HOMOGENEOUS COORDINATES

[ ] [ ] Orthogonal Transformation of Cartesian Coordinates in 2D & 3D. φ = cos 1 1/ φ = tan 1 [ 2 /1]

Viewing. Announcements. A Note About Transformations. Orthographic and Perspective Projection Implementation Vanishing Points

Interactive Computer Graphics. Hearn & Baker, chapter D transforms Hearn & Baker, chapter 5. Aliasing and Anti-Aliasing

Transformations Computer Graphics I Lecture 4

GEOMETRIC TRANSFORMATIONS AND VIEWING

Computer Vision Systems. Viewing Systems Projections Illuminations Rendering Culling and Clipping Implementations

Computing Complex Document Z-2. A DESCRIPTION OF THE LANGLEY WIREFRAME GEOMETRY STANDARD (LaWGS) FORMAT. Compiled by Charlotte B.

DD2429 Computational Photography :00-19:00

Interactive Computer Graphics. Warping and morphing. Warping and Morphing. Warping and Morphing. Lecture 14+15: Warping and Morphing. What is.

Announcements. Submitting Programs Upload source and executable(s) (Windows or Mac) to digital dropbox on Blackboard

3D Transformations World Window to Viewport Transformation Week 2, Lecture 4

Homogeneous Coordinates and Transformations of the Plane

Computer Graphics. Bing-Yu Chen National Taiwan University The University of Tokyo

Last week. Machiraju/Zhang/Möller

Homogeneous Coordinates. Lecture18: Camera Models. Representation of Line and Point in 2D. Cross Product. Overall scaling is NOT important.

Camera Projection Models We will introduce different camera projection models that relate the location of an image point to the coordinates of the

EECE 478. Learning Objectives. Learning Objectives. Linear Algebra and 3D Geometry. Linear algebra in 3D. Coordinate systems

Rational Numbers: Graphing: The Coordinate Plane

Image warping , , Computational Photography Fall 2017, Lecture 10

To graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6

Contents. Graphics Library Display 2D/3D objects Coordinate Systems Window and Viewport Transformation. CAD Graphics - 1

Transcription:

Projection Views

Content Coordinate systems Orthographic projection (Engineering Drawings)

Graphical Coordinator Systems A coordinate system is needed to input, store and display model geometry and graphics. Four different types of coordinate systems are used in a CAD system at different stages of geometric modeling and for different tasks.

Model (or World, Database) Coordinator System The reference space of fthe model with respect tto which hall of the geometrical data is stored. It is a Cartesian system which forms the default coordinate system used by a software system. z y Y X x Z

Viewing Coordinate System View Plane Textbook setup - for Parallel l Projection, the viewer is at infinity. Zv Yv Xv View Window Viewing Direction Viewer AutoCAD Default Setup Z Y X Viewer

Viewing Coordinate System (VCS) A 3-D Cartesian coordinate system (right hand of left hand) in which a projection of the modeled object is formed. VSC will be discussed in detail under Perspective or Parallel Projections. Viewing Coor. System Model Coor Sys

P

Viewer Viewer

Parallel Projection Preserve actual dimensions and shapes of objects Preserve parallelism Angles preserved only on faces parallel to the projection plane Orthographic projection is one type of parallel projection

Perspective Projection Doesn t preserve parallelism Doesn t preserve actual dimensions and angles of objects, therefore shapes deformed Popular in art (classic painting); architectural design and civil engineering. Not commonly used in mechanical engineering

Geometric Transformations for Generating Projection View Set Up the Viewing Coordinate System (VCS) i) Define the view reference point P = ( P x, P y, P z ) T v ii) Define the line of the sight vector n (normalized) v n = ( N x, N y, N z ) T and N 2 x + N 2 y + N 2 z =1 iii) Define the "up" direction v T V = V x, V y, V z n, V v n v = 0 r u, V v, v n ( ) T v This also defines an orthogonal vector, ( ) forms the viewing coordinates Define the View Window in u v n coordinates v u = V v v n

Generating Parallel Projection Problem: for a given computer model, we know its x-y-z coordinates in MCS; and we need to find its u-v-n coordinates in VCS and X s -Y s in WCS. Getting the u-v-n coordinates of the objects by transforming the objects and u-v-n coordinate system together to fully align u-v-n with x-y-z axes, then drop the n (the depth) component to get Xs and Ys Viewing Coor. System Model Coor Sys - Translate O v to O. - Align the n axis with the Z axis. - Fully aligning u-v-n with x-y-z

Generating Parallel Projection (1) First transform coordinates of objects into the u-v-n coordinates (VCS), then drop the n component. (n is the depth) i.e. Overlapping u - v n with x -y -z i) Translate O v to O. ) v v n ii) Align the axis with the Z axis. The procedure is identical to the transformations used to prepare for the rotation about an axis. A = N x, B = N y, C = N z L = N x 2 + Ny 2 + Nz 2 y V = N y 2 + Nz 2 [ D] = 1 0 0 0 vx 0 1 0 0 vy 0 0 1 0 vz 0 0 0 1

Generating Parallel Projection (2) θ 1 2 Rotating about X: [R] x ; and Rotating about Y: [R] y θ Fully aligning u-v-n with x-y-z Then, rotate Ө 3 about the Z axis to align ū with X and v with Y

Generating Parallel Projection (3) Rotate Ө 3 about the Z axis to align ū with X and v with Y At this point, is given by V x, V y, 0 where V V x V y = R y 0 1 [ ] R x [ ][ Do v,o] ( ) T V x V y V z 1 We need to rotate by an angle Ө 3 about the Z axis L = V x 2 + V y 2, sinθ 3 = V x L, cosθ 3 = V y L [ R z ]= V r L V x L 0 0 V xl V yl 0 0 0 0 1 0 0 0 0 1 Result:

Generating Parallel Projection (4) Drop the n coordinate [ ]=] D n 1 0 0 0 0 1 0 0 0 0 0 0, 0 0 0 1 0 0 u V = D n 0 1 u V 1 [ ] n In summary, to project a view of an object on the UV plane, one needs to transform each point on the object by: [ T ] = [ Dn ][ Rz][ Ry] [ Rx ][ Do, o] v u V P = 0 1 = [ T ]P = T [ ] x y z 1 Note: The inverse transforms are not needed! We don't want to go back to x - y - z coordinates.

Oth Orthographic hi Projection Y Top Front Right X Z Projection planes (Viewing planes) are perpendicular to the principal axes of the MCS of the model The projection direction (viewing direction) coincides with one of the MCS axes

Y Top Front Right X Geometric Transformations for Generating Orthographic Projection (Front View) Z Yv,Y Front Pv = 1 0 0 0 0 1 0 0 P 0 0 0 0 0 0 0 1 Xv, X Drop Z

Y Top Front Right Yv Geometric Transformations for Generating Orthographic Projection (Top View) X Top Xv, X Z Z 1000 1 0 0 0 1 0 0 0 0cos(90) sin(90 0100 ) 0 00 10 P v = P = P 0000 0sin( 90 ) cos(90) 0 00 0 0 0001 0 0 0 1 00 01 Drop Z 90 [ R] x

Y Top Front Right X Yv, Y Geometric Transformations for Generating Oth Orthographic hi Projection (Right View) Right Z Xv Z 1000 cos( 90 ) 0 sin( 90 ) 0 00 1 0 0100 0 1 0 0 01 0 0 P = = v P P 000 0 sin ( 90 ) 0 cos( 90 ) 0 00 0 0 0001 0 0 0 1 00 0 1 Drop Z 90 [ R] y

Rotations Needed for Generating Isometric Projection Y Top Front Right Y Yv Top X Front Right Xv Z Z Zv X 1 0 0 0 cosθ 0 sinθ 0 0cos sin 0 0 1 0 0 P [ ] [ ] v = R φ x R θ yp= φ φ P 0 sinφ cosφ 0 sinθ 0 cosθ 0 0 0 0 1 0 0 0 1

Isometric Projection: Equally foreshorten the three main axes θ = ± 45, φ = ± 35. 26

Other Possible Rotation Paths Rx --> Ry Rz --> Ry(Rx) Rx(Ry) --> Rz r x = ± 45, ry = ± 35. 26 r z = ± 45, r y( ( x ) = ± 54. 74 ry ( x) = ± 45, rz = ANY ANGLE