Skip to content

Commit 9997e20

Browse files
committedJun 24, 2016
Mgflat/fractal/v7/valleys: Denser 3D noise tunnels
Reduce spread from 96 to primes 61 and 67 (either side of 64) Prime spreads help to keep 3D noise periodic features unaligned 'cave width' 0.2 to preserve tunnel width Reduce octaves to 3 to improve network structure
1 parent fa0bbbf commit 9997e20

File tree

6 files changed

+36
-36
lines changed

6 files changed

+36
-36
lines changed
 

Diff for: ‎builtin/settingtypes.txt

+12-12
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ mgv6_np_apple_trees (Mapgen v6 apple trees noise parameters) noise_params 0, 1,
954954
mgv7_spflags (Mapgen v7 flags) flags mountains,ridges mountains,ridges,nomountains,noridges
955955

956956
# Controls width of tunnels, a smaller value creates wider tunnels.
957-
mgv7_cave_width (Mapgen v7 cave width) float 0.3
957+
mgv7_cave_width (Mapgen v7 cave width) float 0.2
958958

959959
mgv7_np_terrain_base (Mapgen v7 terrain base noise parameters) noise_params 4, 70, (600, 600, 600), 82341, 5, 0.6, 2.0
960960
mgv7_np_terrain_alt (Mapgen v7 terrain altitude noise parameters) noise_params 4, 25, (600, 600, 600), 5934, 5, 0.6, 2.0
@@ -965,8 +965,8 @@ mgv7_np_mount_height (Mapgen v7 mount height noise parameters) noise_params 256,
965965
mgv7_np_ridge_uwater (Mapgen v7 ridge water noise parameters) noise_params 0, 1, (1000, 1000, 1000), 85039, 5, 0.6, 2.0
966966
mgv7_np_mountain (Mapgen v7 mountain noise parameters) noise_params -0.6, 1, (250, 350, 250), 5333, 5, 0.63, 2.0
967967
mgv7_np_ridge (Mapgen v7 ridge noise parameters) noise_params 0, 1, (100, 100, 100), 6467, 4, 0.75, 2.0
968-
mgv7_np_cave1 (Mapgen v7 cave1 noise parameters) noise_params 0, 12, (100, 100, 100), 52534, 4, 0.5, 2.0
969-
mgv7_np_cave2 (Mapgen v7 cave2 noise parameters) noise_params 0, 12, (100, 100, 100), 10325, 4, 0.5, 2.0
968+
mgv7_np_cave1 (Mapgen v7 cave1 noise parameters) noise_params 0, 12, (61, 61, 61), 52534, 3, 0.5, 2.0
969+
mgv7_np_cave2 (Mapgen v7 cave2 noise parameters) noise_params 0, 12, (67, 67, 67), 10325, 3, 0.5, 2.0
970970

971971
[***Mapgen flat]
972972

@@ -983,7 +983,7 @@ mgflat_ground_level (Mapgen flat ground level) int 8
983983
mgflat_large_cave_depth (Mapgen flat large cave depth) int -33
984984

985985
# Controls width of tunnels, a smaller value creates wider tunnels.
986-
mgflat_cave_width (Mapgen flat cave width) float 0.3
986+
mgflat_cave_width (Mapgen flat cave width) float 0.2
987987

988988
# Terrain noise threshold for lakes.
989989
# Controls proportion of world area covered by lakes.
@@ -1007,13 +1007,13 @@ mgflat_hill_steepness (Mapgen flat hill steepness) float 64.0
10071007
mgflat_np_terrain (Mapgen flat terrain noise parameters) noise_params 0, 1, (600, 600, 600), 7244, 5, 0.6, 2.0
10081008

10091009
mgflat_np_filler_depth (Mapgen flat filler depth noise parameters) noise_params 0, 1.2, (150, 150, 150), 261, 3, 0.7, 2.0
1010-
mgflat_np_cave1 (Mapgen flat cave1 noise parameters) noise_params 0, 12, (128, 128, 128), 52534, 4, 0.5, 2.0
1011-
mgflat_np_cave2 (Mapgen flat cave2 noise parameters) noise_params 0, 12, (128, 128, 128), 10325, 4, 0.5, 2.0
1010+
mgflat_np_cave1 (Mapgen flat cave1 noise parameters) noise_params 0, 12, (61, 61, 61), 52534, 3, 0.5, 2.0
1011+
mgflat_np_cave2 (Mapgen flat cave2 noise parameters) noise_params 0, 12, (67, 67, 67), 10325, 3, 0.5, 2.0
10121012

10131013
[***Mapgen fractal]
10141014

10151015
# Controls width of tunnels, a smaller value creates wider tunnels.
1016-
mgfractal_cave_width (Mapgen fractal cave width) float 0.3
1016+
mgfractal_cave_width (Mapgen fractal cave width) float 0.2
10171017

10181018
# Choice of 18 fractals from 9 formulas.
10191019
# 1 = 4D "Roundy" mandelbrot set.
@@ -1074,8 +1074,8 @@ mgfractal_julia_w (Mapgen fractal julia w) float 0.33
10741074

10751075
mgfractal_np_seabed (Mapgen fractal seabed noise parameters) noise_params -14, 9, (600, 600, 600), 41900, 5, 0.6, 2.0
10761076
mgfractal_np_filler_depth (Mapgen fractal filler depth noise parameters) noise_params 0, 1.2, (150, 150, 150), 261, 3, 0.7, 2.0
1077-
mgfractal_np_cave1 (Mapgen fractal cave1 noise parameters) noise_params 0, 12, (128, 128, 128), 52534, 4, 0.5, 2.0
1078-
mgfractal_np_cave2 (Mapgen fractal cave2 noise parameters) noise_params 0, 12, (128, 128, 128), 10325, 4, 0.5, 2.0
1077+
mgfractal_np_cave1 (Mapgen fractal cave1 noise parameters) noise_params 0, 12, (61, 61, 61), 52534, 3, 0.5, 2.0
1078+
mgfractal_np_cave2 (Mapgen fractal cave2 noise parameters) noise_params 0, 12, (67, 67, 67), 10325, 3, 0.5, 2.0
10791079

10801080
# Mapgen Valleys parameters
10811081
[***Mapgen Valleys]
@@ -1115,16 +1115,16 @@ mgvalleys_river_size (River Size) int 5
11151115
mgvalleys_water_features (Water Features) int 0
11161116

11171117
# Controls width of tunnels, a smaller value creates wider tunnels.
1118-
mgvalleys_cave_width (Cave width) float 0.3
1118+
mgvalleys_cave_width (Cave width) float 0.2
11191119

11201120
# Noise parameters
11211121
[****Noises]
11221122

11231123
# Caves and tunnels form at the intersection of the two noises
1124-
mgvalleys_np_cave1 (Cave noise #1) noise_params 0, 12, (100, 100, 100), 52534, 4, 0.5, 2.0
1124+
mgvalleys_np_cave1 (Cave noise #1) noise_params 0, 12, (61, 61, 61), 52534, 3, 0.5, 2.0
11251125

11261126
# Caves and tunnels form at the intersection of the two noises
1127-
mgvalleys_np_cave2 (Cave noise #2) noise_params 0, 12, (100, 100, 100), 10325, 4, 0.5, 2.0
1127+
mgvalleys_np_cave2 (Cave noise #2) noise_params 0, 12, (67, 67, 67), 10325, 3, 0.5, 2.0
11281128

11291129
# The depth of dirt or other filler
11301130
mgvalleys_np_filler_depth (Filler Depth) noise_params 0, 1.2, (256, 256, 256), 1605, 3, 0.5, 2.0

Diff for: ‎minetest.conf.example

+12-12
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@
11761176

11771177
# Controls width of tunnels, a smaller value creates wider tunnels.
11781178
# type: float
1179-
# mgv7_cave_width = 0.3
1179+
# mgv7_cave_width = 0.2
11801180

11811181
# type: noise_params
11821182
# mgv7_np_terrain_base = 4, 70, (600, 600, 600), 82341, 5, 0.6, 2.0
@@ -1206,10 +1206,10 @@
12061206
# mgv7_np_ridge = 0, 1, (100, 100, 100), 6467, 4, 0.75, 2.0
12071207

12081208
# type: noise_params
1209-
# mgv7_np_cave1 = 0, 12, (100, 100, 100), 52534, 4, 0.5, 2.0
1209+
# mgv7_np_cave1 = 0, 12, (61, 61, 61), 52534, 3, 0.5, 2.0
12101210

12111211
# type: noise_params
1212-
# mgv7_np_cave2 = 0, 12, (100, 100, 100), 10325, 4, 0.5, 2.0
1212+
# mgv7_np_cave2 = 0, 12, (67, 67, 67), 10325, 3, 0.5, 2.0
12131213

12141214
#### Mapgen flat
12151215

@@ -1230,7 +1230,7 @@
12301230

12311231
# Controls width of tunnels, a smaller value creates wider tunnels.
12321232
# type: float
1233-
# mgflat_cave_width = 0.3
1233+
# mgflat_cave_width = 0.2
12341234

12351235
# Terrain noise threshold for lakes.
12361236
# Controls proportion of world area covered by lakes.
@@ -1262,16 +1262,16 @@
12621262
# mgflat_np_filler_depth = 0, 1.2, (150, 150, 150), 261, 3, 0.7, 2.0
12631263

12641264
# type: noise_params
1265-
# mgflat_np_cave1 = 0, 12, (128, 128, 128), 52534, 4, 0.5, 2.0
1265+
# mgflat_np_cave1 = 0, 12, (61, 61, 61), 52534, 3, 0.5, 2.0
12661266

12671267
# type: noise_params
1268-
# mgflat_np_cave2 = 0, 12, (128, 128, 128), 10325, 4, 0.5, 2.0
1268+
# mgflat_np_cave2 = 0, 12, (67, 67, 67), 10325, 3, 0.5, 2.0
12691269

12701270
#### Mapgen fractal
12711271

12721272
# Controls width of tunnels, a smaller value creates wider tunnels.
12731273
# type: float
1274-
# mgfractal_cave_width = 0.3
1274+
# mgfractal_cave_width = 0.2
12751275

12761276
# Choice of 18 fractals from 9 formulas.
12771277
# 1 = 4D "Roundy" mandelbrot set.
@@ -1346,10 +1346,10 @@
13461346
# mgfractal_np_filler_depth = 0, 1.2, (150, 150, 150), 261, 3, 0.7, 2.0
13471347

13481348
# type: noise_params
1349-
# mgfractal_np_cave1 = 0, 12, (128, 128, 128), 52534, 4, 0.5, 2.0
1349+
# mgfractal_np_cave1 = 0, 12, (61, 61, 61), 52534, 3, 0.5, 2.0
13501350

13511351
# type: noise_params
1352-
# mgfractal_np_cave2 = 0, 12, (128, 128, 128), 10325, 4, 0.5, 2.0
1352+
# mgfractal_np_cave2 = 0, 12, (67, 67, 67), 10325, 3, 0.5, 2.0
13531353

13541354
#### Mapgen Valleys
13551355

@@ -1396,17 +1396,17 @@
13961396

13971397
# Controls width of tunnels, a smaller value creates wider tunnels.
13981398
# type: float
1399-
# mgvalleys_cave_width = 0.3
1399+
# mgvalleys_cave_width = 0.2
14001400

14011401
##### Noises
14021402

14031403
# Caves and tunnels form at the intersection of the two noises
14041404
# type: noise_params
1405-
# mgvalleys_np_cave1 = 0, 12, (100, 100, 100), 52534, 4, 0.5, 2.0
1405+
# mgvalleys_np_cave1 = 0, 12, (61, 61, 61), 52534, 3, 0.5, 2.0
14061406

14071407
# Caves and tunnels form at the intersection of the two noises
14081408
# type: noise_params
1409-
# mgvalleys_np_cave2 = 0, 12, (100, 100, 100), 10325, 4, 0.5, 2.0
1409+
# mgvalleys_np_cave2 = 0, 12, (67, 67, 67), 10325, 3, 0.5, 2.0
14101410

14111411
# The depth of dirt or other filler
14121412
# type: noise_params

Diff for: ‎src/mapgen_flat.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,16 @@ MapgenFlatParams::MapgenFlatParams()
8484
spflags = 0;
8585
ground_level = 8;
8686
large_cave_depth = -33;
87-
cave_width = 0.3;
87+
cave_width = 0.2;
8888
lake_threshold = -0.45;
8989
lake_steepness = 48.0;
9090
hill_threshold = 0.45;
9191
hill_steepness = 64.0;
9292

9393
np_terrain = NoiseParams(0, 1, v3f(600, 600, 600), 7244, 5, 0.6, 2.0);
9494
np_filler_depth = NoiseParams(0, 1.2, v3f(150, 150, 150), 261, 3, 0.7, 2.0);
95-
np_cave1 = NoiseParams(0, 12, v3f(96, 96, 96), 52534, 4, 0.5, 2.0);
96-
np_cave2 = NoiseParams(0, 12, v3f(96, 96, 96), 10325, 4, 0.5, 2.0);
95+
np_cave1 = NoiseParams(0, 12, v3f(61, 61, 61), 52534, 3, 0.5, 2.0);
96+
np_cave2 = NoiseParams(0, 12, v3f(67, 67, 67), 10325, 3, 0.5, 2.0);
9797
}
9898

9999

Diff for: ‎src/mapgen_fractal.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ MapgenFractal::~MapgenFractal()
8686
MapgenFractalParams::MapgenFractalParams()
8787
{
8888
spflags = 0;
89-
cave_width = 0.3;
89+
cave_width = 0.2;
9090
fractal = 1;
9191
iterations = 11;
9292
scale = v3f(4096.0, 1024.0, 4096.0);
@@ -99,8 +99,8 @@ MapgenFractalParams::MapgenFractalParams()
9999

100100
np_seabed = NoiseParams(-14, 9, v3f(600, 600, 600), 41900, 5, 0.6, 2.0);
101101
np_filler_depth = NoiseParams(0, 1.2, v3f(150, 150, 150), 261, 3, 0.7, 2.0);
102-
np_cave1 = NoiseParams(0, 12, v3f(96, 96, 96), 52534, 4, 0.5, 2.0);
103-
np_cave2 = NoiseParams(0, 12, v3f(96, 96, 96), 10325, 4, 0.5, 2.0);
102+
np_cave1 = NoiseParams(0, 12, v3f(61, 61, 61), 52534, 3, 0.5, 2.0);
103+
np_cave2 = NoiseParams(0, 12, v3f(67, 67, 67), 10325, 3, 0.5, 2.0);
104104
}
105105

106106

Diff for: ‎src/mapgen_v7.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ MapgenV7::~MapgenV7()
9494
MapgenV7Params::MapgenV7Params()
9595
{
9696
spflags = MGV7_MOUNTAINS | MGV7_RIDGES;
97-
cave_width = 0.3;
97+
cave_width = 0.2;
9898

9999
np_terrain_base = NoiseParams(4, 70, v3f(600, 600, 600), 82341, 5, 0.6, 2.0);
100100
np_terrain_alt = NoiseParams(4, 25, v3f(600, 600, 600), 5934, 5, 0.6, 2.0);
@@ -105,8 +105,8 @@ MapgenV7Params::MapgenV7Params()
105105
np_ridge_uwater = NoiseParams(0, 1, v3f(1000, 1000, 1000), 85039, 5, 0.6, 2.0);
106106
np_mountain = NoiseParams(-0.6, 1, v3f(250, 350, 250), 5333, 5, 0.63, 2.0);
107107
np_ridge = NoiseParams(0, 1, v3f(100, 100, 100), 6467, 4, 0.75, 2.0);
108-
np_cave1 = NoiseParams(0, 12, v3f(96, 96, 96), 52534, 4, 0.5, 2.0);
109-
np_cave2 = NoiseParams(0, 12, v3f(96, 96, 96), 10325, 4, 0.5, 2.0);
108+
np_cave1 = NoiseParams(0, 12, v3f(61, 61, 61), 52534, 3, 0.5, 2.0);
109+
np_cave2 = NoiseParams(0, 12, v3f(67, 67, 67), 10325, 3, 0.5, 2.0);
110110
}
111111

112112

Diff for: ‎src/mapgen_valleys.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ MapgenValleysParams::MapgenValleysParams()
144144
river_depth = 4; // How deep to carve river channels.
145145
river_size = 5; // How wide to make rivers.
146146
water_features = 0; // How often water will occur in caves.
147-
cave_width = 0.3;
147+
cave_width = 0.2;
148148

149-
np_cave1 = NoiseParams(0, 12, v3f(96, 96, 96), 52534, 4, 0.5, 2.0);
150-
np_cave2 = NoiseParams(0, 12, v3f(96, 96, 96), 10325, 4, 0.5, 2.0);
149+
np_cave1 = NoiseParams(0, 12, v3f(61, 61, 61), 52534, 3, 0.5, 2.0);
150+
np_cave2 = NoiseParams(0, 12, v3f(67, 67, 67), 10325, 3, 0.5, 2.0);
151151
np_filler_depth = NoiseParams(0.f, 1.2f, v3f(256, 256, 256), 1605, 3, 0.5f, 2.f);
152152
np_inter_valley_fill = NoiseParams(0.f, 1.f, v3f(256, 512, 256), 1993, 6, 0.8f, 2.f);
153153
np_inter_valley_slope = NoiseParams(0.5f, 0.5f, v3f(128, 128, 128), 746, 1, 1.f, 2.f);

0 commit comments

Comments
 (0)
Please sign in to comment.