This is a clean, fast, modern and free Perlin Simplex noise function.
If we change float to double it could be even faster but there is no double type in Blueprint
All Public Functions are BlueprintCallable so they can be used in every blueprint
From DevDad and Dedicated to you and Unreal Community. Code is now under MIT License, Use it free for what ever you want. I only request that you mention me in the credits for your game in the way that feels most appropriate to you.
SimplexNoise 1D,2D,3D & 4D
Scaled Version SimplexNoise 1D,2D,3D & 4D
InRange version SimplexNoise 1D,2D,3D & 4D
SimplexNoise Function retruns float value between 0 - 1
SimplexNoise Scaled retruns float value between 0 - scale factor
SimplexNoise In Range returns float value between minRange - maxRange
inFactor value added to all functions to set frequency of the noise [ Recomended values form: 0.1 - 0.00001 ]
GetSimpleNoise1D_EX (float x, float lacunarity, float persistance, int octaves, float inFactor, bool ZeroToOne)
GetSimpleNoise2D_EX (float x, float y, float lacunarity, float persistance, int octaves, float inFactor, bool ZeroToOne)
GetSimpleNoise3D_EX (float x, float y, float z, float lacunarity, float persistance, int octaves, float inFactor, bool ZeroToOne)
GetSimpleNoise4D_EX (float x, float y, float z, float w, float lacunarity, float persistance, int octaves, float inFactor, bool ZeroToOne)
This algorithm was originally designed by Ken Perlin, but my code has been adapted and extended from the implementation written by Stefan Gustavson (stegu@itn.liu.se) and modified to fit to Unreal Engine 4
这是一个简洁、快速、现代和免费的 Perlin Simplex 噪声函数。
如果将浮点数改为双倍数,速度会更快,但蓝图中没有双倍数类型。
所有公共函数均可在蓝图中调用,因此可在每个蓝图中使用。
来自DevDad,献给您和虚幻社区。代码现在采用 MIT 许可,您可以免费使用。我只要求您在游戏的功劳簿中以您认为最合适的方式提到我。
|