Difference between revisions of "Map generator"

From Minetest Wiki
Jump to navigation Jump to search
(→‎Generators: Update for upcoming release)
Line 7: Line 7:
 
== Generators ==
 
== Generators ==
  
There are currently three map generators. It is possible to choose between them when creating a [[Maps|map]]. Some [[mods]] may change them radically.
+
There are a number of different map generators. It is possible to choose between them when creating a [[Maps|map]]. Some [[mods]] may change them radically, also all map generators allow for a lot of configuration.
  
* '''v6''' : the default map generator. Generated entirely using 2D noise.
+
* '''v5''': The oldest map generator, renewed for newer Minetest versions to feature biomes. It generates landscape based on 3D Perlin noise and is notable for its unique and somewhat strange terrain shape and occasional floating islands. Like v7, the biomes have to defined by mods first, otherwise the landscape will only be made out of stone (or some other default block).
* '''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]].
+
* '''v6''': The default map generator and successor of v5. Generated entirely using 2D noise and has somewhat more “realistic” terrain. The weirdness of v5 is gone. This map generator has predefined biomes which can't be modified by mods but mods also don't have to define their own biomes before this map generator becomes useful.
* '''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.
+
* '''v7''': An in-development map generator and successor of v6, 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]].
 
+
* '''valleys''' (Minetest 0.4.14): Another map generator which generatse a landscape featuring many hills, mountains and valleys. The valleys often contain rivers with [[River Water]].
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.
+
* '''flat''' (Minetest 0.4.14): This generates an (almost) entirely flat world with some biomes like in v7. Caves can still appear underground (if not disabled) and the map generator can be configured to add occasional hills and lakes.
 +
* '''fractals''' (Minetest 0.4.14): Generates a map based on a fractal. This is one of the more predictable map generators. It is possible to choose one of many fractals which are based on the Mandelbrot and Julia set.
 +
* '''singlenode''': By default, this produces a world with only [[air]] everywhere. To be precise, it produces only one type of [[Blocks|block]], air by default. This one is by far the simplest and fastest map generator, 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.
  
 
== See also ==
 
== See also ==

Revision as of 17:04, 29 February 2016

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 a number of different map generators. It is possible to choose between them when creating a map. Some mods may change them radically, also all map generators allow for a lot of configuration.

  • v5: The oldest map generator, renewed for newer Minetest versions to feature biomes. It generates landscape based on 3D Perlin noise and is notable for its unique and somewhat strange terrain shape and occasional floating islands. Like v7, the biomes have to defined by mods first, otherwise the landscape will only be made out of stone (or some other default block).
  • v6: The default map generator and successor of v5. Generated entirely using 2D noise and has somewhat more “realistic” terrain. The weirdness of v5 is gone. This map generator has predefined biomes which can't be modified by mods but mods also don't have to define their own biomes before this map generator becomes useful.
  • v7: An in-development map generator and successor of v6, 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.
  • valleys (Minetest 0.4.14): Another map generator which generatse a landscape featuring many hills, mountains and valleys. The valleys often contain rivers with River Water.
  • flat (Minetest 0.4.14): This generates an (almost) entirely flat world with some biomes like in v7. Caves can still appear underground (if not disabled) and the map generator can be configured to add occasional hills and lakes.
  • fractals (Minetest 0.4.14): Generates a map based on a fractal. This is one of the more predictable map generators. It is possible to choose one of many fractals which are based on the Mandelbrot and Julia set.
  • singlenode: By default, this produces a world with only air everywhere. To be precise, it produces only one type of block, air by default. This one is by far the simplest and fastest map generator, 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.

See also