问题描述
如何制作出更逼真地形的地形生成器?
我当前的生成器生成这种类型的地形:
How can I make a terrain generator that makes more realistic terrain?My current generator makes this type of terrain:
如何才能让它变成更真实的地形,如湖泊和河流?
how can I make it make more real terrain, like lakes and rivers?
推荐答案
基本上,您在生成的地形上定义并应用了一组过滤器。
Basically you define and apply a set of filters on your generated terrain.
我无法详细介绍但我会为你提供一些谷歌提示:
I can't go into full detail but I'll provide some hints for you to google:
- voronoi diagram
- 侵蚀过滤器
- perturbation
- ...
- voronoi diagrams
- erosion filters
- perturbation
- ...
对于河流你可以创建一个在光单元之间有细细暗线的voronoi图。你可以有一些从暗到亮的渐变,以实现平滑过渡。然后,您可以使用生成的地形多样化该图表,从而有效地降低这些线条的高度。加上地形的不规则形状,你可以获得一些非直线的原型 - 驱动器。
For rivers you could create a voronoi diagram that has thin dark lines between the light cells. You could have some gradient from dark to light for smooth transitions. Then you mulitply that diagram with your generated terrain effectively lowering hight along those lines. Together with the irregular shape of your terrain you could get some non-straight "proto"-rivers.
接下来你可以应用一个模拟雨水,水流和侵蚀的侵蚀过滤器来获得更加逼真和平滑的河流和湖泊。
Next you could apply an erosion filter that simulates rain, water flow and erosion to get more realistic and smooth rivers and lakes.
这应该可以帮到你。
有关更多信息,请,例如此页面:,或者用于水模拟(水文地质学):
For more information pay VTerrain.org a visit, for example this page: http://vterrain.org/Elevation/Artificial/, or this for water simulation (hydrogeology): http://vterrain.org/Water/index.html#Hydrogeology
这篇关于随机地形生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!