[vtkusers] Rotate the camera
smapersmaper at gmail.com
Mon Dec 2 09:27:37 EST 2013
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: http://vtk.1045678.n5.nabble.com/Rotate-the-camera-tp5724608p5724773.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers