feat(web): studio worlds, camera-view/offscreen environment parity, material and undo coverage
Environment lighting: - ship all eight desktop studiolights/world datasets (WBENV1 float32) and a shared loader used by both the main viewport and the offscreen worker - add the N-panel "studio 环境" selector - rotate the world background together with the environment (backgroundRotation/backgroundIntensity), so camera view and offscreen renders match the desktop Mapping-node behaviour Verification (Chromium, OPFS, NOT_CLAIMED): - environment lighting + 8 world pixel identity - camera-view rotation correspondence (camera matrices, 207 samples) - offscreen vs on-screen background parity after hiding geometry (1305 samples) - metals case extended with material-field OPFS roundtrip - material Principled edits and rename undo/redo - eight studio worlds: pairwise frame differences + luminance rank correlation - undo history depth capped at 64 steps and undo across OPFS save/reopen Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1
tools/web/workflow-cases/collada-decimate.json
Normal file
1
tools/web/workflow-cases/collada-decimate.json
Normal file
@@ -0,0 +1 @@
|
||||
{"schemaVersion":1,"batchId":"B3","workflow":"COLLADA single feature: Apply a 0.5 Decimate modifier to every mesh; total triangles halve","nativeSession":false,"timeoutMs":180000,"sourcePaths":["web/app/src/app/App.tsx","web/app/src/app/model-convert-client.ts","web/app/src/workers/model-convert.worker.ts","web/app/src/vendor/assimp/assimpjs.js","web/app/src/engine-client/WebEngineClient.ts","blender-5.2.0/source/blender/web_engine/web_engine_api.cpp","blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp","blender-5.2.0/source/blender/web_engine/web_engine_decimate.cpp","tools/web/generate-collada-fixtures.py","blender-5.2.0/tests/python/batch_import.py"],"remainingGates":["Single-feature case; see docs/status/WBV2-COLLADA-001.md for the memory fix and remaining gaps"],"fixtures":[{"kind":"source","path":"web/tests/fixtures/collada/yt2-imported.blend","spec":"tests/e2e/collada-model-pipeline.spec.ts","grep":"COLLADA decimate reduces","scope":["Apply a 0.5 Decimate modifier to every mesh; total triangles halve"]}],"sourceSuite":"blender-5.2.0/tests/python/batch_import.py"}
|
||||
1
tools/web/workflow-cases/collada-export.json
Normal file
1
tools/web/workflow-cases/collada-export.json
Normal file
@@ -0,0 +1 @@
|
||||
{"schemaVersion":1,"batchId":"B3","workflow":"COLLADA single feature: Native export_scene.gltf GLB download payload parses as glTF 2.0","nativeSession":false,"timeoutMs":180000,"sourcePaths":["web/app/src/app/App.tsx","web/app/src/app/model-convert-client.ts","web/app/src/workers/model-convert.worker.ts","web/app/src/vendor/assimp/assimpjs.js","web/app/src/engine-client/WebEngineClient.ts","blender-5.2.0/source/blender/web_engine/web_engine_api.cpp","blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp","blender-5.2.0/source/blender/web_engine/web_engine_decimate.cpp","tools/web/generate-collada-fixtures.py","blender-5.2.0/tests/python/batch_import.py"],"remainingGates":["Single-feature case; see docs/status/WBV2-COLLADA-001.md for the memory fix and remaining gaps"],"fixtures":[{"kind":"source","path":"web/tests/fixtures/collada/yt2-imported.blend","spec":"tests/e2e/collada-model-pipeline.spec.ts","grep":"COLLADA exports native","scope":["Native export_scene.gltf GLB download payload parses as glTF 2.0"]}],"sourceSuite":"blender-5.2.0/tests/python/batch_import.py"}
|
||||
@@ -0,0 +1 @@
|
||||
{"schemaVersion":1,"batchId":"B3","workflow":"COLLADA single feature: generated fixture millimeter_yup imports with its expected structure","nativeSession":false,"timeoutMs":180000,"sourcePaths":["web/app/src/app/App.tsx","web/app/src/app/model-convert-client.ts","web/app/src/workers/model-convert.worker.ts","web/app/src/vendor/assimp/assimpjs.js","web/app/src/engine-client/WebEngineClient.ts","tools/web/generate-collada-fixtures.py","blender-5.2.0/tests/python/batch_import.py"],"remainingGates":["Single-feature case; expectations live in web/tests/fixtures/collada/expected.json"],"fixtures":[{"kind":"source","path":"web/tests/fixtures/collada/yt2-imported.blend","spec":"tests/e2e/collada-model-pipeline.spec.ts","grep":"COLLADA fixture millimeter_yup","scope":["Generated fixture millimeter_yup"]}],"sourceSuite":"blender-5.2.0/tests/python/batch_import.py"}
|
||||
@@ -0,0 +1 @@
|
||||
{"schemaVersion":1,"batchId":"B3","workflow":"COLLADA single feature: generated fixture nested_hierarchy imports with its expected structure","nativeSession":false,"timeoutMs":180000,"sourcePaths":["web/app/src/app/App.tsx","web/app/src/app/model-convert-client.ts","web/app/src/workers/model-convert.worker.ts","web/app/src/vendor/assimp/assimpjs.js","web/app/src/engine-client/WebEngineClient.ts","tools/web/generate-collada-fixtures.py","blender-5.2.0/tests/python/batch_import.py"],"remainingGates":["Single-feature case; expectations live in web/tests/fixtures/collada/expected.json"],"fixtures":[{"kind":"source","path":"web/tests/fixtures/collada/yt2-imported.blend","spec":"tests/e2e/collada-model-pipeline.spec.ts","grep":"COLLADA fixture nested_hierarchy","scope":["Generated fixture nested_hierarchy"]}],"sourceSuite":"blender-5.2.0/tests/python/batch_import.py"}
|
||||
@@ -0,0 +1 @@
|
||||
{"schemaVersion":1,"batchId":"B3","workflow":"COLLADA single feature: generated fixture triangle_minimal imports with its expected structure","nativeSession":false,"timeoutMs":180000,"sourcePaths":["web/app/src/app/App.tsx","web/app/src/app/model-convert-client.ts","web/app/src/workers/model-convert.worker.ts","web/app/src/vendor/assimp/assimpjs.js","web/app/src/engine-client/WebEngineClient.ts","tools/web/generate-collada-fixtures.py","blender-5.2.0/tests/python/batch_import.py"],"remainingGates":["Single-feature case; expectations live in web/tests/fixtures/collada/expected.json"],"fixtures":[{"kind":"source","path":"web/tests/fixtures/collada/yt2-imported.blend","spec":"tests/e2e/collada-model-pipeline.spec.ts","grep":"COLLADA fixture triangle_minimal","scope":["Generated fixture triangle_minimal"]}],"sourceSuite":"blender-5.2.0/tests/python/batch_import.py"}
|
||||
@@ -0,0 +1 @@
|
||||
{"schemaVersion":1,"batchId":"B3","workflow":"COLLADA single feature: generated fixture two_materials imports with its expected structure","nativeSession":false,"timeoutMs":180000,"sourcePaths":["web/app/src/app/App.tsx","web/app/src/app/model-convert-client.ts","web/app/src/workers/model-convert.worker.ts","web/app/src/vendor/assimp/assimpjs.js","web/app/src/engine-client/WebEngineClient.ts","tools/web/generate-collada-fixtures.py","blender-5.2.0/tests/python/batch_import.py"],"remainingGates":["Single-feature case; expectations live in web/tests/fixtures/collada/expected.json"],"fixtures":[{"kind":"source","path":"web/tests/fixtures/collada/yt2-imported.blend","spec":"tests/e2e/collada-model-pipeline.spec.ts","grep":"COLLADA fixture two_materials","scope":["Generated fixture two_materials"]}],"sourceSuite":"blender-5.2.0/tests/python/batch_import.py"}
|
||||
1
tools/web/workflow-cases/collada-glb-roundtrip.json
Normal file
1
tools/web/workflow-cases/collada-glb-roundtrip.json
Normal file
@@ -0,0 +1 @@
|
||||
{"schemaVersion":1,"batchId":"B3","workflow":"COLLADA single feature: Export GLB then re-import it through the native glTF importer","nativeSession":false,"timeoutMs":180000,"sourcePaths":["web/app/src/app/App.tsx","web/app/src/app/model-convert-client.ts","web/app/src/workers/model-convert.worker.ts","web/app/src/vendor/assimp/assimpjs.js","web/app/src/engine-client/WebEngineClient.ts","blender-5.2.0/source/blender/web_engine/web_engine_api.cpp","blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp","blender-5.2.0/source/blender/web_engine/web_engine_decimate.cpp","tools/web/generate-collada-fixtures.py","blender-5.2.0/tests/python/batch_import.py"],"remainingGates":["Single-feature case; see docs/status/WBV2-COLLADA-001.md for the memory fix and remaining gaps"],"fixtures":[{"kind":"source","path":"web/tests/fixtures/collada/yt2-imported.blend","spec":"tests/e2e/collada-model-pipeline.spec.ts","grep":"COLLADA GLB round-trip","scope":["Export GLB then re-import it through the native glTF importer"]}],"sourceSuite":"blender-5.2.0/tests/python/batch_import.py"}
|
||||
1
tools/web/workflow-cases/collada-hierarchy.json
Normal file
1
tools/web/workflow-cases/collada-hierarchy.json
Normal file
@@ -0,0 +1 @@
|
||||
{"schemaVersion":1,"batchId":"B3","workflow":"COLLADA single feature: Clear parents and reparent 236 meshes to YT2-HA_______ without moving geometry","nativeSession":false,"timeoutMs":180000,"sourcePaths":["web/app/src/app/App.tsx","web/app/src/app/model-convert-client.ts","web/app/src/workers/model-convert.worker.ts","web/app/src/vendor/assimp/assimpjs.js","web/app/src/engine-client/WebEngineClient.ts","blender-5.2.0/source/blender/web_engine/web_engine_api.cpp","blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp","blender-5.2.0/source/blender/web_engine/web_engine_decimate.cpp","tools/web/generate-collada-fixtures.py","blender-5.2.0/tests/python/batch_import.py"],"remainingGates":["Single-feature case; see docs/status/WBV2-COLLADA-001.md for the memory fix and remaining gaps"],"fixtures":[{"kind":"source","path":"web/tests/fixtures/collada/yt2-imported.blend","spec":"tests/e2e/collada-model-pipeline.spec.ts","grep":"COLLADA hierarchy reparents","scope":["Clear parents and reparent 236 meshes to YT2-HA_______ without moving geometry"]}],"sourceSuite":"blender-5.2.0/tests/python/batch_import.py"}
|
||||
1
tools/web/workflow-cases/collada-import.json
Normal file
1
tools/web/workflow-cases/collada-import.json
Normal file
@@ -0,0 +1 @@
|
||||
{"schemaVersion":1,"batchId":"B3","workflow":"COLLADA single feature: Import doc2/YT2.dae: 238 objects / 236 meshes / 133,926 tris / hierarchy / bounds","nativeSession":false,"timeoutMs":180000,"sourcePaths":["web/app/src/app/App.tsx","web/app/src/app/model-convert-client.ts","web/app/src/workers/model-convert.worker.ts","web/app/src/vendor/assimp/assimpjs.js","web/app/src/engine-client/WebEngineClient.ts","blender-5.2.0/source/blender/web_engine/web_engine_api.cpp","blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp","blender-5.2.0/source/blender/web_engine/web_engine_decimate.cpp","tools/web/generate-collada-fixtures.py","blender-5.2.0/tests/python/batch_import.py"],"remainingGates":["Single-feature case; see docs/status/WBV2-COLLADA-001.md for the memory fix and remaining gaps"],"fixtures":[{"kind":"source","path":"web/tests/fixtures/collada/yt2-imported.blend","spec":"tests/e2e/collada-model-pipeline.spec.ts","grep":"COLLADA import assembles","scope":["Import doc2/YT2.dae: 238 objects / 236 meshes / 133,926 tris / hierarchy / bounds"]}],"sourceSuite":"blender-5.2.0/tests/python/batch_import.py"}
|
||||
1
tools/web/workflow-cases/collada-material.json
Normal file
1
tools/web/workflow-cases/collada-material.json
Normal file
@@ -0,0 +1 @@
|
||||
{"schemaVersion":1,"batchId":"B3","workflow":"COLLADA single feature: Assign one material to every mesh mesh-data slot","nativeSession":false,"timeoutMs":180000,"sourcePaths":["web/app/src/app/App.tsx","web/app/src/app/model-convert-client.ts","web/app/src/workers/model-convert.worker.ts","web/app/src/vendor/assimp/assimpjs.js","web/app/src/engine-client/WebEngineClient.ts","blender-5.2.0/source/blender/web_engine/web_engine_api.cpp","blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp","blender-5.2.0/source/blender/web_engine/web_engine_decimate.cpp","tools/web/generate-collada-fixtures.py","blender-5.2.0/tests/python/batch_import.py"],"remainingGates":["Single-feature case; see docs/status/WBV2-COLLADA-001.md for the memory fix and remaining gaps"],"fixtures":[{"kind":"source","path":"web/tests/fixtures/collada/yt2-imported.blend","spec":"tests/e2e/collada-model-pipeline.spec.ts","grep":"COLLADA material assignment","scope":["Assign one material to every mesh mesh-data slot"]}],"sourceSuite":"blender-5.2.0/tests/python/batch_import.py"}
|
||||
1
tools/web/workflow-cases/collada-model-pipeline.json
Normal file
1
tools/web/workflow-cases/collada-model-pipeline.json
Normal file
@@ -0,0 +1 @@
|
||||
{"schemaVersion":1,"batchId":"B3","workflow":"COLLADA import through assimpjs -> native glTF assembly -> hierarchy -> set origin -> decimate -> material -> native glTF 2.0 export","nativeSession":false,"timeoutMs":900000,"sourcePaths":["web/app/src/app/App.tsx","web/app/src/app/model-convert-client.ts","web/app/src/workers/model-convert.worker.ts","web/app/src/vendor/assimp/assimpjs.js","web/app/src/engine-client/WebEngineClient.ts","blender-5.2.0/source/blender/web_engine/web_engine_api.cpp","blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp","blender-5.2.0/source/blender/web_engine/web_engine_decimate.cpp","blender-5.2.0/source/blender/editors/object/object_transform.cc","tools/web/generate-collada-fixtures.py"],"remainingGates":["COLLADA unit/up-axis parity is asserted against computed DAE bounds, not a desktop Collada oracle (Blender 5.2 has no COLLADA importer)","Native decimate totals compared with the pre-import triangle count, not a desktop replay","Origin median verified against the arithmetic vertex mean used by desktop ORIGIN_GEOMETRY","Native GLB export round-trips through the native glTF importer"],"fixtures":[{"kind":"minimal","path":"blender-5.2.0/tests/files/io_tests/empty.blend","spec":"tests/e2e/collada-model-pipeline.spec.ts","grep":"YT2.dae imports","scope":["COLLADA import through assimpjs and native GLB assembly","hierarchy clear/re-parent round-trip","origin to geometry median","batch decimate over selected meshes","batch material assignment","native glTF 2.0 export download","save/reopen and GLB re-import","truncated COLLADA rejection without Main mutation"]},{"kind":"production","path":"blender-5.2.0/tests/files/web/basic_scene.blend","spec":"tests/e2e/collada-model-pipeline.spec.ts","grep":"YT2.dae imports","scope":["production COLLADA asset doc2/YT2.dae","full six-step workflow","native export round-trip"]}]}
|
||||
1
tools/web/workflow-cases/collada-negative.json
Normal file
1
tools/web/workflow-cases/collada-negative.json
Normal file
@@ -0,0 +1 @@
|
||||
{"schemaVersion":1,"batchId":"B3","workflow":"COLLADA single feature: Truncated COLLADA is rejected without mutating Main or history","nativeSession":false,"timeoutMs":180000,"sourcePaths":["web/app/src/app/App.tsx","web/app/src/app/model-convert-client.ts","web/app/src/workers/model-convert.worker.ts","web/app/src/vendor/assimp/assimpjs.js","web/app/src/engine-client/WebEngineClient.ts","blender-5.2.0/source/blender/web_engine/web_engine_api.cpp","blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp","blender-5.2.0/source/blender/web_engine/web_engine_decimate.cpp","tools/web/generate-collada-fixtures.py","blender-5.2.0/tests/python/batch_import.py"],"remainingGates":["Single-feature case; see docs/status/WBV2-COLLADA-001.md for the memory fix and remaining gaps"],"fixtures":[{"kind":"source","path":"web/tests/fixtures/collada/yt2-imported.blend","spec":"tests/e2e/collada-model-pipeline.spec.ts","grep":"COLLADA truncated input","scope":["Truncated COLLADA is rejected without mutating Main or history"]}],"sourceSuite":"blender-5.2.0/tests/python/batch_import.py"}
|
||||
1
tools/web/workflow-cases/collada-opfs.json
Normal file
1
tools/web/workflow-cases/collada-opfs.json
Normal file
@@ -0,0 +1 @@
|
||||
{"schemaVersion":1,"batchId":"B3","workflow":"COLLADA single feature: Save through the OPFS entry and reopen from the recent-project list","nativeSession":false,"timeoutMs":180000,"sourcePaths":["web/app/src/app/App.tsx","web/app/src/app/model-convert-client.ts","web/app/src/workers/model-convert.worker.ts","web/app/src/vendor/assimp/assimpjs.js","web/app/src/engine-client/WebEngineClient.ts","blender-5.2.0/source/blender/web_engine/web_engine_api.cpp","blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp","blender-5.2.0/source/blender/web_engine/web_engine_decimate.cpp","tools/web/generate-collada-fixtures.py","blender-5.2.0/tests/python/batch_import.py"],"remainingGates":["Single-feature case; see docs/status/WBV2-COLLADA-001.md for the memory fix and remaining gaps"],"fixtures":[{"kind":"source","path":"web/tests/fixtures/collada/yt2-imported.blend","spec":"tests/e2e/collada-model-pipeline.spec.ts","grep":"COLLADA saves to OPFS","scope":["Save through the OPFS entry and reopen from the recent-project list"]}],"sourceSuite":"blender-5.2.0/tests/python/batch_import.py"}
|
||||
1
tools/web/workflow-cases/collada-origin.json
Normal file
1
tools/web/workflow-cases/collada-origin.json
Normal file
@@ -0,0 +1 @@
|
||||
{"schemaVersion":1,"batchId":"B3","workflow":"COLLADA single feature: Set origin to geometry (median) for all meshes; world bounds unchanged","nativeSession":false,"timeoutMs":180000,"sourcePaths":["web/app/src/app/App.tsx","web/app/src/app/model-convert-client.ts","web/app/src/workers/model-convert.worker.ts","web/app/src/vendor/assimp/assimpjs.js","web/app/src/engine-client/WebEngineClient.ts","blender-5.2.0/source/blender/web_engine/web_engine_api.cpp","blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp","blender-5.2.0/source/blender/web_engine/web_engine_decimate.cpp","tools/web/generate-collada-fixtures.py","blender-5.2.0/tests/python/batch_import.py"],"remainingGates":["Single-feature case; see docs/status/WBV2-COLLADA-001.md for the memory fix and remaining gaps"],"fixtures":[{"kind":"source","path":"web/tests/fixtures/collada/yt2-imported.blend","spec":"tests/e2e/collada-model-pipeline.spec.ts","grep":"COLLADA origin uses","scope":["Set origin to geometry (median) for all meshes; world bounds unchanged"]}],"sourceSuite":"blender-5.2.0/tests/python/batch_import.py"}
|
||||
1
tools/web/workflow-cases/collada-undo.json
Normal file
1
tools/web/workflow-cases/collada-undo.json
Normal file
@@ -0,0 +1 @@
|
||||
{"schemaVersion":1,"batchId":"B3","workflow":"COLLADA single feature: origin edits restore through native undo and redo","nativeSession":false,"timeoutMs":180000,"sourcePaths":["web/app/src/app/App.tsx","web/app/src/engine-client/WebEngineClient.ts","blender-5.2.0/source/blender/web_engine/web_engine_api.cpp","blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp","blender-5.2.0/tests/python/batch_import.py"],"remainingGates":["Single-feature case; history rebuild-from-Main path"],"fixtures":[{"kind":"source","path":"web/tests/fixtures/collada/yt2-imported.blend","spec":"tests/e2e/collada-model-pipeline.spec.ts","grep":"COLLADA edits undo","scope":["Origin edits restore through native undo and redo"]}],"sourceSuite":"blender-5.2.0/tests/python/batch_import.py"}
|
||||
Reference in New Issue
Block a user