Z-Buffer Algorithm
Eric Leive, Xiang Lan Zhuo

2 Triangles

    

vertices:
[25, 75, 10]
[25, 25, 15]
[75, 50 30]

vertices:
[25, 75, 10]
[25, 25, 15]
[75, 50 30]
with some shading to give a perspective view of distance

vertices:
[25, 75, 10]
[25, 25, 15]
[75, 50 30]
circle at z = 50

Extension

Z-buffer for Bresenham's Line Algorithm

line 1: start = [90, 50, 12]; end = [10, 10, 5]
line 2: start = [20, 75, 15]; end = [75, 20, 2]