I've built simple 3D engines a few times, in a couple of languages. These tutorials cover the basics.
Build a 3D graphics engine from scratch using Javascript.
Building a simple 3D engine with Pygame.
Experimenting with making SVGs of 3D objects that you can rotate.