Difference between revisions of "PerlinNoise"

From Minetest Developer Wiki
Jump to navigation Jump to search
(→‎External Links: fix broken link)
Line 19: Line 19:
 
== External Links ==
 
== External Links ==
 
* [https://forum.minetest.net/viewtopic.php?f=6&t=8157 Minetest forum thread: "minetest.get_perlin() and minetest.get_perlin_map() Return nil"]
 
* [https://forum.minetest.net/viewtopic.php?f=6&t=8157 Minetest forum thread: "minetest.get_perlin() and minetest.get_perlin_map() Return nil"]
* [http://freespace.virgin.net/hugo.elias/models/m_perlin.htm Explanation of perlin noise]
+
* [http://web.archive.org/web/20160305194643/http://freespace.virgin.net/hugo.elias/models/m_perlin.htm Explanation of perlin noise]
 
* [http://webstaff.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf Explanation of perlin noise and simplex noise]
 
* [http://webstaff.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf Explanation of perlin noise and simplex noise]
 
* [https://forum.minetest.net/viewtopic.php?id=4032 Perlin noise values exceed [-1; 1]]
 
* [https://forum.minetest.net/viewtopic.php?id=4032 Perlin noise values exceed [-1; 1]]

Revision as of 10:06, 10 September 2016

A perlin noise generator. Can be created either via PerlinNoise(seed, octaves, persistence, scale) or minetest.get_perlin(seeddiff, octaves, persistence, scale). Note that PerlinNoiseMap works faster.

Methods

  • get2d(pos) — 2d noise value at pos={x=,y=}
  • get3d(pos) — 3d noise value at pos={x=,y=,z=}


Examples

See VoxelManip example

See also


External Links