在Blender3D中生成随机地形 [英] Generating random terrain in Blender3D
问题描述
我尝试在Google中找到一个Python脚本,该脚本会在游戏开始时(或每次玩家前进到新场景时)生成随机地形,但是我发现的所有工具都是用于创建地形来渲染它的,而不是游戏模式.
I tried finding a python script in google that will generate a random terrain when the game starts (or each time a the player advances to a new scene) but all the tools I found are for creating a terrain to render it, not for the game mode.
有人知道如何/在哪里找到一个人吗?
Any idea how/where to find one?
(我假设由于Blender3D具有游戏编程功能,所以有人可以在SO中提问)
(I'm assuming that since Blender3D has game programming capabilities, it is OK for someone to ask in SO)
推荐答案
此链接相关吗?
http://blenderartists.org/forum/showthread.php?t=77794
要生成地形(高度图),该算法非常简单(分形等离子体),类似于此算法(Java):
To generate terrain (height map) the algorithm is pretty simple (fractal plasma), something like this algorithm (Java):
http://www.sinc.stonybrook.edu/stu/jseyster/等离子/
如果您在Google上搜索等离子python",则可能会找到一些示例代码.
If you Google search for "fractal plasma python" you might find some example code.
这篇关于在Blender3D中生成随机地形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!