- 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>
160 lines
4.3 KiB
JSON
160 lines
4.3 KiB
JSON
{
|
||
"schemaVersion": 1,
|
||
"id": "ch32",
|
||
"number": 32,
|
||
"part": "part-g",
|
||
"title": "实战案例:给猴头赋材质",
|
||
"level": "实战",
|
||
"workspace": "Rendering",
|
||
"minutes": 8,
|
||
"summary": "把猴头 GLB 导入工程,在 Shading 工作区的 PBR 资产库里选中材质并分配到材质槽,最后核对槽位与状态栏结果。",
|
||
"objectives": [
|
||
"导入猴头 GLB",
|
||
"在大纲树选中对象",
|
||
"在资产库里选中材质",
|
||
"分配到材质槽并核对结果"
|
||
],
|
||
"setup": {
|
||
"fixture": "/teach/fixtures/basic-scene.blend",
|
||
"workspace": "Layout",
|
||
"manual": "/tutorial/pbr/render-lesson.html"
|
||
},
|
||
"steps": [
|
||
{
|
||
"id": "ch32-s1",
|
||
"title": "导入猴头 GLB",
|
||
"text": "顶栏「打开 .blend」的文件入口同样接受 GLB:导入会把猴头追加到当前场景,而不是新建工程。",
|
||
"hint": "GLB 只带几何和对象名,没带材质,所以要自己赋材质。",
|
||
"target": {
|
||
"role": "button",
|
||
"name": "打开 .blend"
|
||
},
|
||
"checks": [
|
||
{
|
||
"kind": "text",
|
||
"target": {
|
||
"testid": "scene-stats"
|
||
},
|
||
"matches": "Objects 4",
|
||
"label": "场景对象数变成 4(原 3 + 猴头)"
|
||
},
|
||
{
|
||
"kind": "scene",
|
||
"object": "Suzanne",
|
||
"label": "大纲树出现 Suzanne(猴头)"
|
||
}
|
||
],
|
||
"demo": [
|
||
{
|
||
"kind": "importFile",
|
||
"url": "/teach/fixtures/monkey-head.glb",
|
||
"fileName": "monkey-head.glb"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "ch32-s2",
|
||
"title": "在大纲树选中 Suzanne",
|
||
"text": "赋材质的目标是「当前活动对象」,所以先在大纲树里点一下 Suzanne。",
|
||
"target": {
|
||
"role": "treeitem",
|
||
"name": "Suzanne"
|
||
},
|
||
"checks": [
|
||
{
|
||
"kind": "text",
|
||
"target": {
|
||
"testid": "scene-stats"
|
||
},
|
||
"matches": "Active Suzanne",
|
||
"label": "Suzanne 成为活动对象"
|
||
}
|
||
],
|
||
"demo": [
|
||
{
|
||
"kind": "click",
|
||
"target": {
|
||
"role": "treeitem",
|
||
"name": "Suzanne"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "ch32-s3",
|
||
"title": "切到 Shading 查看资产库",
|
||
"text": "切到 Shading 工作区:左侧是 PBR 资产库,标题行会显示当前对象和材质槽号。",
|
||
"target": {
|
||
"role": "button",
|
||
"name": "Shading"
|
||
},
|
||
"checks": [
|
||
{
|
||
"kind": "scene",
|
||
"workspace": "Shading",
|
||
"label": "当前工作区是 Shading"
|
||
},
|
||
{
|
||
"kind": "text",
|
||
"target": {
|
||
"css": ".pbr-asset-meta"
|
||
},
|
||
"matches": "Suzanne",
|
||
"label": "资产库面板显示当前对象是 Suzanne"
|
||
}
|
||
],
|
||
"demo": [
|
||
{
|
||
"kind": "click",
|
||
"target": {
|
||
"role": "button",
|
||
"name": "Shading"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "ch32-s4",
|
||
"title": "选中材质并分配到材质槽",
|
||
"text": "单击卡片只是选中,双击(或选中后点页脚的「分配到材质槽」)才会真正写进当前对象的材质槽;属性编辑器的「材质」页能看到槽里的材质名,状态栏也会回报结果。",
|
||
"target": {
|
||
"role": "listitem",
|
||
"name": "PBR Metal Brushed"
|
||
},
|
||
"checks": [
|
||
{
|
||
"kind": "value",
|
||
"target": {
|
||
"css": "[data-testid=\"material-slots-section\"] select[aria-label^=\"材质槽\"]"
|
||
},
|
||
"matches": "^material:PBR Metal Brushed",
|
||
"label": "材质槽里是 PBR Metal Brushed"
|
||
},
|
||
{
|
||
"kind": "text",
|
||
"target": {
|
||
"testid": "engine-status"
|
||
},
|
||
"matches": "PBR 材质:PBR Metal Brushed 已分配到槽 \\d+",
|
||
"label": "状态栏回报已分配"
|
||
}
|
||
],
|
||
"demo": [
|
||
{
|
||
"kind": "click",
|
||
"target": {
|
||
"css": ".area-frame.properties-area button[title=\"材质属性\"]"
|
||
}
|
||
},
|
||
{
|
||
"kind": "dblclick",
|
||
"target": {
|
||
"role": "listitem",
|
||
"name": "PBR Metal Brushed"
|
||
}
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|