top | item 40691925

(no title)

yuumei | 1 year ago

Beautiful, but could do with using quaternions for rotation to avoid gimbal lock. At least I assume that’s the problem with getting stuck on the poles

discuss

order

sigmoid10|1 year ago

For interactive navigation on a sphere (remember, this is just a sphere looked at from the inside) you actually want absolute euler angle based rotations, otherwise compound rotations around any closed loop on the sphere's surface will change the orientation of the camera and make further navigation extremely confusing. Source: many years spent designing 3d applications. Also, Google Earth and every other major app do it the same way.

LegionMammal978|1 year ago

Im fact, if you zoom out all the way, you'll see that we're actually looking at a sphere from the outside, as if the stars are situated on a celestial globe. It seems to be a relatively common convention for interactive night-sky maps.