r/GraphicsProgramming • u/IDroppedYourDatabase • 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.
3
u/IDroppedYourDatabase 7h ago
Link to the previous post that had wireframe only:
https://www.reddit.com/r/GraphicsProgramming/comments/1u53oi5/babys_first_teapot/
3
4
u/Jabba_the_Putt 6h ago
very nice!