Type to enter a caption. Computer Graphics Week 6 Lecture 1.

Slides:



Advertisements
Similar presentations
Spreadsheet Vocabulary Split the screen so you can see the words AND the crossword puzzle AND the quiz at the same time.
Advertisements

Polygon Scan Conversion – 11b
SI23 Introduction to Computer Graphics
Computer Graphics Inf4/MSc 1 Computer Graphics Lecture 7 Scanline algorithm and polygon clipping Taku Komura.
Computer Graphics- SCC 342
CS 450: COMPUTER GRAPHICS FILLING POLYGONS SPRING 2015 DR. MICHAEL J. REALE.
Polygon Rasterization
College of Computer and Information Science, Northeastern UniversityApril 17, CS U540 Computer Graphics Prof. Harriet Fell Spring 2009 Lecture 9.
Computer Graphics, KKU. Lecture 81 Clipping on a Raster Display.
Clipping Lines Lecture 7 Wed, Sep 10, The Graphics Pipeline From time to time we will discuss the graphics pipeline. The graphics pipeline is the.
Different types of Polygons Simple Convex Simple Concave Non-simple : self-intersecting With holes ConvexConcaveSelf-intersecting.
CPCS 391 Computer Graphics 1 Lecture 5: Polygon Filling
11-1 Space Figures and Cross Sections
Graphics Programming: Polygon Filling
Rasterization May 14, Triangles Only We will discuss the rasterization of triangles only. Why? –Polygon can be decomposed into triangles. –A triangle.
1 CSCE 441: Computer Graphics Hidden Surface Removal (Cont.) Jinxiang Chai.
Vertices and Fragments III Mohan Sridharan Based on slides created by Edward Angel 1 CS4395: Computer Graphics.
1 CSCE 441: Computer Graphics Scan Conversion of Polygons Jinxiang Chai.
CGMB 314 Intro to Computer Graphics Fill Area Primitives.
Polygon Scan Conversion and Z-Buffering
Karate Kid 2 Screen B CADE TICKET A1A2B1 C3D4E2.
Informationsteknologi Monday, November 26, 2007Computer Graphics - Class 121 Today’s class Drawing lines Bresenham’s algorithm Compositing Polygon filling.
College of Computer and Information Science, Northeastern UniversityOctober 12, CS G140 Graduate Computer Graphics Prof. Harriet Fell Spring 2006.
College of Computer and Information Science, Northeastern UniversityMay 27, CS 4300 Computer Graphics Prof. Harriet Fell Fall 2012 Lecture 9 – September.
Scan Conversion. Last step in the graphics pipeline Efficiency is a central issue Common primitives – Lines (done last class) – Polygons (fill polygons,
College of Computer and Information Science, Northeastern UniversityOctober 31, CS G140 Graduate Computer Graphics Prof. Harriet Fell Spring 2009.
CS 325 Introduction to Computer Graphics 03 / 22 / 2010 Instructor: Michael Eckmann.
Computer Graphics Filling. Filling Polygons So we can figure out how to draw lines and circles How do we go about drawing polygons? We use an incremental.
Lecture 15: Raster Graphics and Scan Conversion
1 CSCE 441: Computer Graphics Scan Conversion of Polygons Jinxiang Chai.
1 Computer Graphics Week11 : Hidden Surface Removal.
Computer Graphics CC416 Week 14 Filling Algorithms.
Visible-Surface Detection Methods. To identify those parts of a scene that are visible from a chosen viewing position. Surfaces which are obscured by.
Computer Graphics Lecture 08 Taqdees A. Siddiqi Computer Graphics Filled Area Primitives I Lecture 08 Taqdees A. Siddiqi
Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition Chapter 14.
CS552: Computer Graphics Lecture 16: Polygon Filling.
Computer Graphics Lecture 14 CLIPPING I Taqdees A. Siddiqi
Computer Graphics Filling.
Introduction to Polygons
Computer Graphics CC416 Week 13 Clipping.
CS G140 Graduate Computer Graphics
Computer Graphics Shading in OpenGL
Basic Raster Graphics Algorithms for Drawing 2D Primitives
Computer Graphics Filled Area Primitives II Lecture 09 Taqdees A
CSCE 441 Computer Graphics: Clipping Polygons Jinxiang Chai
Visible-Surface Detection Methods
Polygon Filling Algorithms
Implementation I Ed Angel
Solve Linear and Quadratic Systems Algebraically
Prof. Harriet Fell Spring 2007 Lecture 9 – January 29, 2007
WINDOWING AND CLIPPING
Agenda Polygon Terminology Types of polygons Inside Test
CSCE 441 Computer Graphics: Clipping Polygons Jinxiang Chai
Prepared by Narendra V G CSE MIT
Agenda Polygon Terminology Types of polygons Inside Test
WINDOWING AND CLIPPING
Prof. Harriet Fell Fall 2011 Lecture 9 – September 26, 2011
CSCE 441 Computer Graphics: Clipping Polygons Jinxiang Chai
CSCE 441: Computer Graphics Hidden Surface Removal (Cont.)
(c) 2002 University of Wisconsin, CS559
Rasterizing Polygons 2 Lecture 35 Mon, Nov 26, 2007.
Rasterizing Polygons Lecture 29 Wed, Dec 7, 2005.
Basic Raster Graphics Algorithms for Drawing 2D Primitives
Type to enter a caption. Computer Graphics Week 2 Lecture 1.
Where We Stand At this point we know how to: Next thing:
Type to enter a caption. Computer Graphics Week 4 Lecture 2.
Type to enter a caption. Computer Graphics Week 5 Lecture 1.
Implementation I Ed Angel Professor Emeritus of Computer Science
Type to enter a caption. Computer Graphics Week 3 Lecture 1.
Type to enter a caption. Computer Graphics Week 10 Lecture 2.
Presentation transcript:

Type to enter a caption. Computer Graphics Week 6 Lecture 1

Polygon Filling

Scan Lines We scan the drawn polygon along the horizontal lines (of screen) Hence these horizontal lines are called Scan Lines

Basic Method For each scan line crossing the polygon find the intersection points with the polygon edges Sort the intersection points from right to left Fill the space between each pair of points

Coherence Coherence means that the properties of one part of the scene are related to another We will use coherence to calculate intersection points on successive scan lines xi+1 = xi +(1/m) → proof ??

Method → Bucket Sort Note down all the scan lines that the polygon crosses. For each edge , beginning at their starting scan line, note down: ymax,x (starting from xmin) and 1/m Starting from the lowest scan line do: Eliminate edges for which scan line = edge’s ymax Sort edges in order of increasing x values fill b/w the pairs of intersection points (i.e the x values of edges on the scan lines) Update x by adding 1/m to it for the next scan line

Example traingle A(2,4) , B(4,6) and C(4,1) quad A(2,4) B(2,7) C(4,9) D(4,6)

The End

Text

Text

Text

Text –Johnny Appleseed