Skip to content
Permalink
Browse files

Add mgv5. New noise code, uses biome API. Eased 3d noise for terrain,…

… caves, blobs
  • Loading branch information
paramat authored and RealBadAngel committed Nov 8, 2014
1 parent d0be274 commit 92981b2fee19fd04e2a49533ffa1f778bff6ca72
Showing with 629 additions and 3 deletions.
  1. +1 −1 builtin/mainmenu/dlg_create_world.lua
  2. +11 −1 minetest.conf.example
  3. +1 −0 src/CMakeLists.txt
  4. +2 −0 src/emerge.cpp
  5. +496 −0 src/mapgen_v5.cpp
  6. +115 −0 src/mapgen_v5.h
  7. +1 −1 src/noise.cpp
  8. +2 −0 src/noise.h
@@ -16,7 +16,7 @@
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

local function create_world_formspec(dialogdata)
local mapgens = {"v6", "v7", "singlenode"}
local mapgens = {"v5", "v6", "v7", "singlenode"}

local current_seed = core.setting_get("fixed_map_seed") or ""
local current_mg = core.setting_get("mg_name")
@@ -407,7 +407,7 @@
# Mapgen stuff
#

# Name of map generator to be used. Currently supported: v6, v7, singlenode
# Name of map generator to be used. Currently supported: v5, v6, v7, singlenode
#mg_name = v6
# Water level of map.
#water_level = 1
@@ -424,6 +424,16 @@
#mgv6_freq_beach = 0.15
# Perlin noise attributes for different map generation parameters
# Offset, scale, spread factor, seed offset, number of octaves, persistence

#mgv5_np_filler_depth = 0, 1, (150, 150, 150), 261, 4, 0.7
#mgv5_np_factor = 0, 1, (250, 250, 250), 920381, 3, 0.45
#mgv5_np_height = 0, 10, (250, 250, 250), 84174, 4, 0.5
#mgv5_np_cave1 = 0, 7.5, (50, 50, 50), 52534, 4, 0.5
#mgv5_np_cave2 = 0, 7.5, (50, 50, 50), 10325, 4, 0.5
#mgv5_np_ground = 0, 40, (80, 80, 80), 983240, 4, 0.55
#mgv5_np_crumble = 0, 1, (20, 20, 20), 34413, 3, 1.3
#mgv5_np_wetness = 0, 1, (40, 40, 40), 32474, 4, 1.1

#mgv6_np_terrain_base = -4, 20, (250, 250, 250), 82341, 5, 0.6
#mgv6_np_terrain_higher = 20, 16, (500, 500, 500), 85039, 5, 0.6
#mgv6_np_steepness = 0.85, 0.5, (125, 125, 125), -932, 5, 0.7
@@ -368,6 +368,7 @@ set(common_SRCS
mapblock.cpp
mapgen.cpp
mapgen_singlenode.cpp
mapgen_v5.cpp
mapgen_v6.cpp
mapgen_v7.cpp
mapnode.cpp
@@ -42,6 +42,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "mg_biome.h"
#include "mg_decoration.h"
#include "mg_ore.h"
#include "mapgen_v5.h"
#include "mapgen_v6.h"
#include "mapgen_v7.h"
#include "mapgen_singlenode.h"
@@ -82,6 +83,7 @@ class EmergeThread : public JThread

EmergeManager::EmergeManager(IGameDef *gamedef) {
//register built-in mapgens
registerMapgen("v5", new MapgenFactoryV5());
registerMapgen("v6", new MapgenFactoryV6());
registerMapgen("v7", new MapgenFactoryV7());
registerMapgen("singlenode", new MapgenFactorySinglenode());

0 comments on commit 92981b2

Please sign in to comment.
You can’t perform that action at this time.