Files
workinf_Blender_Wasm/web/app/public/teach/lessons/ch26.json
mes123456 c47fa79102
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
feat(web): viewport transform parity — offscreen backend, per-island pivots, ortho sizing
- Offscreen worker backend publishes the camera probe, so the G/R/S modal's
  pointer basis, transform gizmo and wireframe work on both renderers.
- Edit-mode INDIVIDUAL_ORIGINS pivots every connected island on its own centre,
  committed as one grouped transaction (T(P)·R·S·T(-P) in object space).
- Gizmo hits carry the pivot index; orthographic views size the axes from the
  visible world height instead of the 45° fov fallback.
- View-menu navigation no longer switches workspace when a viewport is already
  on screen (the engine workspace transaction dropped the editor out of Edit).
- Modal commits queue behind the shared command tail, so a trailing
  editEditorContext cannot consume the user's first Ctrl+Z.
- Floating sidebar rotation field confirmed in degrees; headed cases for the
  offscreen path, per-island pivots and the sidebar unit, plus receipts/docs.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 07:48:17 +08:00

94 lines
2.3 KiB
JSON

{
"schemaVersion": 1,
"id": "ch26",
"number": 26,
"part": "part-e",
"title": "WASM 内嵌渲染与导出",
"level": "进阶",
"workspace": "Rendering",
"minutes": 7,
"summary": "默认入口就是 WASM 内嵌:引擎完全在浏览器里运行;桌面画布与 Web 业务工具可以来回切换。",
"objectives": [
"找到 WASM 状态",
"打开桌面通路",
"确认可切回 Web 业务工具"
],
"setup": {
"workspace": "Rendering",
"entry": "native"
},
"steps": [
{
"id": "ch26-s1",
"title": "确认 WASM 已就绪",
"text": "底部状态栏的 WASM 状态显示内嵌引擎的就绪情况,全程不需要服务端。",
"target": {
"testid": "wasm-status"
},
"checks": [
{
"kind": "exists",
"target": {
"testid": "wasm-status"
},
"label": "WASM 状态可见"
}
]
},
{
"id": "ch26-s2",
"title": "打开 Blender 桌面画布",
"text": "点击「Blender 桌面」,切换到原生面板所在的区域。",
"target": {
"css": "button[title=\"Blender 桌面\"]"
},
"checks": [
{
"kind": "attr",
"target": {
"css": "section[aria-label=\"Blender 桌面\"]"
},
"attribute": "data-native-canvas-open",
"equals": "true",
"label": "桌面画布已打开"
}
],
"demo": [
{
"kind": "click",
"target": {
"css": "button[title=\"Blender 桌面\"]"
}
}
]
},
{
"id": "ch26-s3",
"title": "切回 Web 业务工具",
"text": "「Web 业务工具」把画布交还给网页业务界面;两条通路共享同一份场景与 OPFS 工程。",
"target": {
"testid": "native-web-tools-toggle"
},
"checks": [
{
"kind": "attr",
"target": {
"css": "section[aria-label=\"Blender 桌面\"]"
},
"attribute": "data-native-canvas-open",
"equals": "false",
"label": "已切回 Web 业务工具"
}
],
"demo": [
{
"kind": "click",
"target": {
"testid": "native-web-tools-toggle"
}
}
]
}
]
}