gpt4 book ai didi

java - 借助马尔可夫链理论生成无限直线

转载 作者:塔克拉玛干 更新时间:2023-11-03 03:53:31 27 4
gpt4 key购买 nike

<分区>

现在让我更好地解释一下我的问题(请重新打开这个问题)。在考虑生成程序线来构建地形的方法时,我听说了马尔可夫链理论。

The main thing that's generated is the map which can extend to infinity. At first I've built a demo with perlin-based procedural maps having a lot of various terrain features. It was even meant to be isometric, more like Sentinel. This proved to be too confusing to play on with the movement mechanics I had in mind. I had to reduce it to a much simpler tile based system. It's not only easier to grasp and navigate but it's looking a lot better too.

The map is generated using the Markov chain. The algorithm is fed a short human made terrain sequence. It then goes on and produce a map of any size mimicking the structure of the input.

因此,示例视觉输出可能如下图所示

enter image description here

实际上我经历过类似的事情,在引文中以这样的随机行结束:

enter image description here

因此,我没有使用这条随机线,而是寻找一种解决方案,从第一张图片创建小峡谷。第一次读到马尔可夫链时,我觉得哇,以人工制作的线作为输入并让算法继续进行,听起来很棒。

那么马尔可夫链理论实际上如何帮助创造这种地形?如果您认为有更好的方法,请提出建议。

The map is generated using the Markov chain.

...让我感到困惑,我认为他们实际上是一个马尔可夫链算法。

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com