Added the gallery

This commit is contained in:
connor committed 2026-10-15 12:33:40 -04:00
1 parent d44f159c98
commit 8861858f0d
8 files changed
+482 -11

No files matched your search

+5 -3
View File
@@ -1,7 +1,9 @@
#!/bin/sh
# Renders every example scene at lighting L0 and L1 into gallery/ (gitignored), as
# <scene>-L0.png and <scene>-L1.png previews. A scene whose model, maps or kernels are
# missing is skipped with the reason. View the result with scripts/serve-gallery.py.
# <scene>-L0.png and <scene>-L1.png previews made with --pretty: white balanced, with a
# tone curve, from exposures that keep the raw signal short of saturation. A scene whose
# model, maps or kernels are missing is skipped with the reason. View the result with
# scripts/serve-gallery.py.
#
# Needs: scripts/fetch-models.sh for the NASA models, scripts/fetch-earth.sh and
# scripts/fetch-moon.py for L1, and astrokit's kernels for scenes given by epoch.
@@ -19,7 +21,7 @@ for scene in examples/scenes/*.toml; do
for tier in L0 L1; do
out="gallery/$name-$tier.png"
if error=$(./target/release/resolved render --scene "$scene" --lighting "$tier" \
--preview "$out" 2>&1); then
--preview "$out" --pretty 2>&1); then
echo "$out"
made=$((made + 1))
else