Live data from Hacker News

Rotate the world

jasondavies.com

41–50 of 74 posts

Re: Rotate the world

#41

This is just my personal preference, but I believe the naive implementation is miles ahead of the improved ones. The improved version needs at least two movements to go to the other side of the world, doesn't follow the rotation if the cursor is too fast and worse than all, performs a gamma rotation for each non-equatorial point of the sphere. Since we have two degrees of freedom on the screen, I expect to use them t…

Another nice attribute the naive implementation has is path independence. If I grab part of the globe and release it somewhere else I expect those two coordinates to determine the transform. With the non-naive implementation I can get completely different results depending on how I wiggle my mouse on the way. It's true that this gives me more flexibility, but I don't know... it just doesn't feel right to me. Google Earth does it that way too, and it has always bothered me. If I move more than a few degrees on the map I find myself either wildly gyrating my mouse to try to get back into a recognizable north-up orientation or simply clicking the compass rose to have it set things right automatically.

Re: Rotate the world

#42

This is just my personal preference, but I believe the naive implementation is miles ahead of the improved ones. The improved version needs at least two movements to go to the other side of the world, doesn't follow the rotation if the cursor is too fast and worse than all, performs a gamma rotation for each non-equatorial point of the sphere. Since we have two degrees of freedom on the screen, I expect to use them t…

[deleted]

Re: Rotate the world

#45
post #33

Earlier quoted context omitted.

Up until a couple of weeks ago I was a loyal Chrome advocate. However after the Mozilla team's recent AMA on reddit I decided to switch and since then I really haven't found Firefox inferior at all (aside from a couple of examples like this). So for anyone else looking to make the switch, go for it! The only thing I'm missing about Chrome are the excellent dev tools.

I've been quite satisfied, most of the things, it's just a matter of adaptation to a new way of doing stuff. My only big issue is that I'm having some performance issues, and that is something I can't live with.

If you are using Windows you might want to give Pale Moon a try, on my system it is much smoother than the official Firefox/Aurora/Nightly.

Pale Moon feels as smooth as the official Firefox does under OS X, for whatever reason the official Firefox for Windows feels terrible on my system (clean profile of course).

Re: Rotate the world

#46

Firefox you're breaking my heart. This performs terribly in FF, fine in Chrome.

It could be that his logic optimizes for chrome. I'm sure with a bit more time, he could make it work smoothly in FF... Or fuck it, just write it in ASM, which would be insanely faster.

The issue isn't any sort of optimization for chrome, FF just chokes when it tries to render SVGs quickly. See also: http://roadtolarissa.com/twisters/

Re: Rotate the world

#47

Are the scale of continents right? Because Australia looks almost bigger than Europe, and Africa looks many times bigger than Europe.

Africa is much larger than you expect if you grew up looking at Mercator projections: http://brucemctague.com/tag/illusion-of-mercator-projections

Re: Rotate the world

#50
Another way of doing this (without versors):

Let u and v be the unit vectors of the initial and final click location. We want an R s.t. Ru = v. Create an orthonormal basis ON(u) and ON(v) (you can use the QR decomposition for the vector concatenated with I).

R = ON(v) ON(u)^-1 = ON(v) ON(u)^T

Post reply on HN