Bug 234861 - Odd behavior when scrolling around the poles
Summary: Odd behavior when scrolling around the poles
Status: RESOLVED FIXED
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: 0.8 (KDE 4.3)
Assignee: marble-bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-20 07:12 UTC by Stephan Burkhardt
Modified: 2013-10-20 08:02 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Burkhardt 2010-04-20 07:12:21 UTC
Version:           0.9.2 (using 4.4.2 (KDE 4.4.2), Kubuntu packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.31-20-generic

When using the mouse to "drag" the globe around in marble, the behavior is a bit odd when reaching the poles: There is a jump in the rotation of the globe. Altogether it is not a big deal, but it also looks rather easy to fix.

Steps to reproduce:
* Use any map view in the program marble and rotate the globe with your mouse (by dragging it around)
* No do this in a manner that lets the viewpoint cross either the north or the south pole.
* Depending on the exact position of your mousepointer there is a jump in the rotation of the globe (it seems to be less if the mouspointer is close to the middle of the view)
Comment 1 Dennis Nienhüser 2010-04-20 09:43:36 UTC
The problem can be seen as well when turning animations on. The interpolated positions when travelling across a pole are off, too.
Comment 2 egk865 2010-06-10 04:43:32 UTC
I noticed a related problem at the poles with the coordinate grid. When you zoom in a lot, the drawing of the coordinate grid gets all messed up. The lines sometimes veer off in the wrong direction and too many get bunched up together. I attached some screen shots showing the problem.

Note I was using the "Plain" map but that in order to zoom in a lot, I had to modify the file data/maps/earth/plain/plain.dgml and change the line with 

<maximum>  2100  </maximum>

to

<maximum>  4000  </maximum>

If you don't make this change, you won't notice this problem since by default you can't zoom in that much. (We had to make this change since the users of the application we are developing wanted to zoom in a lot)
Comment 3 Bastian Senst 2010-07-11 11:47:51 UTC
SVN commit 1148618 by bholst:

Fixed jump in the rotation of the marble globe when dragging over a pole.

CCBUG: 234861

 M  +19 -18    MarbleWidgetInputHandler.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1148618
Comment 4 Bastian Senst 2010-07-11 11:48:02 UTC
SVN commit 1148621 by bholst:

Fixed Marble's wrong spinning direction.
The polarity is not an indicator for the visible pole.

CCBUG: 234861

 M  +3 -1      MarbleWidgetInputHandler.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1148621
Comment 5 Bastian Senst 2010-07-11 12:10:42 UTC
SVN commit 1148628 by bholst:

Fixed jump in the rotation of the marble globe when dragging over a pole.

CCBUG: 234861

backport of r1148618

 M  +19 -18    MarbleWidgetInputHandler.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1148628
Comment 6 Bastian Senst 2010-07-11 12:10:45 UTC
SVN commit 1148629 by bholst:

Fixed Marble's wrong spinning direction.
The polarity is not an indicator for the visible pole.

CCBUG: 234861

backport of r1148621

 M  +3 -1      MarbleWidgetInputHandler.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1148629