Fix T46006: Issue with Equirectangular image rendering in Standalone Cycles

Issue was caused by wrong viewplane used for standalone camera.
This commit is contained in:
Sergey Sharybin
2015-09-08 13:07:08 +05:00
parent 310764603a
commit cb7c61ad54

View File

@@ -92,8 +92,14 @@ Camera::~Camera()
void Camera::compute_auto_viewplane() void Camera::compute_auto_viewplane()
{ {
if(type == CAMERA_PANORAMA) {
viewplane.left = 0.0f;
viewplane.right = 1.0f;
viewplane.bottom = 0.0f;
viewplane.top = 1.0f;
}
else {
float aspect = (float)width/(float)height; float aspect = (float)width/(float)height;
if(width >= height) { if(width >= height) {
viewplane.left = -aspect; viewplane.left = -aspect;
viewplane.right = aspect; viewplane.right = aspect;
@@ -106,6 +112,7 @@ void Camera::compute_auto_viewplane()
viewplane.bottom = -1.0f/aspect; viewplane.bottom = -1.0f/aspect;
viewplane.top = 1.0f/aspect; viewplane.top = 1.0f/aspect;
} }
}
} }
void Camera::update() void Camera::update()