Difference between revisions of "PerlinNoise"

From Minetest Developer Wiki
Jump to navigation Jump to search
(Added forum reference)
m (→‎Examples: Formatting and object API name change)
Line 6: Line 6:
  
 
== Examples ==
 
== Examples ==
[[Voxel_Manipulator#Example]]
+
See [[VoxelManip#Example|VoxelManip example]]
  
 
== See also ==
 
== See also ==

Revision as of 20:40, 6 July 2014

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

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

PerlinNoiseMap

External Links

Minetest forum thread: "minetest.get_perlin() and minetest.get_perlin_map() Return nil"