问题描述
距离 Ken Perlin 首次发明他的噪音已经 20 多年了.有没有人设法制作出一种更快的 3D 噪声生成器,其特性接近 Perlin(程序化、看起来自然的分组、减少的条带、常规特征尺寸等)?
It's been well over 20 years since Ken Perlin first invented his noise. Has anybody managed to make a faster kind of 3D noise generator with properties close to Perlin's (procedural, natural-looking grouping, reduced banding, regular feature size, etc)?
我正在尝试构建一个程序世界生成器,但目前 Perlin 并没有削减它.我承认我的实现并不是目前最好的,但如果我要重写它,我想知道是否有更好的算法可用.
I'm trying to build a procedural world generator but currently Perlin just isn't cutting it. I admit my implementation isn't the best it could be right now, but if I'm about to rewrite it anyway I wondered if there was a better algorithm available.
推荐答案
你想要 Simplex Noise.
- 计算成本更低
- 不是基于方形网格,所以没有明显的方向性伪影
- 更好地扩展到更高维度:O(N^2) 与经典 Perlin 的 O(2^N) 对 N 维
这里有一个很好的解释.显然,Ken Perlin 的示例实现并不是最容易理解的代码.
There's a good explanation here. Apparently Ken Perlin's example implementation is not the most easy to understand code.
这篇关于最快的类似柏林的 3D 噪声算法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!