Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

#159: bench/aov-msaa/check.sh reads the depth's bytes in the C locale. tr in a UTF-8 locale stops on a float file's bytes ("Illegal byte sequence"), so the all-zero test failed every frame. On the fixed raea all three cases pass: the bloom ramp and the game with --aov write frames 0 to 5 with their depth and motion, and the ramp with RAEA_PASS=depth writes all six frames.

shinyobjectz4a8c5c04ad2f
diff --git a/bench/aov-msaa/check.sh b/bench/aov-msaa/check.sh
index 1d16006c..c7c64be0 100755
--- a/bench/aov-msaa/check.sh
+++ b/bench/aov-msaa/check.sh
@@ -20,7 +20,7 @@ for c in ramp game; do
n=$(printf '%05d' "$i")
[ "$(wc -c < "$OUT/$c/depth/frame-$n.f32" 2>/dev/null | tr -d ' ')" = 230400 ] || { echo "FAIL: $c --aov: frame $i's depth is missing or not 320 x 180"; exit 1; }
[ "$(wc -c < "$OUT/$c/motion/frame-$n.f32" 2>/dev/null | tr -d ' ')" = 460800 ] || { echo "FAIL: $c --aov: frame $i's motion is missing or not 320 x 180"; exit 1; }
- [ "$(tr -d '\0' < "$OUT/$c/depth/frame-$n.f32" | head -c 1 | wc -c | tr -d ' ')" = 1 ] || { echo "FAIL: $c --aov: frame $i's depth is all zero"; exit 1; }
+ [ "$(LC_ALL=C tr -d '\0' < "$OUT/$c/depth/frame-$n.f32" | head -c 1 | wc -c | tr -d ' ')" = 1 ] || { echo "FAIL: $c --aov: frame $i's depth is all zero"; exit 1; }
done
echo "PASS: $c --aov: frames 0 to 5, each with its depth and motion"
done