Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 William H. Hsu Department of Computing.

Slides:



Advertisements
Similar presentations
CS 4731: Computer Graphics Lecture 20: Raster Graphics Part 1 Emmanuel Agu.
Advertisements

30/9/2008Lecture 21 Computer Graphics Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD3107 University of Palestine.
College of Computer and Information Science, Northeastern UniversityApril 17, CS U540 Computer Graphics Prof. Harriet Fell Spring 2009 Lecture 9.
CHAPTER 12 Height Maps, Hidden Surface Removal, Clipping and Level of Detail Algorithms © 2008 Cengage Learning EMEA.
Computing & Information Sciences Kansas State University Lecture 20 of 42 CIS 530 / 730 Artificial Intelligence Lecture 20 of 42 Introduction to Classical.
Lecture 29 of 42 Bezier Curves and Splines Wednesday, 02 April 2008
Vertices and Fragments I CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
CS5500 Computer Graphics © Chun-Fa Chang, Spring 2007 CS5500 Computer Graphics May 3, 2007.
CS 4731: Computer Graphics Lecture 18: Hidden Surface Removal Emmanuel Agu.
Computer Graphics (Fall 2005) COMS 4160, Lecture 16: Illumination and Shading 1
Computing & Information Sciences Kansas State University Lecture 11 of 42 CIS 530 / 730 Artificial Intelligence Lecture 11 of 42 William H. Hsu Department.
CS123 | INTRODUCTION TO COMPUTER GRAPHICS Andries van Dam © Scan Conversion CS123 1 of 44Scan Conversion - 10/14/2014.
Computing & Information Sciences Kansas State University Advanced CG 1 of 8: TexturingCIS 636/736: (Introduction to) Computer Graphics CIS 736 Computer.
Computer Graphics Panos Trahanias ΗΥ358 Spring 2009.
1 CS 430/536 Computer Graphics I Circle Drawing and Clipping Week 3, Lecture 6 David Breen, William Regli and Maxim Peysakhov Geometric and Intelligent.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 6 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 7 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 22 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 17 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 21 of 41 William H. Hsu Department of Computing.
Graphics Pipeline Rasterization CMSC 435/634. Drawing Terms Primitive – Basic shape, drawn directly – Compare to building from simpler shapes Rasterization.
College of Computer and Information Science, Northeastern UniversityOctober 12, CS G140 Graduate Computer Graphics Prof. Harriet Fell Spring 2006.
CS 480/680 Computer Graphics Shading in OpenGL Dr. Frederick C Harris, Jr. Fall 2013.
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.
10/15/02 (c) 2002 University of Wisconsin, CS559 Last Time Clipping.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 2D Viewing 고려대학교 컴퓨터 그래픽스 연구실.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 3 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University Wednesday, 25 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 26 of 42 Wednesday. 25 October.
Computing & Information Sciences Kansas State University Lecture 10 of 42CIS 636/736: (Introduction to) Computer Graphics CIS 636/736 Computer Graphics.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Computing & Information Sciences Kansas State University Lecture 8 of 42 CIS 530 / 730 Artificial Intelligence Lecture 8 of 42 William H. Hsu Department.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 9 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University Lecture 13 of 42 CIS 530 / 730 Artificial Intelligence Lecture 13 of 42 William H. Hsu Department.
Computing & Information Sciences Kansas State University Lecture 40 of 42 CIS 530 / 730 Artificial Intelligence Lecture 40 of 42 A Brief Survey of Computer.
Computing & Information Sciences Kansas State University Lecture 14 of 42 CIS 530 / 730 Artificial Intelligence Lecture 14 of 42 William H. Hsu Department.
Computing & Information Sciences Kansas State University Monday, 25 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 14 of 42 Monday, 25 September.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 2 of 41 William H. Hsu Department of Computing.
CS 325 Introduction to Computer Graphics 03 / 29 / 2010 Instructor: Michael Eckmann.
10/15/02 (c) 2002 University of Wisconsin, CS559 Who Am I? Prof Stephen Chenney These notes will be online after the lecture – in fact they’re online already.
10/19/04© University of Wisconsin, CS559 Fall 2004 Last Time Clipping –Why we care –Sutherland-Hodgman –Cohen-Sutherland –Intuition for Liang-Barsky Homework.
CS123 | INTRODUCTION TO COMPUTER GRAPHICS Andries van Dam © Visible Surface Determination (VSD) To render or not to render, that is the question… 1 of.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Wednesday, February 9, 2000 William H. Hsu Department.
CSC418 Computer Graphics n Polygons –Triangulation –Scan conversion –Convex/Concave – clipping) n 2D affine transformations and properties, Homogeneous.
Computing & Information Sciences Kansas State University Lecture 12 of 42CIS 636/736: (Introduction to) Computer Graphics CIS 636/736 Computer Graphics.
Computing & Information Sciences Kansas State University Lecture 31 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 32 of 42 Wednesday, 11.
Computing & Information Sciences Kansas State University Monday, 23 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 25 of 42 Monday, 23 October.
Computing & Information Sciences Kansas State University Friday, 20 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 24 of 42 Friday, 20 October.
Computing & Information Sciences Kansas State University Advanced CG 2 of 8: MappingsCIS 636/736: (Introduction to) Computer Graphics CIS 736 Computer.
Graphics Pipeline Rasterization CMSC 435/634. Drawing Terms Primitive – Basic shape, drawn directly – Compare to building from simpler shapes Rasterization.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
Lecture 15: Raster Graphics and Scan Conversion
Lecture 13: Raster Graphics and Scan Conversion
Computing & Information Sciences Kansas State University Lecture 30 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 30 of 42 Wednesday, 09.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Wednesday, March 1, 2000 William H. Hsu Department.
Computing & Information Sciences Kansas State University Monday, 09 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 19 of 42 Monday, 09 October.
Computing & Information Sciences Kansas State University Wednesday, 04 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 17 of 42 Wednesday, 04 October.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Friday, January 21, 2000 William H. Hsu Department.
CS552: Computer Graphics Lecture 17: Scan Conversion (Special Cases)
Computing & Information Sciences Kansas State University Friday, 13 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 21 of 42 Friday, 13 October.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Monday, 01 December 2003 William.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Monday, 28 November 2005 William.
Computing & Information Sciences Kansas State University Wednesday, 25 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 26 of 42 Wednesday. 25 October.
Computer Graphics I, Fall 2010 Scan conversion algorithms.
Spring 2006 G5BAGR – Advanced Computer Graphics
CS G140 Graduate Computer Graphics
CS 4731: Computer Graphics Lecture 20: Raster Graphics Part 1
Chapter 3 Graphics Output Primitives
Presentation transcript:

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 William H. Hsu Department of Computing and Information Sciences, KSU KSOL course pages: / Public mirror web site: Instructor home page: Readings: Today: Sections 2.4, 2.5 esp , 3.1.6, Eberly 2 e – see Next class: Sections 2.5, , 4.3.2, 20.2, Eberly 2 e Brown CS123: Scan Conversion ( Shapes ( Polygons/Texture Mapping ( Wayback Machine archive of Brown CS123 slides: Scan Conversion 2 of 2: Circles/Ellipses and Polygons Lecture 8 of 41

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Lecture Outline Readings  Last class: §2.3.5, 2.4, 3.1.3, Eberly 2 e  Today’s class: §2.4, 2.5 (Especially 2.5.4), 3.1.6, Eberly 2 e  Next class: §2.5, , 4.3.2, 20.2, Eberly 2 e Excerpts from Van Dam notes, Brown CS123  Scan converting circles/ellipses (starting from 19 in fall, 2010 notes)  Polygons (Shapes 2-4)  Triangle meshes (Shapes 13-14)  Scan line interpolation (Polygons 7; Shading 14, 2005 – 2009 notes) Last Time: Intro to Clipping and Culling  Clipping: Cohen-Sutherland, Cyrus-Beck / Liang-Barsky  Visibility Culling: view frustum, back face, occlusion Today: Scan Conversion, Concluded  Circles and ellipses  Polygons

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Where We Are

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Drawing Circles, Versions1 & 2

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Drawing Circles, Version 3

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Using The Symmetry

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Incremental Algorithm [1]: Sketch

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Incremental Algorithm [2]: Computations needed

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Decision Variable

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Right Decision Variable?

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Alternate Phrasing [1]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Alternate Phrasing [2]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Alternate Phrasing [3]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Incremental Algorithm Revisited [1]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Incremental Algorithm Revisited [2]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Second Differences [1]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Second Differences [2]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Midpoint Eighth Circle Algorithm

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Analysis

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Other Scan Conversion Problems

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Aligned Ellipses

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Direction-Changing Criterion [1]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Direction-Changing Criterion [2]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Problems with Aligned Ellipses

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Patterned Lines

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Geometric vs. Cosmetic

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Non-Integer Primitives & General Conics

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. 2-D Object Definition [1] Brown University CS123 Shapes Slide 2 (fall, 2010)

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. 2-D Object Definition [2] Brown University CS123 Shapes Slides 3-4 (fall, 2010)

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Triangle Meshes Brown University CS123 Shapes Slide 13 (fall, 2010)

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Triangular Mesh Representation Brown University CS123 Shapes Slide 14 (fall, 2010)

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. General Polygons [1]: Scan Line Interpolation 1. Interpolate Value Along Polygon Edges to Get I a, I b 2. Interpolate Value Along Scan Lines to Get I p

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. General Polygons [2]: Texture Mapping Preview Brown University CS123 (Polygons &) Texture Mapping Slide 7 (fall, 2010)

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. General Polygons [3]: Continuity and Scan Line Interpolation Brown University CS123 Scan Conversion Slide 43 (fall, 2010)

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Summary Last Time: Clipping and Culling  What parts of scene to clip: edges vs. polygons of model  What parts of viewport to clip against: clip faces vs. clip edges  Cohen-Sutherland clipping: outcodes, simultaneous equations  Liang-Barsky / Cyrus-Beck clipping: parametric equations  Visibility culling: view frustum, back face, occlusion Today: Scan Conversion, Concluded  Circles and ellipses  Polygons: scan line interpolation (for flat/constant shading)  Later: Gouraud & Phong shading, z-buffering, texture mapping Excerpts from Van Dam notes, Brown CS123  Scan converting circles/ellipses  Polygons  Triangle meshes  Scan line interpolation

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 Terminology Scan Conversion (aka Rasterization)  Given: geometric object (e.g., circle, ellipse, projected polygon)  Decide: what pixels to light (turn on; later, color/shade)  Basis: what part of pixels crossed by object Issues (Reasons why Scan Conversion is Nontrivial Problem)  Aliasing (e.g., jaggies) – discontinuities in lines  Cracks: discontinuities in “polygon” mesh Drawing Circles & Ellipses  Incremental algorithm – uses rounding, floating point arithmetic  Forward differences – precalculated amounts to add to running total  Decision variable – value whose sign indicates which pixel is next Drawing Polygons  Texture mapping – finding pixels of image (texture) to put in polygon  Scan line interpolation – procedure for filling in closed curves