Use lightweight natural tree rendering
This commit is contained in:
@@ -11,10 +11,12 @@
|
||||
--osm "/path/to/input.osm" \
|
||||
--geojson "/path/to/osm2streets_web_out" \
|
||||
--output "/path/to/output.blend" \
|
||||
--render "/path/to/preview.png"
|
||||
--render "/path/to/preview.png" \
|
||||
--tree-style natural
|
||||
```
|
||||
|
||||
`--geojson` 为可选参数。不提供时,道路使用简单的 OSM highway 折线,而非详细 osm2streets 几何。
|
||||
`--tree-style` 可选 `natural` 或 `procedural`。默认 `natural` 使用低面数树干和多层不规则树冠,形态比球形程序化树冠更自然,渲染也比外部 OBJ 树模型轻;`procedural` 最轻但更卡通。
|
||||
|
||||
使用 `--office-overrides` 指定一组 OSM way ID(逗号分隔),这些建筑将渲染为办公楼风格,即使其 OSM 标签为 `building=industrial`:
|
||||
|
||||
@@ -25,7 +27,7 @@
|
||||
### 说明
|
||||
|
||||
- OSM `bounds` 元素定义场景范围(排除远处的地铁等关系成员)
|
||||
- `natural=tree` 节点 → 独立树木(程序化或模型树冠)
|
||||
- `natural=tree` 节点 → 独立树木(默认低面数自然树冠)
|
||||
- `natural=tree_row` 路径 → 沿路径均匀分布的树木
|
||||
- `landuse=grass` → 绿色地面
|
||||
- `natural=scrub` → 低矮灌木丛
|
||||
@@ -63,4 +65,4 @@ GLB 使用以 OSM bounds 中心为原点的局部 ENU 坐标系(X 东,Y 北
|
||||
```bash
|
||||
cd /path/to/output
|
||||
python3 -m http.server 8765
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user