University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Scan Conversion Week 5, Fri 3 Oct 2003 recap: shading scan conversion: lines.

Slides:



Advertisements
Similar presentations
Scan Conversion A. Samal. Scan Conversion Last step in the graphics pipeline Efficiency is a central issue Common primitives – Lines – Polygons – Circles.
Advertisements

Graphics Pipeline.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2007 Tamara Munzner Lighting/Shading III Week.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Textures I Week 8, Mon.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2008 Tamara Munzner Lighting/Shading III Week.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Transformations Week 2,
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Introduction Week 1, Wed Jan 5.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Interpolation Clipping.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Transformations II Week.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2007 Tamara Munzner Shading, Advanced Rendering.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Information Visualization.
1 of 29 Interesting Illumination Demo There’s a very nice Java illumination model demo which may help you understand the effects of different kinds of.
Computer Graphics (Fall 2005) COMS 4160, Lecture 16: Illumination and Shading 1
Implementation III Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Scan Conversion Week 6, Wed 8 Oct 2003
© Wolfgang Heidrich University of British Columbia Geometric Transformations recap recap composition of transformations composition of transformations.
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Projections Fri 19 Oct 2003 recap: viewing projections.
The Graphics Pipeline CS2150 Anthony Jones. Introduction What is this lecture about? – The graphics pipeline as a whole – With examples from the video.
6.1 Vis_04 Data Visualization Lecture 6 - A Rough Guide to Rendering.
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Midterm Review Week 7, Wed 16 Oct 2003 midterm review project 1 demos, hall.
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Shading Week 5, Wed 1 Oct 2003 recap: lighting shading.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Visibility Week 7, Wed.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Lighting and Shading Week.
Computer Graphics An Introduction. Computer Graphics 26/9/2008Lecture 12 What’s this course all about? We will cover… Graphics programming and algorithms.
3D Programming Concepts How objects are described in 3D and Rendering Pipelines – A conceptual way of thinking of the steps involved of converting an abstract.
Computer Graphics An Introduction. What’s this course all about? 06/10/2015 Lecture 1 2 We will cover… Graphics programming and algorithms Graphics data.
1Computer Graphics Implementation III Lecture 17 John Shearer Culture Lab – space 2
Introduction to Computer Graphics with WebGL
CS 480/680 Computer Graphics Implementation III Dr. Frederick C Harris, Jr. Fall 2011.
OpenGL Conclusions OpenGL Programming and Reference Guides, other sources CSCI 6360/4360.
Shading Examples shaderSphere1, 2, 3 & 4 of Chapter 6.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2010 Tamara Munzner Lighting/Shading III Week.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Basic Rendering Pipeline and Shading Spring 2012.
Illumination and Shading How to shade surfaces based on the position,orientation,characteristics of the surfaces and the light sources illuminating them.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Image Synthesis Rabie A. Ramadan, PhD 7. 2 Image Rasterization.
Komputer Grafik 2 (AK045206) Shading 1/17 Realisme : Shading.
CS 325 Introduction to Computer Graphics 03 / 29 / 2010 Instructor: Michael Eckmann.
High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2013 Tamara Munzner Rasterization.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
RENDERING Introduction to Shading models – Flat and Smooth shading – Adding texture to faces – Adding shadows of objects – Building a camera in a program.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Applications and Rendering pipeline
Computer Graphics (Fall 2006) COMS 4160, Lecture 16: Illumination and Shading 1
Graphics Pipeline Bringing it all together. Implementation The goal of computer graphics is to take the data out of computer memory and put it up on the.
CS552: Computer Graphics Lecture 35: Rendering. Recap Illumination Model o Light Source and surface o Effect of multiple light source o Colored lights.
Computer Graphics I, Fall 2010 Scan conversion algorithms.
The Graphic PipeLine
University of New Mexico
Implementation III.
The Graphics Rendering Pipeline
Real-time Computer Graphics Overview
Chapter 14 Shading Models.
Introduction to Computer Graphics with WebGL
CSC461: Lecture 23 Shading Computation
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Computer Graphics Implementation III
Introduction to Meshes
CSC418 Computer Graphics Shading Color.
Unity’s Standard Shader Physically Based Shading
Texture Mapping 고려대학교 컴퓨터 그래픽스 연구실.
Chapter 14 Shading Models.
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Introduction to Meshes
Presentation transcript:

University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Scan Conversion Week 5, Fri 3 Oct 2003 recap: shading scan conversion: lines

Week 5, Wed 1 Oct 03 © Tamara Munzner2 News demos –be 10 minutes early –bring hardcopy to conserve paper: mpage p1.cpp > p1.ps –show TA timestamps

Week 5, Wed 1 Oct 03 © Tamara Munzner3 Shading Models recap flat shading –compute Phong lighting once for entire polygon Gouraud shading –compute Phong lighting at the vertices and interpolate lighting values across polygon Phong shading –compute averaged vertex normals –interpolate normals across polygon and perform Phong lighting across polygon

Week 5, Wed 1 Oct 03 © Tamara Munzner4 Shutterbug: Flat Shading

Week 5, Wed 1 Oct 03 © Tamara Munzner5 Shutterbug: Gouraud Shading

Week 5, Wed 1 Oct 03 © Tamara Munzner6 Shutterbug: Phong Shading

Week 5, Wed 1 Oct 03 © Tamara Munzner7 Shading Models Summary flat shading –compute Phong lighting once for entire polygon Gouraud shading –compute Phong lighting at the vertices and interpolate lighting values across polygon Phong shading –compute averaged vertex normals –interpolate normals across polygon and perform Phong lighting across polygon

University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 8 Scan Conversion

Week 5, Wed 1 Oct 03 © Tamara Munzner9 The Rendering Pipeline GeometryDatabaseGeometryDatabase Model/ViewTransform.Model/ViewTransform. LightingLightingPerspectiveTransform.PerspectiveTransform.ClippingClipping ScanConversionScanConversion DepthTestDepthTest TexturingTexturing BlendingBlending Frame-bufferFrame-buffer Geometry Processing Rasterization Fragment Processing

Week 5, Wed 1 Oct 03 © Tamara Munzner10 Scan Conversion objective: scan conversion –convert continuous rendering primitives to discrete fragments/pixels pixel definition –a digital image is composed of a regular grid of picture elements: pixels –every pixel describes the color of the image at one discrete point

Week 5, Wed 1 Oct 03 © Tamara Munzner11 Scan Conversion of Lines task –determine pixels closest to line –endpoints of line are given in subpixel precision

Week 5, Wed 1 Oct 03 © Tamara Munzner12 Deriving Line Scan Conversion 98/Lecture5/homepage.htmlhttp://graphics.lcs.mit.edu/classes/6.837/F 98/Lecture5/homepage.html