Just came across this really cool video from Tsoding, where he explains how computers produce 3D graphics.
TLDR, the main takeaway is as simple as this formula:
(x, y, z)
x' = x/z
y' = y/z
But he also dives into concepts like the rotation matrix, drawing vertices and edges,...