Projections.

Slides:



Advertisements
Similar presentations
GR2 Advanced Computer Graphics AGR
Advertisements

1 Computer Graphics Chapter 8 3D Transformations.
Computer Graphics Visible Surface Determination. Goal of Visible Surface Determination To draw only the surfaces (triangles) that are visible, given a.
CS 4363/6353 INTRODUCTION TO COMPUTER GRAPHICS. WHAT YOU’LL SEE Interactive 3D computer graphics Real-time 2D, but mostly 3D OpenGL C/C++ (if you don’t.
Viewing and Projections
Hidden Surface Removal April 30, Hidden Surface Removal Object-space algorithms: –Back-face culling (removal) –Depth sorting and Painter’s algorithm.
CS 4731: Computer Graphics Lecture 11: 3D Viewing Emmanuel Agu.
Scenes, Cameras & Lighting. Outline  Constructing a scene  Using hierarchy  Camera models  Light models.
Projection Projection - the transformation of points from a coordinate system in n dimensions to a coordinate system in m dimensions where m
2/26/04© University of Wisconsin, CS559 Spring 2004 Last Time General Orthographic Viewing –Specifying cameras in world coordinates –Building world  view.
UNIT - 5 3D transformation and viewing. 3D Point  We will consider points as column vectors. Thus, a typical point with coordinates (x, y, z) is represented.
Introduction to 3D viewing 3D is just like taking a photograph!
Lecture 5: 3D Rendering Pipeline (II) Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia Institute of Technology.
CSE 381 – Advanced Game Programming Basic 3D Graphics
02/26/02 (c) 2002 University of Wisconsin, CS 559 Last Time Canonical view pipeline Orthographic projection –There was an error in the matrix for taking.
Advanced Computer Graphics Three Dimensional Viewing
Week 2 - Wednesday CS361.
Computer Graphics World, View and Projection Matrices CO2409 Computer Graphics Week 8.
2 COEN Computer Graphics I Evening’s Goals n Discuss the mathematical transformations that are utilized for computer graphics projection viewing.
CS559: Computer Graphics Lecture 9: Projection Li Zhang Spring 2008.
11.6 Using Curved Mirrors Text pages
CS 450: COMPUTER GRAPHICS REVIEW: INTRODUCTION TO COMPUTER GRAPHICS – PART 2 SPRING 2015 DR. MICHAEL J. REALE.
Real-time Shadow Mapping. Shadow Mapping Shadow mapping uses two-pass rendering - render depth texture from the light ’ s point-of-view - render from.
CAP4730: Computational Structures in Computer Graphics 3D Transformations.
CS 450: COMPUTER GRAPHICS PROJECTIONS SPRING 2015 DR. MICHAEL J. REALE.
OpenGL The Viewing Pipeline: Definition: a series of operations that are applied to the OpenGL matrices, in order to create a 2D representation from 3D.
Basic Perspective Projection Watt Section 5.2, some typos Define a focal distance, d, and shift the origin to be at that distance (note d is negative)
©2005, Lee Iverson Lee Iverson UBC Dept. of ECE EECE 478 Viewing and Projection.
David Luebke1/10/2016 CS 551 / 645: Introductory Computer Graphics David Luebke
4.1 Gravitational Force Near Earth
1 Perception and VR MONT 104S, Fall 2008 Lecture 20 Computer Graphics and VR.
A Photograph of two papers
Coordinate Systems Lecture 1 Fri, Sep 2, The Coordinate Systems The points we create are transformed through a series of coordinate systems before.
Viewing and Projection. The topics Interior parameters Projection type Field of view Clipping Frustum… Exterior parameters Camera position Camera orientation.
OpenGL LAB III.
A Photograph of two papers The Model: 2 papers – 8cm x 8cm and 5cm x 5cm The Camera – Simple pinhole – No focusing capability The Scene – Arrangements.
Homogeneous Coordinates They work, but where do they come from? Jonathan Senning
Introduction to Computer Graphics
Three Dimensional Viewing
Visible Surface Detection
Perspective projection
Rendering Pipeline Fall, 2015.
- Introduction - Graphics Pipeline
Solid Area Scan Conversion or Visible Surface Detection
Intro to 3D Graphics.
Algebra 4-2 Transformations on the Coordinate Plane
Line Reflection!.
Curved Mirror Equations
CENG 477 Introduction to Computer Graphics
CS451Real-time Rendering Pipeline
Viewing/Projections I Week 3, Fri Jan 25
Geometry: Unit 1: Transformations
CSCE 441: Computer Graphics Hidden Surface Removal
Computer Graphics 9: Clipping In 3D
A Photograph of two papers
Translations.
CSL 859: Advanced Computer Graphics
Computer Graphics Lecture 20
Computer Graphics One of the central components of three-dimensional graphics has been a basic system that renders objects represented by a set of polygons.
Projection in 3-D Glenn G. Chappell
Last Time Canonical view pipeline Projection Local Coordinate Space
Transformations Geometry
7.4 Translations and vectors
STANDARD 2: The Elements of Art
Viewing (Projections)
Viewing (Projections)
Distances in the UNiverse
Hidden Surface Removal
SPACE The Illusion of Depth
Maps one figure onto another figure in a plane.
Presentation transcript:

Projections

Learning Objectives Understand how projection transforms work Understand how clipping works Understand how a z-buffer operates Be able to describe the rendering process from vectors to pictures on the screen

Projection Mathematics y d Image Plane z x

The Math (x,y,z) [x/(z/d), y/(z/d), z/(z/d)]

Clipping Sometimes objects are larger than, or outside of the region in the viewing frustum. Sometimes objects are closer or farther away than you want to view them. Objects outside the edges are easily recognized after projected to the image plane (i.e., if x < -1, y>+1, etc.)

The Z-Buffer All the useful imaging information is in the x and y coordinates after the image transformation. What can you do with the z coordinate? The z coordinate can be used to determine the relative depth (z/d) of the objects in space. This allows you to find out which objects are in front of other objects.

For Example Z/d is big for These points Z/d is small For these points

The Rendering Process Transform the viewed geometry so you are looking down the z axis (or negative z axis on some systems). Sometimes this is two transformations – the model and the viewing position Define the projection transformation (specify the image plane distance, near and far clipping). Project the points into the viewing plane and clip the ones that are outside the field of view. Fill in the z-buffer and draw things that have a smaller z-buffer value than whatever was there previously.

Learning Objectives Understand how projection transforms work Understand how clipping works Understand how a z-buffer operates Be able to describe the rendering process from vectors to pictures on the screen