A Physics-Based Spectral Radiosity Solver for Lunar Subsurface Exploration
Lunar pits are of immense scientific value, potentially providing access to pristine basaltic stratigraphy and stable environments for future lunar bases. However, current orbital imagery (LROC NAC) is limited by extreme contrast; shadows appear as "black boxes" with zero visible detail because the Moon lacks an atmosphere to scatter light.
Pit MAGIC provides the missing link for mission success by quantifying the "Light Depth" in these shadows. It calculates how sunlight bounces off lit walls to create a faint "Glow" that reveals the pit's interior. This allows mission planners to set HDR exposure targets and identify geological features that are otherwise invisible.
- Set HDR Exposure Targets: Predict exactly how long a rover's shutter must be open to resolve wall textures without drowning in sensor noise.
- Optimize Trajectories: Identify "High-Glow" windows where secondary reflections are at their peak, maximizing scientific ROI during circumnavigation stop-points.
- Identify Cave Entrances: Map the falloff of light into the deep recesses of the pit to differentiate deep cave entrances from simple wall overhangs.
- Methodology: Grey-scale radiosity assuming a uniform lunar albedo (0.12).
- Limitation: Solar vectors were calculated in global coordinate frames, resulting in stagnant shadow models over short timeframes.
- Result: Successfully validated the primary Lambertian transport kernel.
- Spectral Engine: Upgraded to 3-Band (RGB) transport matching MAGIC camera bandpasses (615nm, 537nm, 450nm).
- Local ENU Transformation: Implemented a Local Tangent Plane (East-North-Up) transformation matrix (44.96°N, 25.61°E). Shadows now move realistically across the pit's local horizon.
-
BVH Integration: Integrated Bounding Volume Hierarchies for
$O(\log N)$ visibility checks between surface patches. -
Numerical Rigor: Migrated to
float32vectorization for high-speed processing of millions of concurrent form-factor calculations.
Figure 1: 10-day time-lapse. Note the shadow line sweeping across the floor and the "Glow" migrating between walls as the Sun arcs over the local horizon. This identifies the optimal diurnal mission window for wall imaging.
Figure 2: Spectral irradiance map ($W/m^2$). Renders include directional axes aligned with the IAU_MOON frame. The legend is relocated to the top-left to ensure zero overlap with 3D terrain data.
Figure 3: Vertical projection of the radiosity distribution. Used to calculate the specific "Light Depth" available at different distances from the pit rim.
If you are starting from scratch or want to upload your own DTM data:
- Install Requirements:
pip install -r requirements.txt - Initialize: Run
./pitIllum init. This creates the folders you need. - Place Your Data:
- Put your 3D Mesh (
.obj) or GeoTIFF (.tif) indata/raw_lroc/. - Ensure SPICE kernels are in
data/kernels/.
- Put your 3D Mesh (
- Analyze:
./pitIllum analyze --dtm data/raw_lroc/YOUR_FILE.obj --time "2026-06-21T12:00:00"
lib/: Contains core physics logic. Modification will break telemetry-sync.data/: Subfolders (kernels,raw_lroc) must remain exactly as named for the automated loader to function.output/: PNG maps and 3D result models are exported here automatically.
status: Check if telemetry (SPICE kernels) and terrain data are properly loaded and synced.generate-test: Fabricate a synthetic pit model for physics validation.analyze: The primary scientific engine. Use--timefor specific mission timestamps and--bouncesfor higher accuracy.
Pit MAGIC implements a deterministic solution to the Kajiya Rendering Equation for a vacuum environment. We model the secondary transport of photons (Radiosity) between surface patches
Where the geometric kernel
-
$V_{ij}$ : Visibility term solved via BVH (Bounding Volume Hierarchy) ray-casting. -
$r_{ij}^2$ : Inverse Square Law falloff across the pit void.
-
Physics Check: Run
python3 tests/validation_test.pyto verify energy conservation ($\approx 0.11$ ratio). -
Structural Visibility: Areas showing
$> 100 , W/m^2$ are candidates for high-resolution stratigraphy imaging without long-exposure blurring. - Thermal Correlation: High-radiosity zones correlate with surfaces receiving more reflected energy, aiding in the calculation of local thermal inertias.
Repository: github.com/rxshira/magicPitIllum Version: 1.1 (Spectral Suite)