元編程參考文件

地形侵蝕

14 個節點

本頁內容 14

碎屑用途標記

函數

Usage token of the debris map.

簽名
碎屑用途標記() -> 文字
string UsageDebris()

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形侵蝕
所屬包
程序化生成

沉積用途標記

函數

Usage token of the deposition map.

簽名
沉積用途標記() -> 文字
string UsageDeposition()

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形侵蝕
所屬包
程序化生成

流量用途標記

函數

Usage token of the discharge map.

簽名
流量用途標記() -> 文字
string UsageDischarge()

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形侵蝕
所屬包
程序化生成

流向用途標記

函數

Usage token of the flow direction maps.

簽名
流向用途標記() -> 文字
string UsageFlowDirection()

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形侵蝕
所屬包
程序化生成

硬度用途標記

函數

Usage token of hardness maps.

簽名
硬度用途標記() -> 文字
string UsageHardness()

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形侵蝕
所屬包
程序化生成

高度變化用途標記

函數

Usage token of the height change map.

簽名
高度變化用途標記() -> 文字
string UsageHeightDelta()

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形侵蝕
所屬包
程序化生成

泥沙通量用途標記

函數

Usage token of the sediment flux map.

簽名
泥沙通量用途標記() -> 文字
string UsageSedimentFlux()

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形侵蝕
所屬包
程序化生成

水深用途標記

函數

Usage token of the water depth map.

簽名
水深用途標記() -> 文字
string UsageWaterDepth()

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形侵蝕
所屬包
程序化生成

侵蝕量用途標記

函數

Usage token of the wear map.

簽名
侵蝕量用途標記() -> 文字
string UsageWear()

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形侵蝕
所屬包
程序化生成

溼度用途標記

函數

Usage token of the wetness index map.

簽名
溼度用途標記() -> 文字
string UsageWetness()

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形侵蝕
所屬包
程序化生成

建立侵蝕設定

函數

Creates erosion settings. Every parameter is in physical units; see TerrainErosionSettings for the full set.

簽名
建立侵蝕設定 -> Terrain Erosion Settings
    時長(千年): 數字
    時間步長(千年): 數字
    可侵蝕性: 數字
    面積指數: 數字
    沉積係數: 數字
    坡面擴散率: 數字
    抬升速率(毫米/年): 數字
    基準面: 數字
    邊界作為出口: 真否
    水滴輪數: 整數
    水滴密度: 數字
    水滴強度: 數字
    休止角(度): 數字
    基岩休止角(度): 數字
    種子: 整數
TerrainErosionSettings CreateSettings(
    double durationKiloyears = 200,
    double timeStepKiloyears = 10,
    double erodibility = 5E-06,
    double areaExponent = 0.4,
    double depositionCoefficient = 1,
    double hillslopeDiffusivity = 0.001,
    double upliftMillimetresPerYear = 0,
    double baseLevel = double.NegativeInfinity,
    bool bordersAreOutlets = true,
    int dropletPasses = 16,
    double dropletDensity = 0.005,
    double dropletStrength = 1,
    double talusAngleDegrees = 35,
    double bedrockTalusAngleDegrees = 55,
    int seed = 0)

參數

名稱型別預設值說明
時長(千年)數字200Fluvial simulated time, thousands of years.
時間步長(千年)數字10Fluvial time step, thousands of years.
可侵蝕性數字5E-06Stream-power erodibility K, m^(1-2m)/yr.
面積指數數字0.4Drainage area exponent m.
沉積係數數字1Deposition coefficient G; 0 for pure incision.
坡面擴散率數字0.001Hillslope creep, m²/yr.
抬升速率(毫米/年)數字0Uplift rate, mm/yr.
基準面數字-InfinitySea level, metres; cells at or below it are outlets.
邊界作為出口真否TrueWater leaves through the map border.
水滴輪數整數16Droplet passes; 0 disables the droplet stage.
水滴密度數字0.005Droplets per m² per pass.
水滴強度數字1Multiplier of droplet erosion and deposition.
休止角(度)數字35Angle of repose of loose material, degrees.
基岩休止角(度)數字55Steepest stable angle of soft bedrock, degrees.
種子整數0Random seed.

返回

設定Terrain Erosion Settings
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形侵蝕
所屬包
程序化生成

建立地層硬度

函數

Hardness from rock strata: horizontal layers of alternating hard and soft rock, gently warped, so erosion cuts benches and cliffs into slopes.

簽名
建立地層硬度 -> Scalar Field
    高度圖: Scalar Field
    層厚(米): 數字
    硬層比例: 數字
    基礎硬度: 數字
    扭曲幅度(米): 數字
    扭曲波長(米): 數字
    種子: 整數
ScalarField2D CreateStrataHardness(
    ScalarField2D heightmap,
    double layerThickness = 40,
    double hardFraction = 0.35,
    double baseHardness = 0.1,
    double warpAmplitude = 15,
    double warpWavelength = 800,
    int seed = 0)

參數

名稱型別預設值說明
高度圖Scalar Field—Heights in metres.
層厚(米)數字40Thickness of one hard-and-soft pair of layers, metres.
硬層比例數字0.35Share of each pair that is hard rock (0..1).
基礎硬度數字0.1Hardness of the soft layers.
扭曲幅度(米)數字15Vertical warp of the layers, metres.
扭曲波長(米)數字800Horizontal wavelength of the warp, metres.
種子整數0Seed of the warp.

返回

硬度Scalar Field
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形侵蝕
所屬包
程序化生成

侵蝕

函數

Erodes a heightmap and returns the eroded terrain with all its maps (flow, wear, deposition, sediment, debris, wetness, water depth, flow direction).

簽名
侵蝕 -> Terrain Erosion Result
    高度圖: Scalar Field
    設定: Terrain Erosion Settings
    硬度: Scalar Field
    降水量: Scalar Field
    抬升: Scalar Field
    侵蝕蒙版: Scalar Field
    沉積蒙版: Scalar Field
    出口蒙版: Scalar Field
TerrainErosionResult Erode(
    ScalarField2D heightmap,
    TerrainErosionSettings settings,
    ScalarField2D hardness,
    ScalarField2D precipitation,
    ScalarField2D uplift,
    ScalarField2D erosionMask,
    ScalarField2D depositionMask,
    ScalarField2D outletMask)

參數

名稱型別預設值說明
高度圖Scalar Field—Heights in metres; its PhysicalScale must be metres per cell. It is not modified.
設定Terrain Erosion Settings—Erosion parameters; default settings when omitted.
硬度Scalar Field—Optional rock hardness, 0 (soft) to 1 (hard). Hard rock erodes up to 20 times slower and holds steeper cliffs.
降水量Scalar Field—Optional rainfall multiplier, 0 and up. Weights drainage area and droplet spawning.
抬升Scalar Field—Optional uplift multiplier of the uplift rate, 0 and up.
侵蝕蒙版Scalar Field—Optional 0..1 mask; 0 protects the terrain from erosion.
沉積蒙版Scalar Field—Optional 0..1 mask; 0 prevents material settling there.
出口蒙版Scalar Field—Optional mask; cells above 0.5 drain off the map (sinks, sea, map exits).

返回

結果Terrain Erosion Result
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形侵蝕
所屬包
程序化生成

侵蝕高度圖

函數

Erodes a heightmap with a few artistic controls and returns only the eroded heights. Use Erode with settings for the output maps and every parameter.

簽名
侵蝕高度圖 -> Scalar Field
    高度圖: Scalar Field
    時長(千年): 數字
    強度: 數字
    沉積: 數字
    休止角(度): 數字
    細節: 真否
    種子: 整數
ScalarField2D ErodeHeightmap(
    ScalarField2D heightmap,
    double durationKiloyears = 200,
    double strength = 1,
    double deposition = 1,
    double talusAngleDegrees = 35,
    bool detail = true,
    int seed = 0)

參數

名稱型別預設值說明
高度圖Scalar Field—Heights in metres; its PhysicalScale must be metres per cell.
時長(千年)數字200Simulated time in thousands of years; longer cuts deeper valleys.
強度數字1Multiplier of the erodibility; 1 is the default rate.
沉積數字1Deposition coefficient: 0 for canyons, about 1 for fans and filled valleys.
休止角(度)數字35Angle of repose of loose material.
細節真否TrueAdd the droplet stage's rills and gullies.
種子整數0Random seed of the droplet stage.

返回

高度圖Scalar Field
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形侵蝕
所屬包
程序化生成