[vtk-developers] vtkOpenGLCamera ignoring vtkRenderer aspect.
Moreland, Kenneth
kmorel at sandia.gov
Tue Jul 2 12:48:53 EDT 2002
The vtkOpenGLCamera class is ignoring the aspect set in the vtkRenderer
given to it while setting the projection matrix in VTK 4.1 (or at least the
version I downloaded on June 27). Starting at line 145 in
vtkOpenGLCamera.cxx, ComputeAspect and GetAspect are called on the renderer,
but then the aspect that is retrieved is ignored. Instead, the perspective
seems to be decided by the viewport.
Is this a case of fixing something that wasn't broken? In VTK 4.0, the
vtkOpenGLCamera class properly uses the aspect computed by the renderer, and
the ComputeAspect method does take the viewport into account.
-Ken
**** Kenneth Moreland
*** Sandia National Laboratories
***********
*** *** *** email: kmorel at sandia.gov
** *** ** phone: (505) 844-8919
*** fax: (505) 844-9297
More information about the vtk-developers
mailing list