元编程参考文档

纹理噪声

7 个节点

本页内容 7

各向异性噪声

函数

Fractal noise stretched one way: different numbers of cells across and down, for grain, brushed metal, rain streaks and fibres.

签名
各向异性噪声 -> Texture
    基函数: Noise Basis
    横向尺度: 整数
    纵向尺度: 整数
    倍频程数: 整数
    粗糙度: 数字
    随机种子: 整数
    尺寸: 整数
Texture AnisotropicNoise(
    NoiseBasis basis = NoiseBasis.Perlin,
    int scaleX = 2,
    int scaleY = 32,
    int octaves = 5,
    double roughness = 0.5,
    int seed = 0,
    int size = 1024)

参数

名称类型默认值说明
基函数Noise Basis柏林What each octave is.
横向尺度整数2How many cells across.
纵向尺度整数32How many cells down.
倍频程数整数5How many octaves, from 1 to 12.
粗糙度数字0.5How strong each octave is relative to the one before.
随机种子整数0Which random pattern.
尺寸整数1024Width and height in pixels.

返回

结果Texture
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理噪声
所属包
图像处理

细胞噪声

函数

Cellular (Worley) noise: the distance to scattered points, which draws cells. F1 is the distance to the nearest point (round pits), F2 to the second nearest, F2 minus F1 bright ridges along the borders; Edges is the true distance to the nearest border, even in width; Cell Value a flat random grey per cell.

签名
细胞噪声 -> Texture
    模式: Cellular Mode
    尺度: 整数
    抖动: 数字
    距离: Cell Distance
    随机种子: 整数
    尺寸: 整数
Texture CellularNoise(
    CellularMode mode = CellularMode.F1,
    int scale = 8,
    double jitter = 1,
    CellDistance distance = CellDistance.Euclidean,
    int seed = 0,
    int size = 1024)

参数

名称类型默认值说明
模式Cellular ModeF1What is measured.
尺度整数8How many cells across the texture.
抖动数字1How far each point strays from its cell's centre, 0 (a grid) to 1 (fully random).
距离Cell Distance欧几里得How distance is measured, which sets the cells' shapes.
随机种子整数0Which random pattern.
尺寸整数1024Width and height in pixels.

返回

结果Texture
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理噪声
所属包
图像处理

金属片

函数

Metallic flakes: a normal map of tiny facets, each cell of a cellular pattern tilted its own random way - the sparkle of car paint, glitter, mica and galvanised steel. Flakes are often finer than any texture can hold, so seen up close they are evaluated where they are seen, and seen from afar they average out toward a flat surface instead of flickering.

签名
金属片 -> (结果: Texture, 片随机值: Texture)
    尺度: 整数
    倾斜: 数字
    覆盖率: 数字
    随机种子: 整数
    尺寸: 整数
Texture Flakes(
    out Texture flakeRandom,
    int scale = 256,
    double tilt = 0.35,
    double coverage = 1,
    int seed = 0,
    int size = 1024)

参数

名称类型默认值说明
尺度整数256How many flakes across the texture.
倾斜数字0.35How far a flake may lean, 0 (flat) to 1 (on its edge).
覆盖率数字1The share of the surface that is flakes, 0 to 1; the rest is flat binder.
随机种子整数0Which random pattern.
尺寸整数1024Width and height in pixels.

返回

结果Texture
片随机值Texture
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理噪声
所属包
图像处理

分形噪声

函数

Several octaves of noise added together, each finer and fainter than the last: clouds, dirt, the irregularity of anything natural. Roughness sets how much the fine octaves show.

签名
分形噪声 -> Texture
    基函数: Noise Basis
    尺度: 整数
    倍频程数: 整数
    粗糙度: 数字
    随机种子: 整数
    尺寸: 整数
Texture FractalNoise(
    NoiseBasis basis = NoiseBasis.Perlin,
    int scale = 4,
    int octaves = 6,
    double roughness = 0.5,
    int seed = 0,
    int size = 1024)

参数

名称类型默认值说明
基函数Noise Basis柏林What each octave is: Perlin (soft), Value (blocky), Ridged (sharp crests), Billow (sharp troughs) or Cellular (pebbles).
尺度整数4How many cells across the texture in the first octave; larger is finer.
倍频程数整数6How many octaves, from 1 to 12.
粗糙度数字0.5How strong each octave is relative to the one before, from 0 to 1; 0.5 is the classic cloud.
随机种子整数0Which random pattern.
尺寸整数1024Width and height in pixels.

返回

结果Texture
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理噪声
所属包
图像处理

颗粒

函数

Gaussian-like grain built from several octaves of white noise blurred to different sizes: the even, fine speckle of sand, concrete aggregate or film grain.

签名
颗粒(颗粒大小: 数字, 随机种子: 整数, 尺寸: 整数) -> Texture
Texture Grain(
    double grainSize = 2,
    int seed = 0,
    int size = 1024)

参数

名称类型默认值说明
颗粒大小数字2The size of a grain, in pixels of a 1024-pixel texture.
随机种子整数0Which random pattern.
尺寸整数1024Width and height in pixels.

返回

结果Texture
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理噪声
所属包
图像处理

柏林噪声

函数

Smooth gradient (Perlin) noise: one octave of soft hills.

签名
柏林噪声(尺度: 整数, 随机种子: 整数, 尺寸: 整数) -> Texture
Texture PerlinNoise(
    int scale = 8,
    int seed = 0,
    int size = 1024)

参数

名称类型默认值说明
尺度整数8How many cells across the texture; larger is finer.
随机种子整数0Which random pattern.
尺寸整数1024Width and height in pixels.

返回

结果Texture
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理噪声
所属包
图像处理

白噪声

函数

A different random value at every pixel, evenly spread from 0 to 1: the raw material of dithering, sparkle and grain.

签名
白噪声(随机种子: 整数, 尺寸: 整数) -> Texture
Texture WhiteNoise(int seed = 0, int size = 1024)

参数

名称类型默认值说明
随机种子整数0Which random pattern.
尺寸整数1024Width and height in pixels.

返回

结果Texture
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理噪声
所属包
图像处理