A basic polygonal 3D engine