asset: two north-side background buildings across Hollywood Blvd
- TCL Chinese Theatre (6925) and Madame Tussaud's (6933) exported from the verified OSM blockout with ue_metric_v1 (export_north_buildings.py), with a Y-mirror so they land north of the road, across from the hero facade. - ue_import_north_buildings.py imports + stages them in the DemoMap as North_TCL_Chinese / North_Madame_Tussauds (TCL Y 1802..9431, Tussaud's 1888..7586; hero at Y -1450, road centreline ~0). - render_screenshots.sh now also runs the DemoMap capture pass; added a demo-north-buildings camera, so the new buildings get a review shot. - README/roadmap updated; flat facade materials pending the 0.1.4 patch.
This commit is contained in:
1 parent
f7f01fd077
commit
4401bb2f67
12 files changed
+260
-19
No files matched your search
+31
-14
@@ -2,38 +2,55 @@
|
||||
# Render in-game screenshots for visual review into <repo>/Screenshots/ (gitignored).
|
||||
#
|
||||
# Usage: Tools/render_screenshots.sh
|
||||
# Rebuilds /Game/Test/ReviewMap from current content, runs the game on it
|
||||
# (the GigLineShotActor walks three cameras, captures, quits), then copies
|
||||
# the PNGs into Screenshots/.
|
||||
# Rebuilds /Game/Test/ReviewMap and /Game/Hollywood/DemoMap (shot lists), runs
|
||||
# the game on each map (the GigLineShotActor walks the cameras, captures, quits),
|
||||
# and copies the PNGs into Screenshots/. PNGs are never committed.
|
||||
set -euo pipefail
|
||||
|
||||
REPO="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
ENGINE="${UE_ENGINE_DIR:-/run/media/system/DATA/Engines/UE_5.8.4}"
|
||||
PROJ="$REPO/Game/GigLine/GigLine.uproject"
|
||||
|
||||
echo "== 1/3 build review map =="
|
||||
echo "== 1/4 build review + demo shot maps =="
|
||||
cd "$ENGINE"
|
||||
./Engine/Binaries/Linux/UnrealEditor-Cmd "$PROJ" \
|
||||
-run=pythonscript -script="$REPO/Tools/ue_build_review_map.py" \
|
||||
-nullrhi -unattended -nopause -stdout
|
||||
cat /tmp/ue-review-map-result.txt
|
||||
cat /tmp/ue-review-map-result.txt | tail -3
|
||||
|
||||
echo "== 2/3 run game on review map =="
|
||||
# -windowed -NoSplash: a fullscreen swap can leave the first frame uncaptured.
|
||||
./Engine/Binaries/Linux/UnrealEditor-Cmd "$PROJ" /Game/Test/ReviewMap \
|
||||
-game -windowed -ResX=1920 -ResY=1080 -nopause -nosplash -stdout
|
||||
run_capture() {
|
||||
local map="$1" label="$2"
|
||||
echo "== capture: $label =="
|
||||
./Engine/Binaries/Linux/UnrealEditor-Cmd "$PROJ" "$map" \
|
||||
-game -windowed -ResX=1920 -ResY=1080 -nopause -nosplash -stdout
|
||||
}
|
||||
|
||||
echo "== 3/3 collect screenshots =="
|
||||
mkdir -p "$REPO/Screenshots"
|
||||
rm -f "$REPO"/Screenshots/review-*.png
|
||||
echo "== 2/4 run game on review map (hero/scene shots) =="
|
||||
run_capture "/Game/Test/ReviewMap" "review"
|
||||
|
||||
echo "== 3/4 run game on demo map (walkable-demo shots) =="
|
||||
run_capture "/Game/Hollywood/DemoMap" "demo"
|
||||
|
||||
echo "== 4/4 collect screenshots =="
|
||||
mkdir -p "$REPO/Screenshots/demo"
|
||||
rm -f "$REPO"/Screenshots/review-*.png "$REPO"/Screenshots/demo/review-*.png
|
||||
found=0
|
||||
for src in \
|
||||
"$REPO/Game/GigLine/Saved/Screenshots"/*/review-*.png \
|
||||
"$REPO/Game/GigLine/Saved/Screenshots"/*/*/review-*.png \
|
||||
"$HOME/.config/Epic/GigLine/Saved/Screenshots"/*/review-*.png; do
|
||||
[ -e "$src" ] || continue
|
||||
cp -f "$src" "$REPO/Screenshots/"
|
||||
name=$(basename "$src")
|
||||
if [[ "$name" == review-?("")-demo-* || "$name" == review-*-demo-* || "$name" == review-0?-demo-* ]] \
|
||||
|| [[ "$name" == *demo-* ]]; then
|
||||
cp -f "$src" "$REPO/Screenshots/demo/$name"
|
||||
else
|
||||
cp -f "$src" "$REPO/Screenshots/$name"
|
||||
fi
|
||||
found=1
|
||||
done
|
||||
[ "$found" = "1" ] || { echo "ERROR: no review-*.png found"; exit 1; }
|
||||
ls -la "$REPO/Screenshots"
|
||||
echo "--- Screenshots/ ---"
|
||||
ls -1 "$REPO/Screenshots"
|
||||
echo "--- Screenshots/demo/ ---"
|
||||
ls -1 "$REPO/Screenshots/demo"
|
||||
Reference in new issue
Block a user