Mapgen Settings Question(s)
Mapgen Settings Question(s)
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)
- rubenwardy
- Moderator
- Posts: 6978
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
All the map generation settings are here: https://github.com/minetest/minetest/bl ... ample#L338
These may interest you:
There are more settings
These may interest you:
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
Last edited by rubenwardy on Wed Oct 09, 2013 08:38, edited 1 time in total.
- Wuzzy
- Member
- Posts: 4803
- Joined: Mon Sep 24, 2012 15:01
- GitHub: Wuzzy2
- IRC: Wuzzy
- In-game: Wuzzy
- Contact:
I guess many non-programmers here do not know what these words mean.rubenwardy wrote:Code: Select all
# Offset, scale, spread factor, seed offset, number of octaves, persistence
What do these words mean?
I would like to include the information on the Wiki. :-)
- PilzAdam
- Member
- Posts: 4026
- Joined: Fri Jul 20, 2012 16:19
- GitHub: PilzAdam
- IRC: PilzAdam
- Location: Germany
Its not programming specific stuff, its used in perlin noise.Wuzzy wrote:I guess many non-programmers here do not know what these words mean.rubenwardy wrote:Code: Select all
# Offset, scale, spread factor, seed offset, number of octaves, persistence
What do these words mean?
I would like to include the information on the Wiki. :-)
-
- Member
- Posts: 1482
- Joined: Fri Apr 19, 2013 16:19
- GitHub: twoelk
- IRC: twoelk
- In-game: twoelk
- Location: northern Germany
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/ ... perlin.htm
and this:
http://webstaff.itn.liu.se/~stegu/TNM02 ... oiselinks/
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.
Something easier to understand than this:
http://freespace.virgin.net/hugo.elias/ ... perlin.htm
and this:
http://webstaff.itn.liu.se/~stegu/TNM02 ... oiselinks/
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.
- paramat
- Developer
- Posts: 3700
- Joined: Sun Oct 28, 2012 00:05
- GitHub: paramat
- IRC: paramat
- Location: UK
#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 '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.
Last edited by paramat on Wed Oct 09, 2013 17:18, edited 1 time in total.
- Casimir
- Member
- Posts: 1207
- Joined: Fri Aug 03, 2012 16:59
- GitHub: CasimirKaPazi
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.
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.
Last edited by Casimir on Wed Oct 09, 2013 17:45, edited 1 time in total.
the mapgen king is hereparamat 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.
Coding;
1X coding
3X debugging
12X tweaking to be just right
1X coding
3X debugging
12X tweaking to be just right
- paramat
- Developer
- Posts: 3700
- Joined: Sun Oct 28, 2012 00:05
- GitHub: paramat
- IRC: paramat
- Location: UK
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.
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.
Last edited by paramat on Thu Oct 10, 2013 16:24, edited 1 time in total.
- paramat
- Developer
- Posts: 3700
- Joined: Sun Oct 28, 2012 00:05
- GitHub: paramat
- IRC: paramat
- Location: UK
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
--------------------
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
Last edited by paramat on Thu Oct 10, 2013 17:43, edited 1 time in total.
- philipbenr
- Member
- Posts: 1897
- Joined: Fri Jun 14, 2013 01:56
- GitHub: philipbenr
- IRC: philipbenr
- In-game: robinspi
- Location: United States
- Casimir
- Member
- Posts: 1207
- Joined: Fri Aug 03, 2012 16:59
- GitHub: CasimirKaPazi
Started an article in the wiki.
http://wiki.minetest.net/Mapgen_settings
http://wiki.minetest.net/Mapgen_settings
[Thumbs up] Thanks Casimir
EDIT: Added further description to wiki page
EDIT: Added further description to wiki page
Last edited by Neon on Fri Oct 11, 2013 23:25, edited 1 time in total.
- paramat
- Developer
- Posts: 3700
- Joined: Sun Oct 28, 2012 00:05
- GitHub: paramat
- IRC: paramat
- Location: UK
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
Last edited by paramat on Fri Oct 25, 2013 22:01, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 17 guests