高度图生成器
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 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 高度图生成器
- 所属包
- 程序化生成