<div dir="ltr"><div><br></div><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 17, 2016 at 2:35 PM, Daniel Neos <span dir="ltr"><<a href="mailto:daniel.rd@hotmail.de" target="_blank">daniel.rd@hotmail.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Unfortunalety there is no feature "throw" feature. My class inherits from osgGA::GUIEventHandler and there is no setAllowThrow implemented, as far as I know.<br>
<br></blockquote><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
And if I am zooming in, sometimes the effect gets worse and the camera is hardly to control. Maybe there is an error in my rotation setup?<br></blockquote><div class="h5"><br><br>That sounds like a classic case of gimbal lock to me. You are rotating using 2 Euler angles rotations, so it is easy to align the axes in exactly "the wrong way" and trigger the singularity when approaching +- 90 degrees.<br><br></div><div class="h5">You may want to look at this code:<br><a href="https://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Tutorial_Arcball">https://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Tutorial_Arcball</a><br><br></div><div class="h5">J.<br></div><div class="h5"><br><br><br></div></div></div></div>