[vtk-developers] vtkOpenGLCamera uses wrong aspect

Moreland, Kenneth kmorel at sandia.gov
Wed Sep 4 19:22:45 EDT 2002


I sent this email about 2 months ago, but nobody respondent.  So here it is
again:

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 [problem remains, September 3]).  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