set the camera according to the upright direction