高度圖生成器
8 個節點
本頁內容 8
配置高度圖噪聲設定
函數Creates a configured Types.HeightmapNoiseSettings instance.
簽名
配置高度圖噪聲設定 -> HeightmapNoiseSettings
寬度: 整數
高度: 整數
種子: 整數
噪聲型別: FastNoiseLiteLegacy.NoiseType
分形型別: FastNoiseLiteLegacy.FractalType
特徵尺寸: 低精度數字
倍頻程數: 整數
空隙度: 低精度數字
增益: 低精度數字
加權強度: 低精度數字
往復強度: 低精度數字
多重分形偏移: 低精度數字
細胞距離函數: FastNoiseLiteLegacy.CellularDistanceFunction
細胞返回型別: FastNoiseLiteLegacy.CellularReturnType
啟用域扭曲: 真否
域扭曲型別: FastNoiseLiteLegacy.DomainWarpType
域扭曲特徵尺寸: 低精度數字
域扭曲振幅: 低精度數字
X 偏移: 低精度數字
Y 偏移: 低精度數字
幅度: 數字HeightmapNoiseSettings ConfigureHeightmapNoiseSettings(
int width = 1024,
int height = 1024,
int seed = 1337,
FastNoiseLiteLegacy.NoiseType noiseType = NoiseType.Perlin,
FastNoiseLiteLegacy.FractalType fractalType = FractalType.FractalNoiseFBm,
float featureSize = 500f,
int octaves = 6,
float lacunarity = 2f,
float gain = 0.5f,
float weightedStrength = 0f,
float pingPongStrength = 2f,
float multifractalOffset = 1f,
FastNoiseLiteLegacy.CellularDistanceFunction cellularDistanceFunction = CellularDistanceFunction.EuclideanSq,
FastNoiseLiteLegacy.CellularReturnType cellularReturnType = CellularReturnType.Distance,
bool enableDomainWarp = false,
FastNoiseLiteLegacy.DomainWarpType domainWarpType = DomainWarpType.OpenSimplex2,
float domainWarpFeatureSize = 0.01f,
float domainWarpAmplitude = 30f,
float offsetX = 0f,
float offsetY = 0f,
double magnitude = 1)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 整數 | 1024 | Width of the generated heightmap in samples. |
| 高度 | 整數 | 1024 | Height of the generated heightmap in samples. |
| 種子 | 整數 | 1337 | Seed used by the noise generator. |
| 噪聲型別 | FastNoiseLiteLegacy.NoiseType | 柏林噪聲 | Noise algorithm used to generate the base heightmap. |
| 分形型別 | FastNoiseLiteLegacy.FractalType | 分形布朗運動 | Fractal algorithm applied to the base noise. |
| 特徵尺寸 | 低精度數字 | 500 | Size of base noise level; Smaller value means smaller details; Larger value produce larger terrain features; Typical range: bigger than 1. |
| 倍頻程數 | 整數 | 6 | Number of fractal noise layers. |
| 空隙度 | 低精度數字 | 2 | Frequency multiplier between octaves. |
| 增益 | 低精度數字 | 0.5 | Amplitude multiplier between octaves, also known as persistence. |
| 加權強度 | 低精度數字 | 0 | Strength of weighted fractal contribution. |
| 往復強度 | 低精度數字 | 2 | Strength used by ping-pong fractal noise. |
| 多重分形偏移 | 低精度數字 | 1 | |
| 細胞距離函數 | FastNoiseLiteLegacy.CellularDistanceFunction | 歐幾里得距離平方 | Distance function used by cellular noise. |
| 細胞返回型別 | FastNoiseLiteLegacy.CellularReturnType | 距離 | Return type used by cellular noise. |
| 啟用域扭曲 | 真否 | False | Whether domain warping is applied before sampling noise. |
| 域扭曲型別 | FastNoiseLiteLegacy.DomainWarpType | OpenSimplex2 | Domain warp algorithm. |
| 域扭曲特徵尺寸 | 低精度數字 | 0.01 | Feature size of domain warping (inverse of frequency). |
| 域扭曲振幅 | 低精度數字 | 30 | Amplitude of the domain warp displacement. |
| X 偏移 | 低精度數字 | 0 | Horizontal sampling offset. |
| Y 偏移 | 低精度數字 | 0 | Vertical sampling offset. |
| 幅度 | 數字 | 1 | Scalar multiplier applied to generated height values. |
返回
| 結果 | HeightmapNoiseSettings |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖生成器
- 所屬包
- 程序化生成
從灰度影像生成
函數Generate heightmap from high resolution grayscale image.
簽名
從灰度影像生成 -> Scalar Field
影像: Grayscale16BitImage
最小高度: 數字
最大高度: 數字ScalarField2D FromGrayscaleImage(
Grayscale16BitImage image,
double minHeight,
double maxHeight)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 影像 | Grayscale16BitImage | — | |
| 最小高度 | 數字 | — | |
| 最大高度 | 數字 | — |
返回
| 結果 | Scalar Field |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖生成器
- 所屬包
- 程序化生成
從像素影像生成
函數此節點沒有文件說明。
簽名
從像素影像生成 -> Scalar Field
影像: Pixel Image
最小高度: 數字
最大高度: 數字
使用亮度: 真否ScalarField2D FromPixelImage(
PixelImage image,
double minHeight,
double maxHeight,
bool useLuminance = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 影像 | Pixel Image | — | |
| 最小高度 | 數字 | — | |
| 最大高度 | 數字 | — | |
| 使用亮度 | 真否 | True |
返回
| 結果 | Scalar Field |
備註
TODO: Support 16-bit grayscale, which is very useful for terrain heightmaps.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖生成器
- 所屬包
- 程序化生成
生成域扭曲地形
函數此節點沒有文件說明。
簽名
生成域扭曲地形 -> Scalar Field
寬度: 整數
高度: 整數
種子: 整數
特徵尺寸: 低精度數字
最小海拔: 數字
最大海拔: 數字
倍頻程數: 整數
域扭曲特徵尺寸: 低精度數字
扭曲振幅: 低精度數字
平行計算: 真否ScalarField2D GenerateDomainWarpedTerrain(
int width = 1024,
int height = 1024,
int seed = 1337,
float featureSize = 500f,
double minElevation = -200,
double maxElevation = 500,
int octaves = 6,
float domainWarpFeatureSize = 100f,
float warpAmplitude = 50f,
bool parallelCompute = false)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 整數 | 1024 | |
| 高度 | 整數 | 1024 | |
| 種子 | 整數 | 1337 | |
| 特徵尺寸 | 低精度數字 | 500 | Scale (inverse frequency) of the noise; Smaller value means smaller details; Typical range: bigger than 1. |
| 最小海拔 | 數字 | -200 | |
| 最大海拔 | 數字 | 500 | |
| 倍頻程數 | 整數 | 6 | |
| 域扭曲特徵尺寸 | 低精度數字 | 100 | |
| 扭曲振幅 | 低精度數字 | 50 | |
| 平行計算 | 真否 | False |
返回
| 結果 | Scalar Field |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖生成器
- 所屬包
- 程序化生成
生成分形噪聲地形
函數Generates terrain using Fractal Brownian Motion (fBm).
簽名
生成分形噪聲地形 -> Scalar Field
寬度: 整數
高度: 整數
特徵尺寸: 低精度數字
最小海拔: 數字
最大海拔: 數字
倍頻程數: 整數
持續度: 低精度數字
空隙度: 低精度數字
X 偏移: 低精度數字
Y 偏移: 低精度數字
種子: 整數
平行計算: 真否ScalarField2D GenerateFractalNoiseTerrain(
int width = 1024,
int height = 1024,
float featureSize = 500f,
double minElevation = -200,
double maxElevation = 500,
int octaves = 6,
float persistence = 0.5f,
float lacunarity = 2f,
float offsetX = 0f,
float offsetY = 0f,
int seed = 1337,
bool parallelCompute = false)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 整數 | 1024 | |
| 高度 | 整數 | 1024 | |
| 特徵尺寸 | 低精度數字 | 500 | Scale (inverse frequency) of the noise; Smaller value means smaller details; Typical range: bigger than 1. |
| 最小海拔 | 數字 | -200 | |
| 最大海拔 | 數字 | 500 | |
| 倍頻程數 | 整數 | 6 | Number of octaves. |
| 持續度 | 低精度數字 | 0.5 | Controls the amplitude of each octave. |
| 空隙度 | 低精度數字 | 2 | Controls the frequency of each octave. |
| X 偏移 | 低精度數字 | 0 | X offset for the noise. |
| Y 偏移 | 低精度數字 | 0 | Y offset for the noise. |
| 種子 | 整數 | 1337 | |
| 平行計算 | 真否 | False |
返回
| 結果 | Scalar Field |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖生成器
- 所屬包
- 程序化生成
生成基於噪聲的高度圖
函數此節點沒有文件說明。
簽名
生成基於噪聲的高度圖 -> Scalar Field
設定: HeightmapNoiseSettings
最小幅度: 可選數字
最大幅度: 可選數字
啟用並行: 真否
最大並行度: 整數ScalarField2D GenerateNoiseBasedHeightmap(
HeightmapNoiseSettings settings,
double? minMagnitude,
double? maxMagnitude,
bool enableParallelism = false,
int maxDegreeOfParallelism = -1)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 設定 | HeightmapNoiseSettings | — | |
| 最小幅度 | 可選數字 | — | |
| 最大幅度 | 可選數字 | — | |
| 啟用並行 | 真否 | False | |
| 最大並行度 | 整數 | -1 |
返回
| 結果 | Scalar Field |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖生成器
- 所屬包
- 程序化生成
生成柏林噪聲地形
函數Generates terrain using Perlin noise.
簽名
生成柏林噪聲地形 -> Scalar Field
寬度: 整數
高度: 整數
特徵尺寸: 低精度數字
最小海拔: 數字
最大海拔: 數字
X 偏移: 低精度數字
Y 偏移: 低精度數字
種子: 整數
平行計算: 真否ScalarField2D GeneratePerlinNoiseTerrain(
int width = 1024,
int height = 1024,
float featureSize = 500f,
double minElevation = -200,
double maxElevation = 500,
float offsetX = 0f,
float offsetY = 0f,
int seed = 0,
bool parallelCompute = false)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 整數 | 1024 | |
| 高度 | 整數 | 1024 | |
| 特徵尺寸 | 低精度數字 | 500 | Scale (inverse frequency) of the noise; Smaller value means smaller details; Typical range: bigger than 1. |
| 最小海拔 | 數字 | -200 | |
| 最大海拔 | 數字 | 500 | |
| X 偏移 | 低精度數字 | 0 | X offset for the noise. |
| Y 偏移 | 低精度數字 | 0 | Y offset for the noise. |
| 種子 | 整數 | 0 | |
| 平行計算 | 真否 | False |
返回
| 結果 | Scalar Field |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖生成器
- 所屬包
- 程序化生成
生成脊狀多重分形地形
函數Generates terrain using Ridged Multifractal noise.
簽名
生成脊狀多重分形地形 -> Scalar Field
寬度: 整數
高度: 整數
特徵尺寸: 低精度數字
最小海拔: 數字
最大海拔: 數字
倍頻程數: 整數
空隙度: 低精度數字
增益: 低精度數字
X 偏移: 低精度數字
Y 偏移: 低精度數字
種子: 整數
平行計算: 真否ScalarField2D GenerateRidgedMultifractalTerrain(
int width = 1024,
int height = 1024,
float featureSize = 500f,
double minElevation = -200,
double maxElevation = 500,
int octaves = 6,
float lacunarity = 2f,
float gain = 0.5f,
float offsetX = 0f,
float offsetY = 0f,
int seed = 0,
bool parallelCompute = false)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 整數 | 1024 | |
| 高度 | 整數 | 1024 | |
| 特徵尺寸 | 低精度數字 | 500 | Scale (inverse frequency) of the noise; Smaller value means smaller details; Typical range: bigger than 1. |
| 最小海拔 | 數字 | -200 | |
| 最大海拔 | 數字 | 500 | |
| 倍頻程數 | 整數 | 6 | Number of octaves. |
| 空隙度 | 低精度數字 | 2 | |
| 增益 | 低精度數字 | 0.5 | |
| X 偏移 | 低精度數字 | 0 | X offset for the noise. |
| Y 偏移 | 低精度數字 | 0 | Y offset for the noise. |
| 種子 | 整數 | 0 | |
| 平行計算 | 真否 | False |
返回
| 結果 | Scalar Field |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖生成器
- 所屬包
- 程序化生成