CS 4204 Computer Graphics



Similar documents
Realtime 3D Computer Graphics Virtual Reality

Basic Problem: Map a 3D object to a 2D display surface. Analogy - Taking a snapshot with a camera

From 3D to 2D: Orthographic and Perspective Projection Part 1

How to read Plans and Do Basic Drawings

Wallingford Public Schools - HIGH SCHOOL COURSE OUTLINE

4BA6 - Topic 4 Dr. Steven Collins. Chap. 5 3D Viewing and Projections

Geometry for Computer Graphics

3D Drawing. Single Point Perspective with Diminishing Spaces

3D Viewing. Chapter 7. Projections. 3D clipping. OpenGL viewing functions and clipping planes

Traditional Drawing Tools

Monash University Clayton s School of Information Technology CSE3313 Computer Graphics Sample Exam Questions 2007

Technical Drawing Specifications Resource A guide to support VCE Visual Communication Design study design

B2.53-R3: COMPUTER GRAPHICS. NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions.

521493S Computer Graphics. Exercise 2 & course schedule change

3D Drawing. Single Point Perspective with Diminishing Spaces

An introduction to 3D draughting & solid modelling using AutoCAD

Anamorphic Projection Photographic Techniques for setting up 3D Chalk Paintings

Transformations in the pipeline

4. CAMERA ADJUSTMENTS

A Short Introduction to Computer Graphics

Freehand Sketching. Sections

LEAVING CERT DCG SCHEME OF WORK

How to Draw With Perspective. Created exclusively for Craftsy by Paul Heaston

INTRODUCTION TO RENDERING TECHNIQUES

Geometric Camera Parameters

Introduction to Computer Graphics

Message, Audience, Production (MAP) Framework for Teaching Media Literacy Social Studies Integration PRODUCTION

Image Processing and Computer Graphics. Rendering Pipeline. Matthias Teschner. Computer Science Department University of Freiburg

The Geometry of Perspective Projection

TWO-DIMENSIONAL TRANSFORMATION

Perspective and Space

Geometric Transformation CS 211A

Kankakee Community College

Essential Mathematics for Computer Graphics fast

Be visual all the time, and be verbal when labeling because explanations help clarify ideas.

Geometric Optics Converging Lenses and Mirrors Physics Lab IV

Activity Set 4. Trainer Guide

Creating 2D Drawings from 3D AutoCAD Models

Lesson Four 3D Modeling

We can display an object on a monitor screen in three different computer-model forms: Wireframe model Surface Model Solid model

Course Description. Spring

Introduction to 2D and 3D Computer Graphics Mastering 2D & 3D Computer Graphics Pipelines

MA 323 Geometric Modelling Course Notes: Day 02 Model Construction Problem

2.3 WINDOW-TO-VIEWPORT COORDINATE TRANSFORMATION

Introduction to CATIA V5

Vector Notation: AB represents the vector from point A to point B on a graph. The vector can be computed by B A.

Three-Dimensional Figures or Space Figures. Rectangular Prism Cylinder Cone Sphere. Two-Dimensional Figures or Plane Figures

Computer Graphics CS 543 Lecture 12 (Part 1) Curves. Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)

2: Introducing image synthesis. Some orientation how did we get here? Graphics system architecture Overview of OpenGL / GLU / GLUT

COMPUTER GRAPHICS IMPORTANT QUESTION AND ANSWERS. Computer graphics

Leaving Certificate. Design and Communication. (Ordinary Level and Higher Level)

Canterbury Maps Quick Start - Drawing and Printing Tools

A floor is a flat surface that extends in all directions. So, it models a plane. 1-1 Points, Lines, and Planes

Angles that are between parallel lines, but on opposite sides of a transversal.

Using 3D Computer Graphics Multimedia to Motivate Teachers Learning of Geometry and Pedagogy

Adobe Illustrator CS5 Part 1: Introduction to Illustrator

Quantifying Spatial Presence. Summary

1. A student followed the given steps below to complete a construction. Which type of construction is best represented by the steps given above?

First Level: 2D Fundamentals. by Randy H. Shih Oregon Institute of Technology

CS 4204 Computer Graphics

SOEM 024: Computer Aided Design. E. Rozos

COMP175: Computer Graphics. Lecture 1 Introduction and Display Technologies

Computer Graphics. Introduction. Computer graphics. What is computer graphics? Yung-Yu Chuang

Solving Simultaneous Equations and Matrices

Geometry and Measurement

Algebra Geometry Glossary. 90 angle

12-1 Representations of Three-Dimensional Figures

CATIA for Design and Engineering. Version 5 Releases 14 & 15. David S. Kelley. Central Michigan University SDC

Technical Drawing. MEC1000 Spring 2006 Instructor: David Anderson

Technical Drawing. Dr. Anwar Abu-Zarifa. Dr. Anwar Abu-Zarifa. Islamic University Gaza. Industrial Engineering Department 1

2D Geometric Transformations

The Essentials of CAGD

Raising the Roof Creating Roofs in Revit David Cohn

Thin Lenses Drawing Ray Diagrams

2D Geometrical Transformations. Foley & Van Dam, Chapter 5

MATHS LEVEL DESCRIPTORS

Course Title: Architectural Drawing I (Code: )

Adobe Illustrator CS5

Selecting the Best Approach to Teach 3D Modeling to Technical College Engineering

12.5 Equations of Lines and Planes

Number Sense and Operations

For Environmental Health Science Students. Engineering Drawing. Wuttet Taffesse, Laikemariam Kassa. Haramaya University

Leaving Certificate Design and Communication Graphics Syllabus. Ordinary level and Higher level

Pro/ENGINEER Wildfire 4.0 Basic Design

Engineering Graphics with AutoCAD

Discovering Math: Exploring Geometry Teacher s Guide

Geometry: Unit 1 Vocabulary TERM DEFINITION GEOMETRIC FIGURE. Cannot be defined by using other figures.

SDC. Schroff Development Corporation PUBLICATIONS. MultiMedia CD by Jack Zecher

TABLE OF CONTENTS. INTRODUCTION... 5 Advance Concrete... 5 Where to find information?... 6 INSTALLATION... 7 STARTING ADVANCE CONCRETE...

Exam 1 Sample Question SOLUTIONS. y = 2x

OBJECTIVES. Computeraided. Drafting and Design. Drafting vocabulary

CS 534: Computer Vision 3D Model-based recognition

Grade 8 Mathematics Geometry: Lesson 2

EXPERIMENT 6 OPTICS: FOCAL LENGTH OF A LENS

Understand the Sketcher workbench of CATIA V5.

37 Basic Geometric Shapes and Figures

2. If C is the midpoint of AB and B is the midpoint of AE, can you say that the measure of AC is 1/4 the measure of AE?

Producing 2D Documentation from 3D Models in AutoCAD

Space Perception and Binocular Vision

Digital Photography Composition. Kent Messamore 9/8/2013

Transcription:

CS 4204 Computer Graphics 3D views and projection Adapted from notes by Yong Cao 1

Overview of 3D rendering Modeling: *Define object in local coordinates *Place object in world coordinates (modeling transformation) Viewing: Define camera parameters Find object location in camera coordinates (viewing transformation) Projection: project object to the viewplane Clipping: clip object to the view volume *Viewport transformation *Rasterization: rasterize object * Topic we ve already discussed Simple teapot demo

3D rendering pipeline Vertices as input Series of operations/transformations to obtain 2D vertices in screen coordinates These can then be rasterized

3D rendering pipeline We ve already discussed: Viewport transformation 3D modeling transformations We ll talk about remaining topics in reverse order: 3D clipping (simple extension of 2D clipping) 3D projection 3D viewing

Clipping: 3D Cohen-Sutherland Use 6-bit outcodes When needed, clip line segment against planes

Viewing and Projection Camera Analogy: 1. Set up your tripod and point the camera at the scene (viewing transformation). 2. Arrange the scene to be photographed into the desired composition (modeling transformation). 3. Choose a camera lens or adjust the zoom (projection transformation). 4. Determine how large you want the final photograph to be - for example, you might want it enlarged (viewport transformation).

Projection transformations

Introduction to Projection Transformations Mapping: f : R n R m Projection: n > m Planar Projection: Projection on a plane. R 3 R 2 or R 4 R 3 homogeneous coordinates.

Introduction to Projection Transformations

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 The viewer picks up the object and orients it how she would like to see it Each object is assumed to constructed from flat principal faces Buildings, polyhedra, manufactured objects

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 Non-planar projections are needed for applications such as map construction

Classical Projections

Perspective vs Parallel Computer graphics treats all projections the same and implements them with a single pipeline Classical viewing developed different techniques for drawing each type of projection Fundamental distinction is between parallel and perspective viewing even though mathematically parallel viewing is the limit of perspective viewing

Perspective Projection

Parallel Projection

Taxonomy of Planar Geometric Projections

Examples

Orthographic Projection Projectors are orthogonal to projection surface

Multiview Orthographic Projection Projection plane parallel to principal face Usually form front, top, side views isometric front in CAD and architecture, we often display three multiviews plus isometric top side

Advantages and Disadvantages Preserves both distances and angles Shapes preserved Can be used for measurements Building plans Manuals Cannot see what object really looks like because many surfaces hidden from view Often we add the isometric

Axonometric Projections Allow projection plane to move relative to object classify by how many angles of a corner of a projected cube are the same none: trimetric two: dimetric three: isometric θ 2 θ 1 θ 3

Types of Axonometric Projections

Advantages and Disadvantages Lines are scaled (foreshortened( foreshortened) ) but can find scaling factors Lines preserved but angles are not Projection of a circle in a plane not parallel to the projection plane is an ellipse Can see three principal faces of a box-like object Some optical illusions possible Parallel lines appear to diverge Does not look real because far objects are scaled the same as near objects Used in CAD applications

Oblique Projection Arbitrary relationship between projectors and projection plane

Advantages and Disadvantages Can pick the angles to emphasize a particular face Architecture: plan oblique, elevation oblique Angles in faces parallel to projection plane are preserved while we can still see around side In physical world, cannot create with simple camera; possible with bellows camera or special lens (architectural)

Perspective Projection Projectors converge at center of projection Perspective projection demo

Vanishing Points Parallel lines (not parallel to the projection plane) 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

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

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

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

Advantages and Disadvantages Objects further from viewer are projected smaller than the same sized objects closer to the viewer (diminution) Looks realistic Equal distances along a line are not projected into equal distances (non-uniform foreshortening) Angles preserved only in planes parallel to the projection plane More difficult to construct by hand than parallel projections (but not more difficult by computer)

Perspective Projections of 3-D Objects A vertex located at P in eye coordinates is projected to a certain point (x*,( y*) on the near plane, and is then mapped to the viewport on the display.

Perspective Projection Properties Straight lines project to straight lines. Consider the line between A and B. A projects to A and B projects to B. In between: consider the plane formed by A, B, and the origin. Since any two planes intersect in a straight line, this plane intersects the near plane in a straight line. Thus line segment AB projects to line segment A B.

Example: horizontal grid in perspective

Mathematics of a basic perspective projection Similar triangles

One-Point Projection in matrix form -Z Center of Projection at the origin with viewplane parallel to the x-y plane a distance d from the origin. x projected = x/(z/d) y projected = y/(z/d) +Z **Points plotted are x/w, y/w where w = z/d