3D Solar and Lunar Eclipse Simulator – JPL DE441, Skyfield, Unreal Engine 5 and Cesium
Hello everyone!
I’d like to share an independent project I’ve been developing over the past several months: 3D Solar Eclipse Simulator.
I originally developed this application as my Bachelor’s thesis at the National University of Science and Technology POLITEHNICA Bucharest. I’ve been interested in astronomy since I was young, and I wanted to build something that would allow people to explore eclipses in a more immersive and geometrically accurate way than traditional 2D eclipse maps.
The application simulates both solar and lunar eclipses across approximately 30,000 years, from 13,000 BC to 17,000 AD.
What makes this project different?
Most eclipse applications represent solar eclipses using a 2D shaded band on a map. My approach is to calculate and render the actual 3D shadow geometry.
The simulator computes the Moon’s umbra and penumbra cones and their intersection with Earth, represented as a WGS84 ellipsoid rather than a perfect sphere. It also supports antumbra geometry for annular solar eclipses.
The resulting geometry is rendered over real-world geographical terrain using Cesium for Unreal.
Main features
-
Extensive eclipse catalogues: 71,264 solar eclipses and 72,272 lunar eclipses, with filtering by year, magnitude and eclipse type.
-
City-based exploration: Users can browse cities along eclipse paths and select a specific location to observe the eclipse from that point on Earth.
-
3D shadow geometry: Visualization of the umbra and penumbra cones, their projections onto Earth’s surface, the totality path and the antumbra for annular eclipses.
-
High-accuracy Earth representation: Cesium for Unreal 2.22.1 provides real-world terrain, while the calculations use a WGS84 ellipsoid.
-
Astronomical telemetry: Contact times C1–C4, eclipse magnitude, coverage and other astronomical parameters.
-
Time and location controls: Users can control simulation time, move freely around the environment and save bookmarks for interesting locations.
-
Atmospheric conditions: Configurable fog, cloud density, cloud altitude, rain and snow.
-
Night sky visualization: More than 5,000 stars, constellations and celestial bodies.
Astronomical calculations and validation
The application uses Python and Skyfield for celestial body positions, JPL DE441 ephemerides for planetary and lunar positions, and Geopy for geographical location-related operations.
The eclipse catalogues are based on the Irwin catalogues.
I have tested the calculated contact times against Xavier Jubier’s reference data for selected eclipses in 2026 and 2027. The maximum observed difference in these documented test cases is approximately 1.7 seconds.
Lunar surface modelling
Another component I worked on is the representation of the Moon’s actual surface relief.
Instead of relying exclusively on a spherical Moon model, I trained a compact multi-resolution Hash Grid neural network using NASA LRO/LOLA lunar elevation data.
The purpose is to represent lunar limb irregularities and improve the calculation of solar eclipse contact times (C1–C4), where the Moon’s surface topography can affect the observed contact moments.
Technical architecture
The application combines:
- Unreal Engine 5.7 for real-time 3D rendering.
- Cesium for Unreal 2.22.1 for geographical terrain.
- Python and Skyfield for astronomical calculations.
- JPL DE441 ephemerides.
- A custom binary UDP communication protocol connecting the Python backend and Unreal Engine.
Source code and downloads
The complete source code is publicly available under the Apache License 2.0:
GitHub repository:
The application is free to download:
Gumroad:
Demonstrations
Short trailer:
Long demonstration:
Feedback I’m looking for
I’d particularly appreciate feedback from astronomers, computational astronomy developers and people working with astronomical datasets.
Some things I’d be interested in discussing:
-
Are there additional astronomical effects or geometrical considerations that would be useful to include in the eclipse calculations?
-
Are there other reference datasets or independent validation methods you would recommend for checking eclipse contact times?
-
What do you think about using a compact neural representation of lunar elevation for lunar limb modelling?
-
Could this type of 3D visualization be useful for astronomy education, planetariums or scientific outreach?
This has been an independent project developed over several months, combining computational astronomy, numerical geometry, machine learning and real-time 3D visualization.
I’d be happy to hear your feedback, suggestions and criticism.
Thank you for taking a look!





