Skip to content
Side Quests
Programming · 2026

LULA Navigator

Built in one weekend for the NASA Space Apps Challenge: pick a lunar landing site and a date, and see where the Sun and Earth really are against the actual terrain, from 2020 to 2040.

Reactthree.jsTypeScriptPythonFigmaDocker The challenge
Orbit view: Malapert massif, as seen from Earth
Role
Interface, 3D & data pipeline
Context
NASA Space Apps Challenge 2026 · Lunar Landing Site Navigator
Team
Team of 4
Duration
One weekend

A 3D tool built in one weekend for the NASA Space Apps Challenge 2026: pick a lunar landing site and a date, and see where the Sun and Earth really are, against the actual terrain, anywhere between 2020 and 2040.

We were a team of four: Matías Lizana, Eli Trotta, Aleix Canals and me. I worked on the interface, the 3D and the data pipeline.

The brief

The challenge sounds like a data problem. It isn't. NASA already publishes everything you need: JPL Horizons gives the ephemerides, LRO gives the topography, and tools like QuickMap and Moon Trek put both on a map. What the brief describes is a comparison problem. Those interfaces are built for detailed analysis, so checking one site on one date means navigating several of them and reading raw numbers. When a launch slips and a team has to re-plan, that cost multiplies.

The line that stuck with me: at the south pole, small changes in landing location or date can dramatically affect power generation and communication windows. That's a sentence you only believe once you've seen it. So the target became one screen, one site, one date, and an answer in seconds, for a mission planner, a teacher or anyone curious.

The problems in the brief and how the app answers them

Two views, because the question has two scales

The orbit view is the Moon as a body: real relief, real sunlight, and the Sun and Earth behind it in their true directions, Earth at true size and distance. Click anywhere on the surface to set a site.

The surface view puts you 2 m above that site, with the terrain modelled out to 220 km on the curved Moon. The Sun and Earth are drawn at their true angular size, and they disappear behind a ridge exactly when the computed horizon says they should.

That was the rule for the whole project: the picture isn't an illustration of the numbers, it is the numbers. If the app draws the Sun above the horizon, the maths says it's above the horizon. If it hides it, the maths hides it too.

Real data, or nothing

Every value comes from NASA sources, and none of it is fetched at runtime. A build step downloads the sources, another turns them into compact binaries, and the browser only interpolates.

  • Ephemerides: JPL Horizons (DE441), a 2-hour table from 2020 to 2040 with the sub-solar point, sub-Earth point, distances and lunar orientation. Interpolated and converted to azimuth and elevation in the site's local frame, light-time included.
  • Terrain: LRO LOLA elevation, 64 px/degree near the poles (about 474 m) and 8 px/degree elsewhere (about 3.8 km).
  • Imagery: the LROC WAC colour mosaic, Blue Marble for Earth, and NASA's 8K star map oriented to the true celestial frame.

The trade is size: about 96 MB bundled, mostly polar terrain. In exchange the app works offline, needs no API key, never hits a rate limit, and gives the same answer every time. For a planning tool, that matters more than a small download.

Sun, Earth, solar energy and communication readouts

The horizon is the real work

A Sun elevation angle is easy. Knowing whether you can see the Sun is not: the Moon has no atmosphere to bend light, so the horizon is pure geometry, and at the south pole it's written by the terrain.

For each site the app builds a horizon in 720 azimuth bins (0.5°), out to 220 km, including lunar curvature, from an eye 2 m above the ground. A body counts as visible while any part of its disc clears that horizon. Sunrise, sunset, Earthrise and Earthset are found by stepping forward and bisecting down to 15 seconds.

Horizon panorama: the terrain profile with the Sun and Earth on it

To check it, a script asks Horizons directly for the Sun's and Earth's position from five lunar sites, 345 epochs between 2024 and 2035, and compares them with the app. Worst case: 0.0002° for the Sun, 0.0061° for Earth.

The terrain check is the one I like most. Over 2027, the Shackleton rim summit is sunlit about 96% of the time; the crater floor a few kilometres away never sees the Sun or Earth at all. No formula can fake that.

The number that made the case

Move the Shackleton rim point 300 metres and its yearly sunlight drops from 96% to 69%.

That's the whole project in one sentence. It's also exactly the decision a delayed launch forces, and it shouldn't require a spreadsheet. So the app turns the situation into a plain-language verdict on power, Earth link and ground slope, with gates before score: if the Sun is below the ridge at landing, it says not viable and explains why, instead of printing a number over a failed assumption.

Surface view on the Shackleton rim, the Sun just above the ridge: it stays up for another 122 days
300 m away: it sets in under 4 days, and Earth is already hidden

Two search tools came out of the same idea. Best time scans the next twelve months for the best 30-day mission window at your site. Best place screens the whole Moon on a 2° grid, then scores the 30 best candidates properly and moves you there. Both are honest about their resolution: they decide where to look, not what the answer is.

When the ground was too smooth

The first surface view looked wrong. At about 474 m per pixel, standing on the rim the ground was effectively flat: a parking lot with a horizon.

We fixed it with a 20 m terrain pyramid over the polar cap: 8192 × 8192 pixels, 163.8 km across the pole, five levels of tiles, 67 MB in total. The app fetches only the nine tiles around the observer (about 2 MB), so any point inside the cap is shaded from real LRO data, not just the five preset sites. Outside the cap, the ground falls back to the coarse grid.

Making it feel like a product

A correct tool that's unpleasant to use is still a failed tool, so the interface got as much attention as the maths: a landing screen, floating panels, the Figma-designed layout rebuilt in the browser, one continuous camera move from orbit to surface (the camera dives, the picture fades through black, the surface appears), a star field that fades instead of popping, and a timeline you can scrub across a whole lunar month.

The landing screen
The timeline: Sun and Earth elevation and visibility over a lunar month

Then the boring-but-decisive parts: a phone layout rebuilt from scratch for touch below 1080 px, and a two-stage Docker build where Node builds the static files and a Python image serves them, so the runtime carries no toolchain. The name changed on the last night, from the working title to LULA Navigator.

28 commits and about 17,700 lines added in two days.

What we cut, and what we refuse to claim

The app doesn't model eclipses of the Sun by Earth. It doesn't see boulders or metre-scale roughness, and the terrain grid limits how precise the illumination percentages can be: a caveat stated in the About panel, not hidden. Thermal design, radiation, dust, panel degradation and science value are out of scope.

We also wrote down how the numbers are made. The solar panel is a stated assumption (1 m², 30% cells), and the communication link is a stated radio (5 W, 6 dBi) into a 34 m DSN antenna at 8475 MHz. The About panel lists every formula, source and limit. AI assistants helped write and document the code; no AI model generates or alters any position, angle or visibility value. Those are computed.

Being explicit about limits turned out to be a feature. A planner trusts a tool more when it says what it can't see.

What I took from it

The team, from left to right: Aleix, Oscar, Matías and Eli

The interface is the physics. Once the Sun and Earth were drawn at true size and could be hidden by real terrain, we stopped needing to explain the challenge: you can watch a site go dark while the one next to it stays lit.

The second lesson is about trust. The most convincing thing we built wasn't a render or an animation; it was a number that contradicts intuition, and a panel that says where that number ends.

And a practical one: precomputing is a design decision. Shipping 96 MB of NASA data is why the app opens instantly, works on bad conference Wi-Fi, and gives the same answer to a judge, a teacher and an engineer.

Get in touch

Let's talk!

Open to environment and prop art roles, freelance and collabs. I reply to every message.

say-hi
Oscar3D ARTIST

Hey! Thanks for dropping by.

I'm open to environment and prop art roles, freelance and collabs. Tell me what you're making and I reply to every message.

ovillalobos.esWhere to find me
Message #say-hi
© 2026 Oscar Villalobos