3D engine that AI agents drive
Fix the blend pane job frame test and the Vast stages (#1036)
Nguyen Xuan Anfcb7e39aa867
diff --git a/bench/job-materials/vast-run.sh b/bench/job-materials/vast-run.shindex 7451d16f..5a346f4a 100644--- a/bench/job-materials/vast-run.sh+++ b/bench/job-materials/vast-run.sh@@ -43,8 +43,10 @@ for stage in "$@"; dofolder="$out/parity"mkdir -p "$folder"node bench/job-materials/parity.mjs describe "$folder" 2>&1 | tail -3+ blender_binary="$(command -v blender || ls -d /opt/blender*/blender /usr/local/blender*/blender /root/blender*/blender /usr/local/bin/blender* 2>/dev/null | head -1 || find / -maxdepth 4 -name blender -type f 2>/dev/null | head -1 || true)"+ echo "blender: ${blender_binary:-none}"for scene in blend sheen specular-tint anisotropy iridescence absorption composite; do- blender -b --factory-startup --python bench/cycles-parity/render-cycles.py -- "$folder/$scene.json" "$folder/$scene-cycles" --samples 4096 --bounces 8 --seed 1 --width 192 --height 128 2>&1 | grep -E "CYCLES_TRACE|Error|Traceback" | cut -c1-200+ "$blender_binary" -b --factory-startup --python bench/cycles-parity/render-cycles.py -- "$folder/$scene.json" "$folder/$scene-cycles" --samples 4096 --bounces 8 --seed 1 --width 192 --height 128 > "$folder/$scene-cycles.log" 2>&1 || tail -5 "$folder/$scene-cycles.log" | cut -c1-200donels "$folder" | head -40node bench/job-materials/parity.mjs cook "$folder" 4096 2>&1 | tail -10@@ -57,7 +59,8 @@ for stage in "$@"; donode bench/job-materials/figure.mjs "$folder" composite "$out/composite.jpg" 2>&1 | tail -2;;size)- npm run size 2>&1 | tail -30+ npm run size > "$out/size.txt" 2>&1+ grep -n -E "scene:|entry:(core|render|path|agent)|Base|base|vs" "$out/size.txt" | head -40;;esacdonediff --git a/tests/native-job-materials.test.js b/tests/native-job-materials.test.jsindex d3807199..f59d3ad3 100644--- a/tests/native-job-materials.test.js+++ b/tests/native-job-materials.test.js@@ -301,7 +301,9 @@ test('a job frame of a scene without carried fields has the pixels of the v1 tab});test('a job frame with a blend pane differs from the same scene traced from the v1 tables with the same kernel', { skip: addonSkip }, async t => {- const parts = [carriedParts[0], part('wall', -0.5, { color: [0.9, 0.2, 0.2] }, 1.5)];+ // The pane hangs in front of the wall (two quads in one plane would hide it).+ const inFront = { ...carriedParts[0], matrix: [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 2, 1], geometry: quad(1.5) };+ const parts = [inFront, part('wall', 0, { color: [0.9, 0.2, 0.2] }, 1.5)];const viaV2 = await traceJobFrame(parts, 'cycles', t);if (!viaV2) return;const direct = traceNative(buildNativeInput(buildTraceScene(parts, environment), camera, packOptions, pack), { width: WIDTH, height: HEIGHT, samples: 8, kernel: 'cycles' });