元編程參考文件

紋理噪聲

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
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
紋理噪聲
所屬包
影像處理