Files
workinf_Blender_Wasm/docs/status/N-019.md

37 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# N-019 灯光与渲染
状态:`BLOCKED`Camera/Light/World/Scene metadata、Camera/Light/World 有界 Main 写回与
Three exposure/shadow 映射已落地Scene 颜色管理 writer 和渲染等价未实现)
## 已验证切片
1. N-019-A部分Camera 区分 Perspective/Orthographic/Panoramic/Custom读取 sensor、
shift、clip、panorama 和 DOFLight 读取 energy/exposure/temperature/shadow/shapeWorld
读取环境、exposure 和 mistScene 读取 render engine、display/view/look/exposure/gamma/白平衡。
2. N-019-A部分Light 与 World 使用严格属性白名单写入真实 Main覆盖 color、energy、
exposure、temperature、shadow、World color/mist已通过 undo/redo 与 save/reopen。
3. N-019-B部分主线程和 OffscreenCanvas renderer 都优先使用 Scene color-management
exposureWorld exposure 仅作旧数据回退Light exposure 转换为强度,`castsShadow:false`
不再被 Three 强制打开。
4. 白平衡读取有完整性门Main Light/World 重写若导致 Blender 5.2 tint 序列化为异常近零值,
不暴露垃圾数值而返回 `whiteBalanceStatus: BLOCKED`
5. Camera 严格白名单写回覆盖 Perspective/Orthographic、lens/sensor/sensor fit、shift、clip、
ortho scale 和 DOF enable/focus distance/f-stop/blades/rotation/rationear/far 与范围在修改前
拒绝,已通过 undo/redo 和 save/reopen。
## 仍然阻断
- N-019-AScene color-management writer直接 DNA 写入会破坏 white balance必须改接
Blender/RNA 颜色管理 API 后才能开放。Camera writer 已完成。
- N-019-B/CAgX/Standard/Raw 的视觉等价、temperature 颜色、Area spread、Mist、DOF、
transparent sorting、probe 和高级 shadow 参数。
- N-019-DCycles/Freestyle/denoise 服务端 job 协议与结果 hash。
- N-019-Edesktop/Chromium 像素 golden、设备丢失和 1M triangles。
## 验收
```bash
npm --prefix web run test:lighting-roundtrip
WEB_TEST_PORT=5319 npm --prefix web run test:e2e -- --grep "N-019 Scene exposure"
```