[vtkusers] Please fix this vtkOpenGLCamera bug.

Moreland, Kenneth kmorel at sandia.gov
Wed Oct 16 14:28:53 EDT 2002


According to the CVS log, on January 24, 2002 Ken Martin changed a line
vtkOpenGLCamera from

 
matrix->DeepCopy(this->GetPerspectiveTransformMatrix(1.0*aspect[0]/aspect[1]
,
                                                         -1,1));

to

    matrix->DeepCopy(this->GetPerspectiveTransformMatrix(1.0*usize/vsize,
                                                         -1,1));

This effectively throws away the aspect computed by the renderer and
replaces it with a brash approximation with pixel sizes.  I am currently
trying to use a custom renderer that has an aspect ratio that is often very
different from the image dimension ratios.  The renderer returns an
appropriate aspect in its GetAspect method, but the camera is ignoring it.

Could someone PLEASE change the vtkOpenGLCamera::Render method back so that
it no longer trashes the correct aspect ratio.

-Ken

   ****      Kenneth Moreland
    ***      Sandia National Laboratories
***********  
*** *** ***  email: kmorel at sandia.gov
**  ***  **  phone: (505) 844-8919
    ***      fax:   (505) 844-9297
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 2333 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20021016/8b016d1d/attachment.bin>


More information about the vtkusers mailing list