Triangle Rasterization, Flat Filling Triangles, Pseudo code for a triangle filling algorithm, Gouraud Shading Triangles, Pseudocode, Textured Triangles, Single scanline terms are which we learned in this lecture.
Download Triangle Rasterization - Computer Graphics - Lecture Slides and more Slides Computer Graphics in PDF only on Docsity!
Computer
Graphics
Lecture 22
Triangle
Rasterization
Flat Filling Triangles
For each scan line (horizontal line on the screen), find the points of intersection with the edges of the triangle. Then, draw a horizontal line between intersections and do this for all scan lines.
But how can we find
these points quickly?
Using linear
interpolation!
We have 3 vertices and we want to find coordinates of all points belonging to segments determined by these vertices
Our task is to find points: (xc,ya+1), (xd,ya+2), ... ,(xm,yb-1), (xn,yb)