查看: 1427|回复: 2
打印 上一主题 下一主题

[模型插件] 随机树干生成插件Procedural Tree

[复制链接]

436

主题

17

听众

4683

积分

中级设计师

Rank: 5Rank: 5

纳金币
1379
精华
9

最佳新人 活跃会员 热心会员 灌水之王 突出贡献 周年庆

跳转到指定楼层
楼主
发表于 2017-5-5 14:34:47 |只看该作者 |倒序浏览
Requires Unity 4.3.0 or higher.
Works on all Unity versions from 4.3 and 5.0.

Procedural Tree Generation Example Script. This asset package contains a simple, yet powerful, C# script that can generate countless different procedural trees.

The C# script is fully commented, and very easy to understand or modify. It’s a single MonoBehaviour class component that you can apply to any object to get a tree in your game. A single main Branch(…) recursive function generates all the mesh vertices.

The trees can be modified in the editor or in the game in real-time (growing, twisting … or dancing!). There’s a bunch of parameters you can modify to control the generation algorithm. Like the number of vertices, number of sides, radius properties, roundness, twisting, branching probability, etc. It’s also very easy to apply any Unity material to the trees.

The generated tree mesh will remain in your scene, and only ever be computed again if/when you change any generation parameters.

You can modify the source to add your own unique tree features. If you do, please share! ;-)

1.02 Error fixes update
1.00 First public release

Thank you!

1.jpg (76.53 KB, 下载次数: 288)

1.jpg

2.jpg (69.1 KB, 下载次数: 307)

2.jpg

3.jpg (87.08 KB, 下载次数: 325)

3.jpg

Procedural Tree.zip

1.18 MB, 阅读权限: 10, 下载次数: 36

分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

0

主题

2

听众

228

积分

设计实习生

Rank: 2

纳金币
33
精华
0

最佳新人

沙发
发表于 2017-10-20 12:45:59 |只看该作者
沙发  支持一下
回复

使用道具 举报

0

主题

1

听众

206

积分

设计实习生

Rank: 2

纳金币
3
精华
0
板凳
发表于 2017-11-2 12:41:03 |只看该作者
支持一下,谢谢分享
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

手机版|纳金网 ( 闽ICP备08008928号

GMT+8, 2024-6-8 20:00 , Processed in 0.087086 second(s), 34 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部