Fix T94752: Cycles renders stereoscopic panoramas incorrectly

The bug is caused by rBb66b3f547c43e841a7d5da0ecb2c911628339f56.
From what I can see, that fix was intended to enable manual lens shift for
panorama cameras, but it appears that it also unintentionally applies
interocular shift.

This fix disables the multiview shift for panorama cameras, that way manual lens
shift still works but we get the 2.x behavior for stereoscopic renders back.

Differential Revision: https://developer.blender.org/D16950
This commit is contained in:
Lukas Stockner 2023-01-07 21:55:37 +01:00
parent 95696d09bc
commit d8e01150d6
Notes: blender-bot 2023-06-02 14:47:25 +02:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3
Referenced by issue #94752, Issue rendering Stereo 360 Top/Bottom on Blender 3.0.0
Referenced by issue #108536, Stereoscopic render - Convergence Plane doesn't show in the cameraview while in viewport
1 changed files with 3 additions and 0 deletions

View File

@ -1119,6 +1119,9 @@ float BKE_camera_multiview_shift_x(const RenderData *rd,
if (rd->views_format == SCE_VIEWS_FORMAT_MULTIVIEW) {
return data->shiftx;
}
if (data->type == CAM_PANO) {
return data->shiftx;
}
/* SCE_VIEWS_SETUP_BASIC */
return camera_stereo3d_shift_x(camera, viewname);
}