TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Rotate the world

316 点作者 pjan超过 11 年前

21 条评论

BitMastro超过 11 年前
This is just my personal preference, but I believe the naive implementation is miles ahead of the improved ones.<p>The improved version needs at least two movements to go to the other side of the world, doesn&#x27;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.<p>Since we have two degrees of freedom on the screen, I expect to use them to drive the two most used rotations, and maybe have another control for the roll. In addition, we are used to have maps with North pointing up (and sometimes pointing South), so the roll is almost never used.
评论 #6696494 未加载
评论 #6696281 未加载
评论 #6695961 未加载
评论 #6695855 未加载
评论 #6702231 未加载
评论 #6695880 未加载
评论 #6696520 未加载
Trufa超过 11 年前
Slightly off topic, but I was so surprised how steep the Axial tilt is (<a href="http://en.wikipedia.org/wiki/Axial_tilt" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Axial_tilt</a>) I had always known that it was 23º but never actually visualized it.<p>Try putting γ=23º in the Euler angles and rotate the earth with λ.
djrobstep超过 11 年前
Firefox you&#x27;re breaking my heart. This performs terribly in FF, fine in Chrome.
评论 #6696108 未加载
评论 #6696028 未加载
评论 #6696522 未加载
评论 #6695982 未加载
评论 #6697134 未加载
0x0超过 11 年前
Isn&#x27;t this also called &quot;Arcball rotation&quot;? The biggest advantage over the naïve implementation is no un-intuitive &quot;sideways&quot; rotation after a few sequences of rotation.
评论 #6696195 未加载
评论 #6695996 未加载
评论 #6698843 未加载
Aardwolf超过 11 年前
This is like 100 times faster in Chromium than in Firefox (on Linux). Any idea why? Is JS in FF really that much slower?
dalyons超过 11 年前
As an experiment I used this D3 geo stuff to visualize my last year or so across the globe:<p><a href="http://dalyons.github.io/where-is-dave/index.html?use_cached=true&amp;ga=true" rel="nofollow">http:&#x2F;&#x2F;dalyons.github.io&#x2F;where-is-dave&#x2F;index.html?use_cached...</a><p>Works much better on chrome than FF unfortunately.<p>I thought it turned out pretty cool, as a practical example of what you can use this stuff for. It was super fun to build, D3 is pretty awesome.<p>You can also load your own photos from FB if you want to see your own track, its just static html&#x2F;js, i dont store anything anywhere.
评论 #6701190 未加载
valtron超过 11 年前
Another way of doing this (without versors):<p>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).<p>R = ON(v) ON(u)^-1 = ON(v) ON(u)^T
kosma超过 11 年前
I&#x27;ve been writing accelerometer coordinate system rotation code for the whole day. Almost melted my brain; trying to imagine 3D rotation is hard, especially when you lack the proper tools and have very little experience with it. Finally got the thing working; decided to have one last look at HN before going to bed. It was then when I saw &quot;Rotate the world&quot; and thought to myself: &quot;well this better not be about Euler angles!&quot;<p>Yup. Thanks pjan, you made my day brighter :)
sddhrthrt超过 11 年前
India is distorted - Kashmir and all. You better be careful about the borders that are under dispute. I took into consideration that it&#x27;s a low-res border, even then it&#x27;s way off.<p>I dont know if the details of map itself are important or not, because I understand it&#x27;s an exhibition of the interface itself. Just my opinion.
edoloughlin超过 11 年前
Anyone else tried this on Linux? On Mint 15 and Ubuntu 13.04 FF25 is has &gt;1 second lag. Chrome 30 is fine.
评论 #6696032 未加载
评论 #6695831 未加载
评论 #6695849 未加载
评论 #6695810 未加载
TipiPerka超过 11 年前
Very nice. Makes me think of <a href="http://aladin.u-strasbg.fr/AladinLite/app/?survey=P/Mellinger/color&amp;zoom=160&amp;cooFrame=gal&amp;target=sgr+a*" rel="nofollow">http:&#x2F;&#x2F;aladin.u-strasbg.fr&#x2F;AladinLite&#x2F;app&#x2F;?survey=P&#x2F;Mellinge...</a>
fijal超过 11 年前
Please Please Please include &quot;show the shortest path between points A and B&quot;.
SeanDav超过 11 年前
Unless I missed it, where does one get the continent shapes and country outlines?
评论 #6696397 未加载
评论 #6695590 未加载
评论 #6695563 未加载
评论 #6695645 未加载
willvarfar超过 11 年前
I have a couple of questions, and I&#x27;m unfamiliar with the Javascript frameworks so I struggle a bit to find the answers in the source:<p>Are the globes drawn with perspective?<p>And can it suffer from gimbal lock?
评论 #6695748 未加载
评论 #6696055 未加载
sz4kerto超过 11 年前
Wow, that&#x27;s _exactly_ what I needed yesterday. Thanks a lot.<p>.. however, some more explanation for how the improved rotation works would have been useful.
cLeEOGPw超过 11 年前
Are the scale of continents right? Because Australia looks almost bigger than Europe, and Africa looks many times bigger than Europe.
评论 #6697684 未加载
评论 #6696620 未加载
ananth99超过 11 年前
Brilliant stuff! Would&#x27;ve been better if it had the names of the places. Kinda like a virtual globe. ;)
deletes超过 11 年前
Rotating maxed out my cpu in both chrome and firefox but only chrome didn&#x27;t stutter.
bebop超过 11 年前
Great work! This is a really nice use of d3 and a great visualization tool.
hcarvalhoalves超过 11 年前
It&#x27;s more useful when you keep the north at north.
dllthomas超过 11 年前
Man oh man, do I hate Euler angles...