Difference between revisions of "PerlinNoise"

From Minetest Developer Wiki
Jump to navigation Jump to search
(Add UnofficialLua warning)
(rename minetest forums to luanti forums)
 
(One intermediate revision by the same user not shown)
Line 18: Line 18:
  
 
== 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 Luanti Forums thread: "minetest.get_perlin() and minetest.get_perlin_map() Return nil"]
 
* [http://web.archive.org/web/20160305194643/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]
Line 26: Line 26:
  
 
[[Category:Objects]]
 
[[Category:Objects]]
 
{{Incomplete}}
 

Latest revision as of 10:20, 25 October 2024

Mbox warning.png This page contains unofficial, low-quality Lua API documentation and is likely to be outdated or wrong. Do not rely on it!
For the official and up-to-date documentation, see Lua API Documentation.
Mbox warning.png This page has been proposed for deletion for the following reason: "Contains unofficial and potentially outdated, redundant and inconsistent Lua API information"
If you don't think that this page should be deleted, please explain why on the talk page.

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 ==TODO

See also


External Links