Software 3d rendering engine