Files
workinf_Blender_Wasm/docs/tasks/WBV2-P1424-001-desktop-completion/DW23.md
mes123456 f3e21c6b98
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
chore: checkpoint web Blender migration source, tools and docs
Accumulated uncommitted work: GHOST Web backend, WebGL/GPU web layer,
web workflow engine and protocol, tooling, docs and task records.
Large generated evidence, user-testing archives, build snapshots and
imported test assets remain untracked.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-10 11:18:01 +08:00

2.8 KiB
Raw Blame History

DW23:Grease Pencil 绘制与动画

  • stage: animation-media
  • queueTask: WBV2-P1424-001;parent: WBV2-P1424-000;nextTask: null
  • 包状态:planned_gap_closure(并不表示已有源码尚未实现)
  • 完整交付依赖:DW08, DW11, DW20
  • 工作量级:XL;不表示日期承诺
  • validation: NOT_RUN;acceptance: NOT_CLAIMED

优先复用的十多天成果

GREASE-PENCIL-COVERAGE 和原生 grease-pencil 协议已有。

既有任务:GREASE-PENCIL-COVERAGE(记录为 implemented)。按需读取一个任务结果的 summary/remaining/ownedPaths,不打开完整产品报告。

先对照当前小范围源码和最新交接保留已实现子项;只有缺功能、缺接线或缺必要依赖才新增实现。历史状态不自动当作当前缺口。

操作者工作流与交付

绘制笔划 → 编辑层/材质/填充 → 修改器/变形 → 帧动画 → 输出

Grease Pencil 创作到动画输出的完整原生路由。

最小生产入口

  • web/protocol/grease-pencil.ts
  • web/protocol/paint.ts
  • web/protocol/animation-render-commands.ts
  • blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp
  • blender-5.2.0/source/blender/web_engine/web_engine_api.cpp
  • web/app/src/workers/web-engine.worker.ts
  • web/app/src/app/App.tsx

以上为聚焦入口,非要求全文加载。使用源码聚焦工具、精确 --source/--unit 和函数片段;接入新 operator 时追加其具体原生文件,单次最多 8 个精确源码文件。没有默认测试入口或要运行的 fixture;功能完成前不执行任何验证。

只补未完成部分

  1. 补齐笔划/点/层/frame 数据、绘制与橡皮/填充/编辑/雕刻/权重等源码现有模式。
  2. 压力/笔刷、材质、深度/遮挡、layer mask、onion skin 与原生 draw pipeline 真实接线。
  3. 2D/3D 放置、父级/约束、modifier 和几何操作接既有原生数据及统一几何出口。
  4. 动画帧、复制/插值和 Dope Sheet 与 DW20 共用,图像/视频输出接 DW18/DW24。
  5. 历史、取消、文件重开、GPU 资源和模式切换不丢笔划及材质关系。

失败边界

Canvas 上画线或只记录 stroke points 不等于 Grease Pencil 工作流移植。

实现交接与后续使用

交付前必须具有实际入口→原生执行→消费者/结果→错误/取消→适用 history/save 的生产代码。这里是实现交付条件,不运行验收;编译成功不能替代功能。旧的已完成子项可引用并保留,不能声称本轮重新实现。

用户使用阶段的场景(现在不执行):绘制多层动画,使用填充/洋葱皮/修改器,再合成到三维场景并保存。

每次记录保留成果、补齐断点、仍有缺口、必要构件与下一动作。共同规则见同目录 EXECUTION.md,首次领取时阅读;不要将完整计划作为后续执行上下文。