Download presentation
Presentation is loading. Please wait.
Published byScot Quinn Modified over 9 years ago
1
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Scan Conversion Week 5, Fri 3 Oct 2003 recap: shading scan conversion: lines
2
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
3
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
4
Week 5, Wed 1 Oct 03 © Tamara Munzner4 Shutterbug: Flat Shading
5
Week 5, Wed 1 Oct 03 © Tamara Munzner5 Shutterbug: Gouraud Shading
6
Week 5, Wed 1 Oct 03 © Tamara Munzner6 Shutterbug: Phong Shading
7
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
8
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 8 Scan Conversion
9
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
10
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
11
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
12
Week 5, Wed 1 Oct 03 © Tamara Munzner12 Deriving Line Scan Conversion http://graphics.lcs.mit.edu/classes/6.837/F 98/Lecture5/homepage.htmlhttp://graphics.lcs.mit.edu/classes/6.837/F 98/Lecture5/homepage.html
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.