Explaining Triangle Rasterization in 30 Minutes

Channel:
Subscribers:
2,640
Published on ● Video Link: https://www.youtube.com/watch?v=JuTSsqQGfpg



Duration: 32:12
320 views
6


Rasterization is the process of putting pixels on the screen. We've talked about line rasterization before (you iterate along the x axis if the line is more horizontal or the y axis if it is more vertical and can do antialiasing pretty easily too.


Today we went over how to raster a triangle. Doing wireframe (just the edges) is easy - just use line rasterization, right? But filling a triangle seems a bit tricky at first, so I go over how to do that here.


I then talk about barycentric coordinates and how you can use that to colorize a triangle smoothly if its vertices have different colors.


I also went over the frame buffer / fragment buffer and the depth buffer / z buffer for how to handle two triangles drawing to the same spots at different depths (the nearer one gets drawn, the pixel further away gets discarded).







Tags:
is50b
triangle rasterization
line rasterization
fill rate
occlusion
z-buffering
z-fighting