Difference between revisions of "Map generator"

From Minetest Wiki
Jump to navigation Jump to search
m (interwiki)
Line 1: Line 1:
{{incomplete}}
+
The '''map generator''' is the [[Minetest]] component that generates the [[Maps|map]].
The '''map generator''' is the component of [[Minetest]] which generates the [[Maps|map]].
 
  
 
== Overview ==
 
== Overview ==
''to be written''
 
  
== The several map generator types ==
+
This complex program, integrated into the game, can generate procedurally the [[Maps|map]], which is the world the player evolves in. It is based on Perlin noises, functions which allow associating to each point a random yet consistent value.
''to be written''
 
  
== Configuration ==
+
== Generators ==
''See [[Map generator/settings]].''
+
 
 +
There are currently three map generators. It is possible to choose between them when creating a [[Maps|map]]. Some [[mods]] may change them radically.
 +
 
 +
* '''v6''' : the default map generator. Generated entirely using 2D noise.
 +
* '''v7''' : an in-development map generator, with some innovations, uses 2D and 3D noise. It lets the modders define biomes in Lua. If no biomes are defined, then this generator only creates [[stone]].
 +
* '''singlenode''' : produces only one type of [[Blocks|block]], [[air]] by default. This one is by far the fastest, but in the [[vanilla Minetest game]], it is mostly useless. It is useful for mods which define their own map generation : first, air is generated, then the mod applies its own functions which generates the terrain.
 +
 
 +
Older versions of Minetest had a map generator called '''v5''', which used 3D noise. It was quite slow and was the reason v6 was ultimately developed. v5 is no longer usable in current versions, even though [http://freeminer.org Freeminer] implements it.
  
 
== See also ==
 
== See also ==
*[[Biomes]] for v6 biomes
+
 
 +
* [[Biomes]] generated by v6.
  
  
 
[[Category:Map]]
 
[[Category:Map]]

Revision as of 19:39, 29 September 2014

The map generator is the Minetest component that generates the map.

Overview

This complex program, integrated into the game, can generate procedurally the map, which is the world the player evolves in. It is based on Perlin noises, functions which allow associating to each point a random yet consistent value.

Generators

There are currently three map generators. It is possible to choose between them when creating a map. Some mods may change them radically.

  • v6 : the default map generator. Generated entirely using 2D noise.
  • v7 : an in-development map generator, with some innovations, uses 2D and 3D noise. It lets the modders define biomes in Lua. If no biomes are defined, then this generator only creates stone.
  • singlenode : produces only one type of block, air by default. This one is by far the fastest, but in the vanilla Minetest game, it is mostly useless. It is useful for mods which define their own map generation : first, air is generated, then the mod applies its own functions which generates the terrain.

Older versions of Minetest had a map generator called v5, which used 3D noise. It was quite slow and was the reason v6 was ultimately developed. v5 is no longer usable in current versions, even though Freeminer implements it.

See also