[vtkusers] Rotate the camera
colddiesun at gmail.com
Tue Dec 3 04:24:44 EST 2013
This seems a good way with changing step by step.
I changed the camera and focal point position. It worked well for me.
2013/12/2 Max <smapersmaper at gmail.com>
> Hi Sun Tao,
> Elevation is a tricky one, since after you rotate by more than 90 degrees,
> it gets a problem with view up vector and changes the axes, and you get
> something not intended.
> I solved it by:
> private void ElevateCamera(double angle)
> //5 is chosen since 360 / 5 < 90 and there is a problem with
> angles bigger than 90
> double elevationPartialShift = angle / 5;
> for (int i = 0; i < 5; ++i)
> View this message in context:
> Sent from the VTK - Users mailing list archive at Nabble.com.
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> Please keep messages on-topic and check the VTK FAQ at:
> Follow this link to subscribe/unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers