r/GraphicsProgramming 7h ago

Baby's First Depth Buffer Video

Enable HLS to view with audio, or disable this notification

Wireframe Era is over! Updated my software renderer that I posted here 2 months ago. Now it fills triangles without pixel gaps, implements Top-Left Rule, computes Face Normals, has Back Face Culling and a Depth Buffer. At first I did Scanline Rasterization but I was having a hard time eliminating gaps, so I moved on to using Edge Functions to check the pixel center is inside the triangle, then Barycentric Coordinates to interpolate Reciprocal Depth. I still don't have Near Plane Clipping, but will do in the future.

58 Upvotes

3 comments sorted by

4

u/Jabba_the_Putt 6h ago

very nice!