WORLDLINE 08 · The globe is baked
256 tiles, one globe
A globe is 256 photographs agreeing to hide the seams.
No bought texture, no public-domain NASA imagery. We pulled Tianditu img_w tiles and reprojected them into an equirectangular map.
01 The transition from orbit
Section eight of the home page is a transition from orbit to a door number: a satellite-textured globe turns to China, the camera pushes in, then it cross-fades to the 2D Tianditu satellite map. The globe needs an equirectangular texture.
02 Why not buy a texture
Two obvious routes: buy one, or use public-domain NASA imagery. The first is not cheap. The second is not the same imagery as the map underneath — cloud cover, tone and coastline all disagree, and the cross-fade gives it away.
03 Pull tiles, then reproject
So we pulled Tianditu tiles directly. At z=4 that is 256 img_w tiles, stitched into a 4096×4096 Mercator image, then one bilinear reprojection in numpy mapping Mercator y to latitude, written out as a 2048×1024 WebP at 161 KB.
04 Two traps
Two traps. The tile endpoint checks the user agent: a server-side request with a default UA returns 403, this key is browser-side; a Chrome UA goes through, and the referrer turned out not to matter. The other is the longitude origin: we defined x=W/2 as 113.5575°E, Shaoguan, so the globe already faces China and half a rotation disappears.
05 Sharpness has a limit
As for sharpness, let us be honest. 2048 gives about 5.7 pixels per degree at the equator; the whole city of Shaoguan covers six pixels. So the camera stops at province level and the real tile map takes over. Hiding that limit inside a transition beats paying for an 8192-pixel texture.