A simple 3D engine