Skip to content
Andrew Voirol
WorkLogAboutContact
HomeWorkLog

AboutContact

✦ Just one prompt away from figuring it all out.

Saturday, August 1, 2026geogenesis-unfold-build

One missing minus sign and the whole globe was inside out

d3-geoVisualizationDebugging

Spent three rounds trying to describe why the globe was jumping to Australia every time I hit UNFOLD. Countries ghosting, doubling during the transition, the map unfurling from the wrong hemisphere. I kept saying "it snaps to the other side" and the fix kept being more complex — wider thresholds, delayed clip switching, opacity crossfades. None of it helped because the symptom wasn't the disease. The hemisphere classifier in getCenter() returned [r[0], -r[1]] instead of [-r[0], -r[1]]. D3's rotation convention: rotate([λ, φ]) centers on [-λ, -φ]. One missing negation on longitude meant every country got classified relative to the antipode. Americas visible? Hemisphere split thinks you're looking at central Asia. One character. Every visual bug gone.

← Previous

190 kilobytes of app, 973 of Three.js

Next →

AI Studio export to shipped in one sitting


Andrew Voirol

Builder, hacker, shipper. Currently leaving localhost.

Navigate

WorkBuilder’s LogAboutContactRSS Feed

Connect

X / TwitterGitHubLinkedIn

© 2026 Andrew Voirol·Back to top ↑
✦Just one prompt away from figuring it all out.