Hey Robbie,<br><br>In general we try to keep cc'ing the conversation to the list. This both allows for other users to find an answer in the archives and gives you access to more brains.<br><br>You are probably doing something like;<br>
<br>camera->Elevation(90);<br><br>After which Elevation no longer works because it rotates around the cross product of the ViewUp and DirectionOfProjection vectors and you just made them colinear. if instead you do:<br>
<br>camera->Elevation(45);<br>camera->OrtogonalizeViewUp()<br>camera->Elevation(45);<br>camera->OrtogonalizeViewUp()<br>
<br>Everything should continue to work.<br><br><div class="gmail_quote">On Thu, Apr 15, 2010 at 1:18 PM, Robbie Banks <span dir="ltr"><<a href="mailto:robbie.banks@gmail.com">robbie.banks@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Hi Wes,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I think I understand what you mean, but could you provide a
simple example?</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">R</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> Wes Turner
[mailto:<a href="mailto:wes.turner@kitware.com" target="_blank">wes.turner@kitware.com</a>] <br>
<b>Sent:</b> Thursday, April 15, 2010 6:27 AM<br>
<b>To:</b> Robbie Banks<br>
<b>Cc:</b> David Doria; <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<b>Subject:</b> Re: [vtkusers] Gimbal Lock?</span></p>
</div><div><div></div><div class="h5">
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="margin-bottom: 12pt;">What you are most likely
running into is that the view up vector and the view direction vector are
becoming the same. To reach 90 degrees, do it in two stages and
regenerate the view up vector after each stage.<br>
<br>
- Wes</p>
<div>
<p class="MsoNormal">On Wed, Apr 14, 2010 at 7:56 PM, Robbie Banks <<a href="mailto:robbie.banks@gmail.com" target="_blank">robbie.banks@gmail.com</a>> wrote:</p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I’m just wondering if there is a gimbal
lock issue with the vtkCamera on Elevation(double)??</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I have a 3D object which I am rotating
using Elevation(), Azimuth() and Roll() to incrementally rotate using
directional push buttons. This works fine for the Azimuth and Roll, but seems
to lock on the Elevation when it hits 90 degrees.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Is this a known problem?</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Robbie</span><span style="color: rgb(136, 136, 136);"></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><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></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <br>
Wesley D. Turner, Ph.D.<br>
Kitware, Inc.<br>
Technical Leader<br>
28 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: 518-881-4920</p>
</div></div></div>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Wesley D. Turner, Ph.D.<br>Kitware, Inc.<br>Technical Leader<br>28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4920<br>