[vtkusers] Image Shifts between Parallel Projection mode and Perspective mode

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Tue Sep 12 16:50:29 EDT 2017


Doug,

We've seen this in ParaView too. The reason is that zoom is
implemented totally differently when in perspective or parallel
projection mode [1]. Thus the effect of zooming in one mode doesn't
follow through to the other mode.

Utkarsh


[1] https://gitlab.kitware.com/vtk/vtk/blob/master/Rendering/Core/vtkCamera.cxx#L878

On Tue, Sep 12, 2017 at 3:56 PM, Doug Hoppes <dhoppes at mbfbioscience.com> wrote:
> Hi all,
>
>
>
>                 Got a question.  I’m using the function,
> SetParallelProjection(true/false) to set the display between projection mode
> and perspective mode.  I’m noticing that there is a shift in the image.  I
> was hoping that the image would stay the same.  I thought that it was in our
> code but was able to reproduce this effect with a vtk example code.
>
>
>
>                 Any idea what’s going on?  The closer that I’m zoomed in on
> my objects, the more the shift happens.
>
>
>
> Doug
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>


More information about the vtkusers mailing list