feat(web): studio worlds, camera-view/offscreen environment parity, material and undo coverage
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

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:
mes123456
2026-11-23 09:27:47 +08:00
parent f96654b158
commit 63db6caf1f
325 changed files with 20004 additions and 762 deletions

View 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"}

View 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"}

View File

@@ -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"}

View File

@@ -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"}

View File

@@ -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"}

View File

@@ -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"}

View 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"}

View 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"}

View 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"}

View 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"}

View 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"]}]}

View 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"}

View 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"}

View 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"}

View 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"}