A simple 3d engine