Refactor Cesium material export contract

This commit is contained in:
que01 committed 2026-08-03 11:52:38 +08:00
1 parent 50dc5f4e5a
commit 0635c09458
16 files changed
+583 -95

No files matched your search

+5 -2
View File
@@ -21,7 +21,8 @@
- [ ] 改 `scripts/lib/scene-layers.js:15` 的 `SCENE_LAYERS`
- [ ] 改 `blender/osmassets/catalog.py:28` 的 `ROAD_LAYERS` 或 `catalog.py:56` 的 `MATERIALS`
- [ ] 改 `blender/export_cesium.py:68` 等四张按材质名字符串匹配的覆盖表
- [ ] 改 `catalog.MATERIALS[*]["cesium"]`、`material["cesium_export"]` 或
`export_cesium.py` 的旧材质名回退表
- [ ] 改 `build-area.js:74` 的 `normalizeAreaConfig()` 或 `config/examples/template.json`
- [ ] 改任何 `execFileSync` / `spawnSync` 调起的脚本或参数
- [ ] 改 `SCENE_DONE` / `CESIUM_EXPORT_DONE` 的 stdout 标记
@@ -54,7 +55,9 @@ grep -rn "要改的值" scripts blender config
本仓库跨 JS、Blender Python、浏览器 JS 和 JSON,很多连接靠字符串或文件名约定。
例如 `scene-layers.js` 与 `catalog.py` 只靠 `id` 集合和顺序对账;
`generate_scene.py` 与 `export_cesium.py` 的材质覆盖目前靠材质名字符串,没有自动校验。
`generate_scene.py` 与 `export_cesium.py` 的新材质导出契约靠 `.blend` 里的
`material["cesium_export"]` 自定义属性,旧 `.blend` 仍靠 `export_cesium.py`
的材质名回退表。
---