Got the movie working in the gallery

This commit is contained in:
connor committed 2026-10-15 13:35:00 -04:00
1 parent 8861858f0d
commit 782820261e
15 files changed
+1291 -111

No files matched your search

+9 -2
View File
@@ -2,7 +2,8 @@
# Renders every example scene at lighting L0 and L1 into gallery/ (gitignored), as
# <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
# model, maps or kernels are missing is skipped with the reason. Then the showcase
# movie, gallery/movie.mp4 (resolved-movie, which needs ffmpeg). View the result with
# scripts/serve-gallery.py.
#
# Needs: scripts/fetch-models.sh for the NASA models, scripts/fetch-earth.sh and
@@ -11,7 +12,7 @@
set -e
cd "$(dirname "$0")/.."
cargo build --quiet --release -p resolved-cli
cargo build --quiet --release -p resolved-cli -p resolved-showcase
mkdir -p gallery
made=0
@@ -32,3 +33,9 @@ for scene in examples/scenes/*.toml; do
done
done
echo "$made images in gallery/, $skipped skipped"
if error=$(./target/release/resolved-movie --out gallery/movie.mp4 2>&1); then
echo "gallery/movie.mp4"
else
echo "skipped the movie: ${error#error: }"
fi