PerlinNoiseMap

From Minetest Developer Wiki
Revision as of 18:28, 6 May 2014 by Hybrid Dog (talk | contribs) (Created page with "A fast, bulk perlin noise generator Can be created via * <source enclose="none">PerlinNoiseMap(noiseparams, size)</source> * <source enclose="none">minetest.get_perlin_map(noi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A fast, bulk perlin noise generator Can be created via

  • PerlinNoiseMap(noiseparams, size)
  • minetest.get_perlin_map(noiseparams, size)

Methods

get2dMap(pos) <size.x>X<size.y> 2d array of 2d noise values starting at pos={x=,y=}
get3dMap(pos) <size.x>X<size.y>X<size.z> 3d array of 3d noise values starting at pos={x=,y=,z=}
get2dMap_flat(pos) Flat <size.x * size.y> element array of 2d noise values starting at pos={x=,y=}
get3dMap_flat(pos) Same as get2dMap_flat, but 3d noise
Mbox information.png This article is missing examples.
Feel free to add them.
Mbox important.png This article is incomplete.
Please help expand this article to include more useful information.