Page 1 of 1
Mapgen Settings Question(s)

Posted:
Wed Oct 09, 2013 08:27
by Neon
What sort of server-side settings would I need to make biomes larger and to make gentler slopes? In effect, I'm looking for mapgen settings that would make the world seem larger (because hills tend to be broader and biomes larger)

Posted:
Wed Oct 09, 2013 08:37
by rubenwardy
All the map generation settings are here:
https://github.com/minetest/minetest/blob/master/minetest.conf.example#L338These may interest you:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
# Offset, scale, spread factor, seed offset, number of octaves, persistence
#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
#mgv6_np_height_select = 0.5, 1, (250, 250, 250), 4213, 5, 0.69
#mgv6_np_mud = 4, 2, (200, 200, 200), 91013, 3, 0.55
#mgv6_np_beach = 0, 1, (250, 250, 250), 59420, 3, 0.50
#mgv6_np_biome = 0, 1, (250, 250, 250), 9130, 3, 0.50
#mgv6_np_cave = 6, 6, (250, 250, 250), 34329, 3, 0.50
#mgv6_np_humidity = 0.5, 0.5, (500, 500, 500), 72384, 4, 0.66
#mgv6_np_trees = 0, 1, (125, 125, 125), 2, 4, 0.66
#mgv6_np_apple_trees = 0, 1, (100, 100, 100), 342902, 3, 0.45
There are more settings

Posted:
Wed Oct 09, 2013 15:20
by Wuzzy
rubenwardy wrote:Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
# Offset, scale, spread factor, seed offset, number of octaves, persistence
I guess many non-programmers here do not know what these words mean.
What do these words mean?
I would like to include the information on the
Wiki. :-)

Posted:
Wed Oct 09, 2013 15:30
by PilzAdam
Wuzzy wrote:rubenwardy wrote:Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
# Offset, scale, spread factor, seed offset, number of octaves, persistence
I guess many non-programmers here do not know what these words mean.
What do these words mean?
I would like to include the information on the
Wiki. :-)
Its not programming specific stuff, its used in perlin noise.

Posted:
Wed Oct 09, 2013 16:20
by twoelk
I'd love to have a minetest wiki article on this subject to my aid.
Something easier to understand than this:
http://freespace.virgin.net/hugo.elias/models/m_perlin.htm and this:
http://webstaff.itn.liu.se/~stegu/TNM022-2005/perlinnoiselinks/ I thought I had a pretty sure idea of what an octave was before I read the perlin stuff, now I know the word is used for things I don't get the scope of yet and surely have nothing to do with music. -- And as a warning setting the "number of octaves" value to high can crash the program.
The problem still is, one might know what perlin noise is but still not understand which value has what effect in a minetest world.
I am really looking forward to an easy to understand Wiki article on this subject.

Posted:
Wed Oct 09, 2013 17:15
by paramat
#mgv6_np_biome = 0, 1, (250, 250, 250), 9130, 3, 0.50
The 'spread factor' is the 3 numbers in brackets.
Those numbers are in nodes (or metres) and very roughly define the maximum scale of that perlin structure.
So the spread factor of the biome perlin noise is very roughly the maximum size in nodes of the biomes.
To make biomes twice as big try (500, 500, 500).
There are 3 numbers to enable setting the maximum structure scale independantly for x y and z. So you could create biomes stretched in the z direction by using (250, 250, 500).
See Casimir's nodetest game for perlin parameters that create larger biomes and larger scale terrain.

Posted:
Wed Oct 09, 2013 17:40
by Casimir
I'll give it a try. Might be wrong in some points.
offset
(?) I have no idea.
scale
(?) Scale is used to define both amplitude (and frequency). Bigger scale leads to higher mountains.
spread factor
See the post by paramat.
seed offset
The seed wont change the look of the output. It is used to create different noises with the same settings. Same seed for forests and mountains would cause forest always be on top of mountains.
number of octaves
More octaves means more details and more calculation.
persistence
Persistence defines how strong the details are visible, it does not add more of them. A low persistence will cause the terrain to be smooth, a high (max 1) causes strong ups and downs.

Posted:
Wed Oct 09, 2013 17:41
by jojoa1997
paramat wrote:#mgv6_np_biome = 0, 1, (250, 250, 250), 9130, 3, 0.50
The 'spread factor' is the 3 numbers in brackets.
Those numbers are in nodes (or metres) and very roughly define the maximum scale of that perlin structure.
So the spread factor of the biome perlin noise is very roughly the maximum size in nodes of the biomes.
To make biomes twice as big try (500, 500, 500).
There are 3 numbers to enable setting the maximum structure scale independantly for x y and z. So you could create biomes stretched in the z direction by using (250, 250, 500).
See Casimir's nodetest game for perlin parameters that create larger biomes and larger scale terrain.
the mapgen king is here

Posted:
Wed Oct 09, 2013 19:08
by paramat
Offset and scale should be left alone unless you know what you are doing, these define the average value and amplitude of the noise value output.
0, 1 is standard and matches the older lua perlin functions whose scale and offset are always set to 0 and 1.
0, 1 means the noise value has an average value of 0 and varies very roughly between -1 and 1, although depending on octaves and persistence the output can occasionally be as large as -2 to 2.
(offset, scale, spread (x y z), seeddiff, octaves, persistence)
... is the format for C++ perlin, the new lua perlin map functions and register ores.
(seeddiff, octaves, persistence, scale)
... is the format for the older lua perlin function, here 'scale' is actually the 'spread', these older functions dont have parameters for offset and scale, those are fixed at 0 and 1.

Posted:
Thu Oct 10, 2013 16:32
by paramat
Seed and Seeddiff
--------------------
A perlin function needs a 'seed', this is just any old random whole number that acts as a seed to 'grow' a particular noise pattern, same seed same noise pattern.
Seeddiff = seed difference.
Perlin functions that use 'seeddiff' instead of 'seed' are 'world dependant'.
The value used as a seed is worldseed + seeddiff.
Seeddiff creates perlin functions with different patterns but they also remain world dependant, meaning in different worlds you get different patterns but also in the same world you get the same pattern.
This is all 'as far as i know', the devs know much more about this than i do but may be too busy to explain.
Celeron55 and hmmmm and several others here are the authority on mapgen, i'm just a beginner with a basic programming ability and some good ideas :)

Posted:
Thu Oct 10, 2013 23:27
by philipbenr
jojoa1997 wrote:the mapgen king is here
XD sooo true. He's made a pretty nice magpen for Magpenv7

Posted:
Fri Oct 11, 2013 10:06
by Casimir

Posted:
Fri Oct 11, 2013 23:08
by Neon
[Thumbs up] Thanks Casimir
EDIT: Added further description to wiki page

Posted:
Thu Oct 24, 2013 15:49
by vqrulane
Can I make the map smoother and plain (but not flat)?

Posted:
Thu Oct 24, 2013 17:25
by paramat
Yes by adjusting the perlin noise parameters, which mapgen, v6, v7 or indev?

Posted:
Fri Oct 25, 2013 12:42
by vqrulane
paramat wrote:Yes by adjusting the perlin noise parameters, which mapgen, v6, v7 or indev?
I'd choose v6.

Posted:
Fri Oct 25, 2013 22:00
by paramat
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
# Offset, scale, (spread factor in x, y, z), seed offset, number of octaves, persistence
#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
Persistence is terrain 'roughness' so reduce it from 0.6 to 0.4 or lower. Same for other mapgens.

Posted:
Sat Oct 26, 2013 09:37
by vqrulane
Thank you very much, paramat! :3

Posted:
Sat Oct 26, 2013 17:06
by paramat
Forgot to clarify, reduce persistence of those 2 perlin noises only. Also you could reduce octaves by 1 or 2 in those 2 perlin noises, that will eliminate some fine detail and make mapgen slightly faster