Reworked parameters, and rename 'terrain.conf' to 'terrain_default.conf'

This commit is contained in:
Gael-de-Sailly 2020-12-24 14:39:38 +01:00
parent 85e545d5ac
commit ca68738ba7
4 changed files with 29 additions and 9 deletions

View File

@ -29,7 +29,7 @@ def noisemap(X, Y, scale=0.01, vscale=1.0, offset=0.0, log=False, **params):
### PARSE COMMAND-LINE ARGUMENTS
argc = len(sys.argv)
config_file = 'terrain.conf'
config_file = 'terrain_default.conf'
output_dir = 'river_data'
params_from_args = {}
i = 1 # Index of arguments
@ -80,9 +80,9 @@ offset = float(get_setting('offset', 0.0))
persistence = float(get_setting('persistence', 0.6))
lacunarity = float(get_setting('lacunarity', 2.0))
K = float(get_setting('K', 1.0))
m = float(get_setting('m', 0.35))
d = float(get_setting('d', 0.2))
K = float(get_setting('K', 0.5))
m = float(get_setting('m', 0.5))
d = float(get_setting('d', 0.5))
sea_level = float(get_setting('sea_level', 0.0))
sea_level_variations = float(get_setting('sea_level_variations', 0.0))
sea_level_variations_time = float(get_setting('sea_level_variations_time', 1.0))

17
terrain_default.conf Normal file
View File

@ -0,0 +1,17 @@
mapsize = 1000
scale = 400
vscale = 300
offset = 0
persistence = 0.6
lacunarity = 2.0
K = 0.5
m = 0.5
d = 0.5
sea_level = 0
sea_level_variations = 8
sea_level_variations_time = 2
flex_radius = 20
time = 10
niter = 10

View File

@ -6,9 +6,11 @@ persistence = 0.65
lacunarity = 2.0
K = 0.5
m = 0.55
d = 0.45
m = 0.45
d = 0.55
sea_level = 0
sea_level_variations = 12
sea_level_variations_time = 2
flex_radius = 50
time = 10

View File

@ -4,10 +4,11 @@ vscale = 300
offset = 0
persistence = 0.6
lacunarity = 2.0
flow_method = steepest
K = 0.5
m = 0.5
d = 0.5
K = 1
m = 0.35
d = 0
sea_level = 0
flex_radius = 20