ShitboxInfinity/tools/import_all.sh
type-two c4f11cc7de Batch-import the whole shitboxes stash: 13 more real models
FX/EH/HR Holdens, Kingswood HZ, both Excel imports, 240Z, AE86, KE80, both
Minis, Minicab, Delica coach, Leyland bus (untextured ghost bus, still
menacing). import_shitbox.py grows pitch axis, 1K texture cap and 150k-tri
decimation (cars/ went 501MB -> 146MB). tools/import_all.sh is the rerunnable
manifest with per-pack orientation fixes. Cutlass pack was junk, skipped.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-27 22:47:38 +10:00

27 lines
1.6 KiB
Bash
Executable File

#!/bin/bash
# Rebuild every imported (non-procedural) car from the shitboxes/ stash.
# Manifest: source|car_id|target_length_m|yaw_deg|pitch_deg
# Yaw/pitch were eyeballed per pack -- most packs author +Z forward (hence 180s).
cd "$(dirname "$0")/.." || exit 1
B=/Applications/Blender.app/Contents/MacOS/Blender
while IFS='|' read -r src id len yaw pitch; do
[ -z "$src" ] && continue
"$B" -b -P tools/import_shitbox.py -- "shitboxes/$src" "$id" "$len" "$yaw" "$pitch" 2>&1 | grep -E '^imported' || echo "FAILED: $id"
done <<'EOF'
1972-datsun-240z/source/extracted/FINAL_MODEL_72.fbx|dadson_240z|4.14|180|0
1990-hyundai-excel/source/1990 Hyundai Excel.blend|chaebol_90|4.26|180|0
hyundai-excel-1992/source/extracted/f3c7bc2cd22aee6314b8af38ae8458c1.obj|chaebol_92|4.15|180|0
leyland-bus/source/extracted/Leyland bus/bus.obj|busted_leyland|9.5|90|0
leyland-mini/source/model.gltf|leyland_morry|3.05|180|0
mitsubishi-minicab-2005/source/extracted/keytruck.obj|minicab|3.40|270|0
source 2/extracted/1979 Holden Kingswood Sedan.glb|kingswood_hz|4.81|0|0
source 3/extracted/Holden_48-215_sedan_1948.obj|hardon_effex|4.42|180|-90
source 4/extracted/Holden_HR_Premier_1966.obj|hardon_hr|4.60|180|-90
source 5/extracted/Holden_Special_(Mk4f)_(EH)_sedan_1964.obj|hardon_eh|4.55|180|-90
source 6/Toyota Corolla AE86.blend|turdeno|4.24|0|0
source/1974 Mitsubishi Delica Coach.glb|derelica|4.00|180|-90
toyota-corolla-ke80/source/corolla KE80.blend|casserola_ke80|4.05|180|0
morris-mini/source/Morris Mini.glb|morry|3.05|0|0
toyota-corolla-mk7-dx/source/toyota_corolla_mk7_dx.glb|casserola_dx|4.27|180|0
EOF