Files
osmWorkflow/.trellis/tasks/archive/2026-08/08-05-lowpoly-cars-assets/implement.md

28 lines
1.5 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.
# 实施计划LowPoly Cars 资产库
1.`blender/tools/` 增加可重复执行的拆分/导出工具,读取指定 `.blend`,枚举命名 Empty
根节点bake 变换、规范化坐标并分别导出车辆。
2. 让工具生成共享贴图目录、逐车 glTF/bin、缩略图、manifest 与静态图库 HTML输出排序必须
按稳定 ID避免重复运行产生无关差异。
3. 为导出结果提供轻量结构检查:验证 manifest 路径存在、ID 唯一、几何指标为正、模型和缩略图
可读取;对源根节点与导出条目数量做对账。
4. 在沙箱外运行导出与缩略图渲染,目检图库中的普通车、卡车和拖拉机,核对朝向、落地与比例。
5. 运行 Python/Node 语法检查和现有 preview 测试,确认不触及 `vehicle-model.js`、路线 JSON 或
Cesium 默认预览;记录验证结果。
6. 验收后提交资产库、工具、来源说明与必要的代码规范;不改当前默认巡航模型。
## 验证
```bash
blender --factory-startup --background --python blender/tools/<tool>.py -- --source <blend> --output assets/models/custom/lowpoly_cars
python3 blender/tools/<tool>.py --verify assets/models/custom/lowpoly_cars
node --check scripts/lib/vehicle-model.js
npm run test:preview-assets
git diff --check
```
## 回滚
本任务只新增独立资产库和工具。若某项导出或方向不合格,删除该新增目录和工具即可;当前区域
构建和 Cesium 预览没有依赖它们。