diff --git a/examples/formats/minecraft.yaml b/examples/formats/minecraft.yaml index 11f46fdaf..4a3b75160 100644 --- a/examples/formats/minecraft.yaml +++ b/examples/formats/minecraft.yaml @@ -1,6 +1,7 @@ format: minecraft references: - &voxel-stone minecraft:stone + - &voxel-snowfields minecraft:snow_block - &voxel-dirt minecraft:dirt - &voxel-cobble minecraft:cobblestone - &voxel-empty minecraft:air diff --git a/examples/formats/minetest.yaml b/examples/formats/minetest.yaml index 060bf6ebe..5829430a5 100644 --- a/examples/formats/minetest.yaml +++ b/examples/formats/minetest.yaml @@ -1,6 +1,7 @@ format: minetest references: - &voxel-stone default:stone + - &voxel-snowfields default:snowblock - &voxel-dirt default:dirt - &voxel-cobble default:cobble - &voxel-empty default:air diff --git a/examples/places/meije.yaml b/examples/places/meije.yaml new file mode 100644 index 000000000..38ede8470 --- /dev/null +++ b/examples/places/meije.yaml @@ -0,0 +1,10 @@ +# La Meije is a mountain in the Massif des Écrins range. +worldName: La Meije - Massif des Écrins range +verticalScale: 1.0 +horizontalScale: 1.0 +area: + center: + latitude: 45.005 + longitude: 6.308 + extentX: 2000 + extentY: 2000 diff --git a/examples/processes/full.yaml b/examples/processes/full.yaml index d255b6659..3dc271dde 100644 --- a/examples/processes/full.yaml +++ b/examples/processes/full.yaml @@ -3,6 +3,8 @@ heightmaps: default: 0 water: default: 0 + snowfields: + default: 0 forEachTile: @@ -54,9 +56,9 @@ forEachTile: processor: type: geoToolsVector - fetchWater: + fetchHydrographic: type: fetchData - modelType: water + modelType: hydrographic provider: type: wfs url: https://data.geopf.fr/wfs/wfs @@ -91,11 +93,15 @@ forEachTile: flattenWater: after: - - fetchWater + - fetchHydrographic - setAltitude type: copyHeightmap models: - type: water + type: hydrographic + filter: + not: + metadata: nature + equals: "Glacier, névé" from: localMin: ground range: 9 @@ -187,18 +193,37 @@ forEachTile: place: *forest-tree2 populateWaterPresence: - after: fetchWater + after: fetchHydrographic type: copyHeightmap models: - type: water + type: hydrographic + filter: + not: + metadata: nature + equals: "Glacier, névé" from: 1 to: water + populateSnowfieldsPresence: + after: fetchHydrographic + type: copyHeightmap + models: + type: hydrographic + filter: + metadata: nature + equals: "Glacier, névé" + from: 1 + to: snowfields + computeWaterDepth: after: populateWaterPresence type: copyHeightmap models: - type: water + type: hydrographic + filter: + not: + metadata: nature + equals: "Glacier, névé" from: remap: manhattan: water @@ -235,6 +260,21 @@ forEachTile: - put: *voxel-air at: [ 0, 0, 1..12 ] + renderSnowfields: + after: + - renderGround + type: renderHeightmap + minimum: + sum: + - ground + - 1 + - product: [ -5, snowfields ] + maximum: ground + place: + structure: + - put: *voxel-snowfields + at: [ 0, 0, 0 ] + path: after: - fetchRoads