[vtkusers] Problems changing camera location with ParallelProjectionOn()

Kevin H. Hobbs hobbsk at ohiou.edu
Mon Jul 14 15:11:01 EDT 2008


On Monday 14 July 2008 01:56:49 pm dream_noir wrote:
> I have another issue involving vtkCamera and an orthographic view. I'm
> turning it on using ParallelProjectionOn() which helps to simplify the view
> I get. It works great but it creates another issue. I'm issuing a
> SetViewUp, SetFocalPoint and SetPosition to the camera to get it in the
> right location. This works perfectly when ParallelProjection is off, but
> not when it is on. The view up vector and focal point are correct it seems,
> but the position is off. The position instead lies somewhere on the line
> between the focal point and correct position, except much closer to the
> focal point itself than the position is, so if I zoom out it is in the
> correct place with no other adjustments. Looking at the code for vtkCamera
> nothing seems to be done differently in SetPosition if ParallelProjection
> is on, so I'm a bit puzzled by this behaviour.
>

I think this is just what parallel projection does.  There's no vanishing 
point so objects that are far away are just as big as close objects.  

Maybe you should look at vtkCamera::SetParallelScale.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080714/d27ce30b/attachment.pgp>


More information about the vtkusers mailing list