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

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

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

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

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

Three-Dimensional Graphics III. Guoying Zhao 1 / 67

Introduction to Computer Graphics 4. Viewing in 3D

Announcement. Project 1 has been posted online and in dropbox. Due: 11:59:59 pm, Friday, October 14

Introduction to Computer Graphics with WebGL

Computer Viewing. CS 537 Interactive Computer Graphics Prof. David E. Breen Department of Computer Science

Computer Viewing. CITS3003 Graphics & Animation. E. Angel and D. Shreiner: Interactive Computer Graphics 6E Addison-Wesley

Building Models. Angel and Shreiner: Interactive Computer Graphics 7E Addison-Wesley 2015

CS452/552; EE465/505. Models & Viewing

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

Building Models. CS 537 Interactive Computer Graphics Prof. David E. Breen Department of Computer Science

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

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

Introduction to Computer Graphics with WebGL

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

2D and 3D Viewing Basics

Viewing with Computers (OpenGL)

Computer Viewing Computer Graphics I, Fall 2008

Chapter 5. Projections and Rendering

COMP Computer Graphics and Image Processing. a6: Projections. In part 2 of our study of Viewing, we ll look at. COMP27112 Toby Howard

Computer Viewing. Prof. George Wolberg Dept. of Computer Science City College of New York

Overview of Projections: From a 3D world to a 2D screen.

Viewing and Projection Transformations

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

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

Lecture 4: Viewing. Topics:

Fundamental Types of Viewing

Chapter 8 Three-Dimensional Viewing Operations

Three-Dimensional Viewing Hearn & Baker Chapter 7

Chapter 5-3D Camera & Optimizations, Rasterization

Viewing. Cliff Lindsay, Ph.D. WPI

Viewing. Reading: Angel Ch.5

Chap 7, 2008 Spring Yeong Gil Shin

Overview. By end of the week:

CSC 470 Computer Graphics. Three Dimensional Viewing

Geometry: Outline. Projections. Orthographic Perspective

CS 432 Interactive Computer Graphics

Chap 7, 2009 Spring Yeong Gil Shin

Viewing Transformation

QUESTION BANK 10CS65 : COMPUTER GRAPHICS AND VISUALIZATION

CS452/552; EE465/505. Intro to Lighting

Computer Viewing and Projection. Overview. Computer Viewing. David Carr Fundamentals of Computer Graphics Spring 2004 Based on Slides by E.

Introduction to Computer Graphics with WebGL

GEOMETRIC TRANSFORMATIONS AND VIEWING

CS354 Computer Graphics Viewing and Modeling

CSC 470 Computer Graphics

Virtual Cameras and The Transformation Pipeline

CS 418: Interactive Computer Graphics. Projection

Chapter 4-3D Camera & Optimizations, Rasterization

Computer Graphics. Ch 6. 3D Viewing

Viewing/Projections IV. Week 4, Fri Feb 1

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)

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

Computer Graphics 7: Viewing in 3-D

Computer Graphics. Chapter 10 Three-Dimensional Viewing

Lecture 4. Viewing, Projection and Viewport Transformations

Realtime 3D Computer Graphics & Virtual Reality. Viewing

Notes on Assignment. Notes on Assignment. Notes on Assignment. Notes on Assignment

CSE528 Computer Graphics: Theory, Algorithms, and Applications

5.8.3 Oblique Projections

CS230 : Computer Graphics Lecture 6: Viewing Transformations. Tamar Shinar Computer Science & Engineering UC Riverside

Projection Lecture Series

On the Midterm Exam. Monday, 10/17 in class. Closed book and closed notes. One-side and one page cheat sheet is allowed. A calculator is allowed

Today. Rendering pipeline. Rendering pipeline. Object vs. Image order. Rendering engine Rendering engine (jtrt) Computergrafik. Rendering pipeline

CS452/552; EE465/505. Review & Examples

CS 4204 Computer Graphics

Three Main Themes of Computer Graphics

Viewing and Projection

Lecture 3 Sections 2.2, 4.4. Mon, Aug 31, 2009

CGT520 Transformations

Virtual Cameras & Their Matrices

Computer Graphics Chapter 7 Three-Dimensional Viewing Viewing

Virtual Environments

CSE328 Fundamentals of Computer Graphics

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

Chap 3 Viewing Pipeline Reading: Angel s Interactive Computer Graphics, Sixth ed. Sections 4.1~4.7

7. 3D Viewing. Projection: why is projection necessary? CS Dept, Univ of Kentucky

Viewing in 3D (Chapt. 6 in FVD, Chapt. 12 in Hearn & Baker)

Orthogonal Projection Matrices. Angel and Shreiner: Interactive Computer Graphics 7E Addison-Wesley 2015

The Viewing Pipeline adaptation of Paul Bunn & Kerryn Hugo s notes

Computer Graphics Viewing

Viewing and Projection

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

Game Architecture. 2/19/16: Rasterization

3.1 Viewing and Projection

SE Mock Online Retest 2-CG * Required

Models and The Viewing Pipeline. Jian Huang CS456

COMP30019 Graphics and Interaction Perspective Geometry

COMP30019 Graphics and Interaction Perspective & Polygonal Geometry

Projections. Brian Curless CSE 457 Spring Reading. Shrinking the pinhole. The pinhole camera. Required:

Overview. By end of the week:

Rasterization Overview

CSE528 Computer Graphics: Theory, Algorithms, and Applications

Computer Graphics (CS 543) Lecture 6a: Viewing & Camera Control. Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)

CS Computer Graphics: Transformations & The Synthetic Camera

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

Transcription:

Classical Viewing Viewing requires three basic elements One or more objects A viewer with a projection surface Projectors that go from the object(s) to the projection surface Classical views are based on the relationship among these elements 0 E.

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

Planar Geometric Projections Standard projections project onto a plane Projectors are lines that either converge at a center of projection are parallel Such projections preserve lines but not necessarily angles Nonplanar projections are needed for applications such as map construction 2

Classical Projections 3

Taxonomy of Planar Projections planar geometric projections parallel perspective multiview axonometric orthographic 1 point 2 point 3 point oblique isometric dimetric trimetric

Parallel Projection 5

Orthographic Projection Projectors are orthogonal to projection surface 6

Multiview Orthographic Projection Projection plane parallel to principal face Usually form front, top, side views isometric (not multiview orthographic view) front top side 7

Axonometric Projections Object rotated along one or more principal axes classify by how many angles of a corner of a projected cube are the same none: trimetric two: dimetric three: isometric θ 1 θ 3 θ 2 8

Types of Axonometric Projections 9

Oblique Projection Arbitrary relationship between projectors and projection plane 1 0

Example 1 1

Perspective Projection Projectors coverge at center of projection 1 2

Vanishing Points Parallel lines (not parallel to the projection plan) on the object converge at a single point in the projection (the vanishing point) Drawing simple perspectives by hand uses these vanishing point(s) vanishing point 1 3

Three-Point Perspective No principal face parallel to projection plane Three vanishing points for cube 1 4

Two-Point Perspective On principal direction parallel to projection plane Two vanishing points for cube 1 5

One-Point Perspective One principal face parallel to projection plane One vanishing point for cube 1 6

Computer Viewing There are three aspects of the viewing process, all of which are implemented in the pipeline, Positioning the camera Setting the model-view matrix Selecting a lens Setting the projection matrix (ortho vs. persp) Clipping Setting the view volume 1 7

The OpenGL Camera In OpenGL, initially the object and camera frames are the same Default model-view matrix is an identity The camera is located at origin and points in the negative z direction Default projection type is Orthographic OpenGL also specifies a default view volume that is a cube with sides of length 2 centered at the origin Default projection matrix is an identity 1 8

Default Projection Default projection is orthogonal clipped out 2 z=0 1 9

The LookAt Function The GLU library contained the function glulookat to form the required modelview matrix through a simple interface Replaced by LookAt() in mat.h 3D position mat4 mv = LookAt(vec4 eye, vec4 at, vec4 up); 3D position 3D Vector 20

LookAt LookAt(eye, at, up) 2 1

OpenGL Orthogonal Viewing Ortho(left,right,bottom,top,near,far) near and far measured from camera 2 2

OpenGL Perspective Frustum(left,right,bottom,top,near,far) near and far are distances from cam and should always be positive!!! 2 3

Using Field of View With Frustum it is often difficult to get the desired view Perpective(fovy, aspect, near, far) often provides a better interface front plane aspect = w/h 2 4

Using the Model View Matrix In OpenGL the model-view matrix is used to Position the camera Build the scene The projection matrix is used to define the view volume and to select a camera lens Although these matrices are no longer part of the OpenGL state, you will create them in your application and pass them to shaders to be applied 2 5

3D_ViewingDemo