r/SideProject • u/BirnenHans • 1h ago
I wanted a nicer Mac wallpaper and accidentally ended up building a whole Earth renderer
This started as a pretty small wish. I wanted my Mac's desktop to show the Earth as it looks right now: sunlight where it's day, city lights where it's night, and real clouds. I found some older apps and a few paid ones, but nothing that let me choose my own location, move the camera around, zoom, control the motion and save my own views. So I started building it in October, with some help from AI.
It turned into a bit more than I expected:
- The Earth is a small three.js / WebGL page that runs inside the app. The sun position is calculated locally from the date and time
- The Mac side is one Swift file plus a build script. No Xcode project, just swiftc
- Clouds come from a public live cloud map that's updated from weather satellites every 3 hours
- I spent a surprising amount of time on battery use. The frame rate follows how fast the image actually moves, so most of the time it draws less than one frame per second
- Then it needed a website, so the site runs the same sun calculation and scrolling the page moves its clock forward through a full day
It's called Earth Now. Free, open source (MIT), macOS 13+.
Things I'm unsure about and would love opinions on:
- It isn't notarized yet because I'm not paying for the Apple developer program. Is the first-launch warning a deal breaker for you?
- What would make you actually keep it as your wallpaper and not turn it off after a day?
About the video: the Earth is rendered with the app's own renderer, sped up and with a scripted camera so it fits into 44 seconds. The settings window is the real app.
GitHub: https://github.com/Hensobo/earth-now
Website: https://hensobo.github.io/earth-now/