[vtkusers] ActiViz | Camera Set Position

David Gobbi david.gobbi at gmail.com
Mon Mar 31 21:54:23 EDT 2014


Hi Matias,

I recommend the "Viewing" chapter of the OpenGL programming guide:

http://www.glprogramming.com/red/chapter03.html

It's not specifically about VTK (its for OpenGL, obviously) but it
does a very good job of describing how a camera works in computer
graphics.

  - David



On Mon, Mar 31, 2014 at 7:24 PM, Matias Montroull <matimontg at gmail.com> wrote:
> Hi,
>
> I have a stack of images from where I create a 3D view, all good, now, my
> head is shown upside down and in an angle that I don't like so I've been
> playing around with the camera to set it to the right position which would
> be looking the face like if someone would be looking himself at a mirror.
>
> I've used this:
>
> camara.SetPosition(0, 0, 1);
>
> along with this:
> camara.OrthogonalizeViewUp();
>
> And still can't get the desired result.
>
> See the attached examples. Head.jpg is what I see, then "how should be.jpg"
> is how I need it to be..


More information about the vtkusers mailing list