Aspect zooming doesn't work
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Using vtkViewport::SetPixelAspect doens't work anymore. It used to work with version 4.0.
I think the problem is in vtkOpenGLCamera::Render. In version 1.48 of vtkOpenGLCamere.cxx, L116, reads: matrix->DeepCopy(this->GetPerspectiveTransformMatrix(aspect[0]/aspect[1],
This line is changed in version 1.49 () to read: matrix->DeepCopy(this->GetPerspectiveTransformMatrix(1.0*usize/vsize,
In the latest version (1.61 L165/166) the line reads: matrix->DeepCopy(this->GetPerspectiveTransformMatrix(aspectModification*usize/vsize, -1,1));
When I change the first parameter of GetPerspectiveTransformMatrix to: aspectModification*aspect[0]/aspect[1]
the aspect zooming seems to work again.
Although I don't understand why it was changed to use usize/vsize, it seems odd to me that the aspect is not taking into account when the renderer and viewport report the same aspect ratio (which is the case in my case)