高度圖選擇器
14 個節點
本頁內容 14
環境光遮蔽用途標記
函數Usage of an ambient occlusion (sky visibility) field.
環境光遮蔽用途標記() -> 文字
string HeightmapDataUsageTokenAmbientOcclusion()
返回
| 結果 | 文字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖選擇器
- 所屬包
- 程序化生成
坡向(度)用途標記
函數Usage of an aspect field, in compass degrees.
坡向(度)用途標記() -> 文字
string HeightmapDataUsageTokenAspectDegrees()
返回
| 結果 | 文字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖選擇器
- 所屬包
- 程序化生成
凸度用途標記
函數Usage of a raw convexity field, in metres above the local mean.
凸度用途標記() -> 文字
string HeightmapDataUsageTokenConvexity()
返回
| 結果 | 文字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖選擇器
- 所屬包
- 程序化生成
曲率用途標記
函數Usage of a raw curvature field, in 1/metre.
曲率用途標記() -> 文字
string HeightmapDataUsageTokenCurvature()
返回
| 結果 | 文字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖選擇器
- 所屬包
- 程序化生成
距離用途標記
函數Usage of a distance field, in metres.
距離用途標記() -> 文字
string HeightmapDataUsageTokenDistance()
返回
| 結果 | 文字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖選擇器
- 所屬包
- 程序化生成
計算環境光遮蔽
函數Measures how much of the sky each cell sees, by marching the horizon in several directions: 1 in the open, darker in valleys, gorges and at the foot of cliffs.
計算環境光遮蔽 -> Scalar Field
源: Scalar Field
半徑(米): 數字
方向數: 整數
步數: 整數
強度: 數字ScalarField2D CalculateAmbientOcclusion(
ScalarField2D source,
double radiusMetres = 300,
int directions = 16,
int steps = 16,
double strength = 1)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源 | Scalar Field | — | Heightmap in metres. |
| 半徑(米) | 數字 | 300 | How far in metres to look for occluders; larger lets whole mountains shade a valley. |
| 方向數 | 整數 | 16 | Number of horizon directions (8 to 32). |
| 步數 | 整數 | 16 | Samples per direction (8 to 32), spaced geometrically so near ground is sampled densely. |
| 強度 | 數字 | 1 | Scales the darkening: 1 is physical, above 1 deepens it. |
返回
| 結果 | Scalar Field |
備註
For each direction, samples at geometrically spaced distances (from one cell out to Radius Metres) find the highest elevation angle θ of the horizon; the visibility is 1 − mean(sin θ). The result drives dirt, moss and darkening; invert it for a cavity mask. Beyond the map border the edge cells are taken to continue outward. Cost grows with directions × steps.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖選擇器
- 所屬包
- 程序化生成
計算坡向(度)
函數Gives the compass direction each slope faces (its downhill direction), in degrees clockwise from north.
計算坡向(度)(源: Scalar Field, Y 軸朝北: 真否) -> Scalar Field
ScalarField2D CalculateAspectDegrees(
ScalarField2D source,
bool heightmapYPointsNorth = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源 | Scalar Field | — | Heightmap in metres. |
| Y 軸朝北 | 真否 | True | True when increasing row index points north; false for north-up images. |
返回
| 結果 | Scalar Field |
備註
0 faces north, 90 east, 180 south, 270 west; flat cells, which face nowhere, read -1. East is +X (increasing column). By default north is +Y (increasing row), the convention ToHillshade and BakeShadowMap use, so a slope whose aspect equals a hillshade's azimuth is the one that hillshade lights; for an ordinary north-up raster image, where row 0 is the northern edge, set Heightmap Y Points North to false.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖選擇器
- 所屬包
- 程序化生成
計算凸度
函數Measures how far each cell stands above (positive) or below (negative) the Gaussian-weighted mean height around it, in metres.
計算凸度(源: Scalar Field, 半徑(米): 數字) -> Scalar Field
ScalarField2D CalculateConvexity(
ScalarField2D source,
double radiusMetres = 50)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源 | Scalar Field | — | Heightmap in metres. |
| 半徑(米) | 數字 | 50 | Standard deviation in metres of the neighbourhood the height is compared with; it sets the size of feature selected. |
返回
| 結果 | Scalar Field |
備註
This is the difference between the height and a blur of it, the classic convexity selector: crests, ridges and knobs come out positive, gullies, channels and valley floors negative. Unlike curvature it needs no differentiation, so it is robust on quantised imports.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖選擇器
- 所屬包
- 程序化生成
計算曲率
函數Measures the surface curvature of a heightmap in 1/metre, positive on convex ground and negative on concave ground.
計算曲率 -> Scalar Field
源: Scalar Field
型別: Terrain Curvature Type
尺度(米): 數字ScalarField2D CalculateCurvature(
ScalarField2D source,
TerrainCurvatureType type = TerrainCurvatureType.Mean,
double scaleMetres = 20)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源 | Scalar Field | — | Heightmap in metres. |
| 型別 | Terrain Curvature Type | 平均 | Profile (down the slope), Plan (across it) or Mean. |
| 尺度(米) | 數字 | 20 | Standard deviation in metres of a Gaussian applied before differentiating; 0 uses the raw cells. |
返回
| 結果 | Scalar Field |
備註
Second derivatives come from the 3×3 neighbourhood (Evans–Young / Zevenbergen–Thorne) with the cell size in metres. Imported heightmaps are quantised (a 16-bit file over 2.6 km of relief steps in 4 cm), and second derivatives amplify that into noise, so smooth first: Scale Metres sets the size of landform the curvature describes, from rocks (a few metres) to whole ridges (hundreds). Profile and plan curvature are undefined on perfectly flat ground and read 0 there.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖選擇器
- 所屬包
- 程序化生成
計算距離
函數Measures the exact straight-line distance in metres from every cell to the nearest cell of a mask.
計算距離 -> Scalar Field
蒙版: Scalar Field
閾值: 數字
有符號: 真否ScalarField2D CalculateDistance(
ScalarField2D mask,
double threshold = 0.5,
bool signed = false)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 蒙版 | Scalar Field | — | Mask to measure from, such as water, roads or rock. |
| 閾值 | 數字 | 0.5 | Value at or above which a cell belongs to the mask. |
| 有符號 | 真否 | False | If true, distances inside the mask are negative distances to its edge. |
返回
| 結果 | Scalar Field |
備註
Cells at or above Threshold belong to the mask. The transform is exact Euclidean (Felzenszwalb–Huttenlocher), so distances grow in circles, not diamonds or octagons. Unsigned, mask cells read 0 and the cells beside them one cell width (distances run between cell centres). Signed, the mask's inside is negative and both sides are measured from the boundary halfway between cells, so the field is continuous across it. With no mask cells at all, every cell reads the map's diagonal.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖選擇器
- 所屬包
- 程序化生成
按坡向選擇
函數Selects slopes facing a compass direction: a 0..1 mask, for north-facing snow, sun-facing dry grass, moss on shaded sides.
按坡向選擇 -> Scalar Field
源: Scalar Field
朝向(度): 數字
扇區半寬(度): 數字
衰減(度): 數字
最小坡度(度): 數字
坡度衰減(度): 數字
Y 軸朝北: 真否ScalarField2D SelectAspect(
ScalarField2D source,
double headingDegrees = 0,
double spreadDegrees = 45,
double falloffDegrees = 30,
double minSlopeDegrees = 3,
double slopeFalloffDegrees = 5,
bool heightmapYPointsNorth = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源 | Scalar Field | — | Heightmap in metres. |
| 朝向(度) | 數字 | 0 | Direction the selected slopes face, degrees clockwise from north. |
| 扇區半寬(度) | 數字 | 45 | Half-width in degrees of the fully selected sector. |
| 衰減(度) | 數字 | 30 | Degrees beyond the spread over which the mask fades to 0. |
| 最小坡度(度) | 數字 | 3 | Steepness in degrees below which ground counts as flat and is not selected. |
| 坡度衰減(度) | 數字 | 5 | Degrees above the minimum slope over which the selection fades in. |
| Y 軸朝北 | 真否 | True | True when increasing row index points north; false for north-up images. |
返回
| 結果 | Scalar Field |
備註
A slope scores 1 when its aspect is within Spread Degrees of the heading, fading to 0 over a further Falloff Degrees. Flat ground has no meaningful aspect, so the score is also faded in with steepness, from Min Slope Degrees over Slope Falloff Degrees. See HeightmapSelectors.CalculateAspectDegrees for the axis convention.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖選擇器
- 所屬包
- 程序化生成
按凸度選擇
函數Selects ridges or gullies by convexity: a 0..1 mask that lights crests and darkens channels (Signed), or keeps one side only.
按凸度選擇 -> Scalar Field
源: Scalar Field
半徑(米): 數字
極性: Heightmap Selector Polarity
對比度: 數字
參考高度(米): 數字ScalarField2D SelectConvexity(
ScalarField2D source,
double radiusMetres = 50,
HeightmapSelectorPolarity polarity = HeightmapSelectorPolarity.Signed,
double contrast = 1,
double referenceMetres = 0)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源 | Scalar Field | — | Heightmap in metres. |
| 半徑(米) | 數字 | 50 | Size of feature to respond to: standard deviation in metres of the neighbourhood. |
| 極性 | Heightmap Selector Polarity | 雙向 | Convex, Concave, or Signed (0.5 is neither). |
| 對比度 | 數字 | 1 | Multiplier before saturation; higher makes the mask harder. |
| 參考高度(米) | 數字 | 0 | Height above the local mean that maps to tanh(1) ≈ 0.76; 0 picks it from the field. |
返回
| 結果 | Scalar Field |
備註
The convexity (metres above the local mean) is divided by a reference height and passed through tanh. With the reference left at 0 it is the field's own 90th percentile of |convexity|; give it in metres (e.g. 5) when separate tiles must agree.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖選擇器
- 所屬包
- 程序化生成
按曲率選擇
函數Selects convex or concave ground by its curvature: a 0..1 mask.
按曲率選擇 -> Scalar Field
源: Scalar Field
型別: Terrain Curvature Type
尺度(米): 數字
極性: Heightmap Selector Polarity
對比度: 數字
參考曲率: 數字ScalarField2D SelectCurvature(
ScalarField2D source,
TerrainCurvatureType type = TerrainCurvatureType.Mean,
double scaleMetres = 20,
HeightmapSelectorPolarity polarity = HeightmapSelectorPolarity.Convex,
double contrast = 1,
double referenceCurvature = 0)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源 | Scalar Field | — | Heightmap in metres. |
| 型別 | Terrain Curvature Type | 平均 | Profile, Plan or Mean curvature. |
| 尺度(米) | 數字 | 20 | Size of landform to respond to: standard deviation in metres of the smoothing applied first. |
| 極性 | Heightmap Selector Polarity | 凸 | Convex, Concave, or Signed (0.5 is flat). |
| 對比度 | 數字 | 1 | Multiplier before saturation; higher makes the mask harder and wider. |
| 參考曲率 | 數字 | 0 | Curvature in 1/metre that maps to tanh(1) ≈ 0.76 (Convex/Concave); 0 picks it from the field. |
返回
| 結果 | Scalar Field |
備註
The curvature is divided by a reference curvature and passed through tanh, so the mask saturates smoothly instead of clipping. With the reference left at 0 it is the field's own 90th percentile of |curvature|, which adapts to any terrain but differs between tiles; give an explicit reference (in 1/metre, e.g. 0.002 for a 500 m bending radius) when tiles must match.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖選擇器
- 所屬包
- 程序化生成
按距離帶選擇
函數Selects a band of ground at a distance range from a mask: shore strips beside water, riverbank sediment, verges along roads, scree aprons below rock.
按距離帶選擇 -> Scalar Field
蒙版: Scalar Field
最小距離(米): 數字
最大距離(米): 數字
衰減(米): 數字
閾值: 數字ScalarField2D SelectDistanceBand(
ScalarField2D mask,
double minMetres = 0,
double maxMetres = 30,
double falloffMetres = 10,
double threshold = 0.5)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 蒙版 | Scalar Field | — | Mask to measure from. |
| 最小距離(米) | 數字 | 0 | Inner edge of the band, metres from the mask. |
| 最大距離(米) | 數字 | 30 | Outer edge of the band, metres from the mask. |
| 衰減(米) | 數字 | 10 | Width in metres of the fade on each side. |
| 閾值 | 數字 | 0.5 | Value at or above which a cell belongs to the mask. |
返回
| 結果 | Scalar Field |
備註
Built on HeightmapSelectors.CalculateDistance. The band is fully selected between Min Metres and Max Metres from the mask and fades over Falloff Metres on each side; with a minimum of 0 the mask itself is included and only the outer edge fades.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖選擇器
- 所屬包
- 程序化生成