高度圖濾鏡
7 個節點
本頁內容 7
扭曲
函數Warps a field by two displacement fields, one for each axis, with a maximum displacement in metres.
扭曲 -> Scalar Field
源: Scalar Field
X 位移: Scalar Field
Y 位移: Scalar Field
幅度(米): 數字
以 0.5 為中心: 真否ScalarField2D Distort(
ScalarField2D source,
ScalarField2D displacementX,
ScalarField2D displacementY,
double amplitudeMetres = 20,
bool centredAtHalf = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源 | Scalar Field | — | Field to warp. |
| X 位移 | Scalar Field | — | Displacement along X (columns), the same size as the source. |
| Y 位移 | Scalar Field | — | Displacement along Y (rows), the same size as the source. |
| 幅度(米) | 數字 | 20 | Distance in metres a displacement value of 1 moves the sample. |
| 以 0.5 為中心 | 真否 | True | True for displacement fields in 0..1 (masks, normalised noise), where 0.5 means no movement and 0 and 1 move by minus and plus the amplitude; false when the fields are already signed, centred on zero. |
返回
| 結果 | Scalar Field |
備註
Each output cell reads the source at its own position plus (dx, dy) × amplitude, bilinearly, clamped at the border. Distorting a selector mask by a noise or by the terrain itself removes the grid-straight edges thresholds leave behind; use HeightmapFilters.DistortByNoise when no displacement fields are at hand.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖濾鏡
- 所屬包
- 程序化生成
噪聲扭曲
函數Warps a field by a smooth fractal noise, with the noise's feature size and the warp's reach in metres.
噪聲扭曲 -> Scalar Field
源: Scalar Field
幅度(米): 數字
特徵尺寸(米): 數字
種子: 整數
倍頻程數: 整數ScalarField2D DistortByNoise(
ScalarField2D source,
double amplitudeMetres = 20,
double featureSizeMetres = 200,
int seed = 1337,
int octaves = 3)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源 | Scalar Field | — | Field to warp. |
| 幅度(米) | 數字 | 20 | Largest distance in metres a sample moves. |
| 特徵尺寸(米) | 數字 | 200 | Size in metres of the noise's largest features; small values fray edges, large values bend them. |
| 種子 | 整數 | 1337 | Noise seed. |
| 倍頻程數 | 整數 | 3 | Fractal octaves; more adds finer fraying. |
返回
| 結果 | Scalar Field |
備註
The noise is evaluated in world metres, so a 2k and a 1k copy of the same terrain are warped alike. The X and Y displacements use independent seeds.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖濾鏡
- 所屬包
- 程序化生成
擴充
函數Grows or shrinks the bright parts of a mask (or the high parts of a heightmap) by a radius in metres, with a round footprint.
擴充 -> Scalar Field
源: Scalar Field
半徑(米): 數字
方式: Heightmap Expander Mode
柔化(米): 數字ScalarField2D Expand(
ScalarField2D source,
double radiusMetres = 10,
HeightmapExpanderMode mode = HeightmapExpanderMode.Grow,
double softnessMetres = 0)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源 | Scalar Field | — | Mask or field to expand. |
| 半徑(米) | 數字 | 10 | Radius of the disc in metres. Below half a cell the source is returned unchanged. |
| 方式 | Heightmap Expander Mode | 擴張 | Grow (maximum) or Shrink (minimum). |
| 柔化(米) | 數字 | 0 | Optional Gaussian blur in metres applied afterwards, so the new edge fades instead of stepping; 0 keeps the edge hard. |
返回
| 結果 | Scalar Field |
備註
Grow takes the maximum within a disc around each cell (morphological dilation), Shrink the minimum (erosion); grey values are kept, so a soft mask stays soft. Typical uses: spread a rock mask a few metres onto the scree below it, pull grass back from cliff edges, close small holes (grow then shrink) or remove specks (shrink then grow).
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖濾鏡
- 所屬包
- 程序化生成
翻轉
函數Mirrors a field left-right, top-bottom, or both.
翻轉(源: Scalar Field, 水平: 真否, 垂直: 真否) -> Scalar Field
ScalarField2D Flip(
ScalarField2D source,
bool horizontal = true,
bool vertical = false)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源 | Scalar Field | — | Field to mirror. |
| 水平 | 真否 | True | Mirror left-right (reverse each row). |
| 垂直 | 真否 | False | Mirror top-bottom (reverse the order of rows). |
返回
| 結果 | Scalar Field |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖濾鏡
- 所屬包
- 程序化生成
高斯模糊
函數Smooths a field with a Gaussian whose standard deviation is given in metres.
高斯模糊(源: Scalar Field, 標準差(米): 數字) -> Scalar Field
ScalarField2D GaussianBlur(
ScalarField2D source,
double sigmaMetres = 10)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源 | Scalar Field | — | Field to blur. |
| 標準差(米) | 數字 | 10 | Standard deviation of the Gaussian in metres. Features much smaller than this disappear; zero returns a copy. |
返回
| 結果 | Scalar Field |
備註
Unlike HeightmapOperations.Smooth (a box of a radius in cells) this is round, has no blocky ringing, and keeps its size in metres when the resolution changes. The kernel reaches three standard deviations.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖濾鏡
- 所屬包
- 程序化生成
高通
函數Keeps only the detail smaller than a size in metres: the field minus its Gaussian blur.
高通(源: Scalar Field, 標準差(米): 數字) -> Scalar Field
ScalarField2D HighPass(
ScalarField2D source,
double sigmaMetres = 20)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源 | Scalar Field | — | Field to filter. |
| 標準差(米) | 數字 | 20 | Standard deviation in metres of the blur that is subtracted; larger keeps broader features. |
返回
| 結果 | Scalar Field |
備註
The result is centred on zero and in the source's units (metres for a heightmap): positive on bumps and crests narrower than about the given size, negative in dips. Feed it to HeightmapOperations.Normalize or a selector to make a mask.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖濾鏡
- 所屬包
- 程序化生成
銳化
函數Exaggerates detail smaller than a size in metres (unsharp masking): source + amount × high-pass.
銳化 -> Scalar Field
源: Scalar Field
標準差(米): 數字
數量: 數字ScalarField2D Sharpen(
ScalarField2D source,
double sigmaMetres = 20,
double amount = 1)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源 | Scalar Field | — | Field to sharpen. |
| 標準差(米) | 數字 | 20 | Standard deviation in metres separating detail from form. |
| 數量 | 數字 | 1 | How much of the detail to add again; 0 returns the source, 1 doubles the detail, negative values soften. |
返回
| 結果 | Scalar Field |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖濾鏡
- 所屬包
- 程序化生成