作者整理了一套结合大模型与开源工具的游戏植被工作流,提供了从建模到优化的具体方法。
我并没有为这其中的任何一片叶子进行建模。
opus 5.5 在 Blender 中用纯 Python 代码编写了全部 16 种植物。没有 Meshy,没有图像转 3D,也没有手工建模。
每种植物都分配了三角面预算:一簇草是 416 个三角面,罂粟花是 652 个,向日葵是 1056 个。然后,同样的植物填充了整个草地。
以下是 13 个免费仓库,用于使用 Claude 构建可用于游戏的环境植被:
CLAUDE x 引擎
01 / Blender MCP → Claude 驱动 Blender:构建、检查和编辑场景
http://github.com/ahujasid/blender-mcp
02 / Unity MCP → Claude 进入 Unity 编辑器:资产、场景、脚本
http://github.com/CoplayDev/unity-mcp
03 / Godot MCP → 启动编辑器,运行项目,读取调试输出
http://github.com/Coding-Solo/godot-mcp
树木
04 / tree-gen → 在 Blender 内部生成程序化树木模型
http://github.com/friggog/tree-gen
05 / EZ-Tree → three.js 中的程序化树木生成器
http://github.com/dgreenheck/ez-tree
绘制与散布
06 / Proton Scatter → 在 Godot 中用植物和道具填充区域
http://github.com/HungryProton/scatter
07 / Spatial Gardener → 在 Godot 中将植物绘制到任意 3D 表面上
http://github.com/dreadpon/godot_spatial_gardener
08 / Unity Grass Instancer → 具有遮挡和视锥剔除功能的 GPU 实例化草地
http://github.com/MangoButtermilch/Unity-Grass-Instancer
优化与发布
09 / meshoptimizer → 更小、更快的网格,为你的 LOD 提供简化功能
http://github.com/zeux/meshoptimizer
10 / trimesh → 在 Python 中加载并检查任意网格
http://github.com/mikedh/trimesh
11 / glTF-Blender-IO → Blender 的 glTF 导出器,通往任何引擎的干净途径
http://github.com/KhronosGroup/glTF-Blender-IO
纹理
12 / Material Maker → 基于 Godot 构建的程序化纹理和模型绘制
http://github.com/RodZill4/material-maker
13 / ArmorTools → ArmorPaint 的家园,直接在网格上绘制纹理
http://github.com/armory3d/armortools
成功的关键在于:为每种植物设定三角面预算,使用一个包含粘土、线框和风遮罩通道的着色器来检查每一株植物,以及按区域进行散布而非手工放置植物。
植物 → 预算 → 检查 → 散布 → 风 → 引擎
在你下次构建之前收藏此帖,并查看下面的完整指南 ↓
https://x.com/i/article/2114332375387623425在 X 查看被引用的帖子
来源:noonez · x.com