Skip to content
Andrew Voirol
WorkLogAboutContact
HomeWorkLog

AboutContact

✦ Just one prompt away from figuring it all out.

Saturday, October 25, 2025globe-to-map-build

Interpolating between two d3 projections

d3-geoProjectionCanvas

What if you could watch a globe unfold into a flat map? Started experimenting with morphing between d3's geoOrthographic and geoEquirectangular projections. The naive approach — tween the pixel coordinates — looks terrible because it breaks geographic truth. Points slide across oceans. The insight: you need to interpolate the projection functions themselves, not the output coordinates. Built a custom hybrid projection that blends the two math functions with a morphFactor uniform. Every pixel follows real projection math through the transition. First prototype is janky but the concept works.

Next →

Back-face culling kills the clip artifacts


Andrew Voirol

Builder, hacker, shipper. Currently leaving localhost.

Navigate

WorkBuilder’s LogAboutContactRSS Feed

Connect

X / TwitterGitHubLinkedIn

© 2026 Andrew Voirol✦Just one prompt away from figuring it all out.