Perspective transformation and 3d movement