<div dir="ltr">Hi Max,<div><br></div><div><br></div><div>This seems a good way with changing step by step. </div><div>I changed the camera and focal point position. It worked well for me.</div><div><br></div><div><br></div>
<div>Sun Tao</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/2 Max <span dir="ltr">&lt;<a href="mailto:smapersmaper@gmail.com" target="_blank">smapersmaper@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Sun Tao,<br>
Elevation is a tricky one, since after you rotate by more than 90 degrees,<br>
it gets a problem with view up vector and changes the axes, and you get<br>
something not intended.<br>
I solved it by:<br>
private void ElevateCamera(double angle)<br>
        {<br>
            //5 is chosen since 360 / 5 &lt; 90 and there is a problem with<br>
angles bigger than 90<br>
            double elevationPartialShift = angle / 5;<br>
            for (int i = 0; i &lt; 5; ++i)<br>
            {<br>
<br>
WindowRenderer.GetActiveCamera().Elevation(elevationPartialShift);<br>
                WindowRenderer.GetActiveCamera().OrthogonalizeViewUp();<br>
            }<br>
        }<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Rotate-the-camera-tp5724608p5724773.html" target="_blank">http://vtk.1045678.n5.nabble.com/Rotate-the-camera-tp5724608p5724773.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>