MantisBT - VTK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0000626 | VTK | (No Category) | public | 2004-02-25 09:06 | 2016-08-12 09:54 |
| Reporter | vdhel | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Project | |||||
| Type | |||||
| Summary | 0000626: Aspect zooming doesn't work | ||||
| Description | 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) | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://www.vtk.org/Bug/file/5106/aniso.py | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2008-02-06 10:20 | Jeff Baumes | Assigned To | => François Bertel | ||
| 2010-09-07 13:47 | François Bertel | Assigned To | François Bertel => | ||
| 2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) | ||
| 2016-08-12 09:54 | Kitware Robot | Note Added: 0036718 | |||
| 2016-08-12 09:54 | Kitware Robot | Status | expired => closed | ||
| 2016-08-12 09:54 | Kitware Robot | Resolution | open => moved | ||
| 2016-08-12 09:54 | Kitware Robot | Assigned To | => Kitware Robot | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||