元編程參考文件

程序化紋理生成器

43 個節點

本頁內容 43

轉換取樣座標

函數

From pixel space to ProceduralNoiseSamplingSettings.TargetCoordinateSpace.

簽名
轉換取樣座標 -> (取樣 X: 低精度數字, 取樣 Y: 低精度數字)
    寬度: 整數
    高度: 整數
    取樣方式: ProceduralNoiseSamplingSettings
    像素 X: 整數
    像素 Y: 整數
void ConvertSampleCoordinates(
    int width,
    int height,
    ProceduralNoiseSamplingSettings sampling,
    int pixelX,
    int pixelY,
    out float sampleX,
    out float sampleY)

參數

名稱型別預設值說明
寬度整數—
高度整數—
取樣方式ProceduralNoiseSamplingSettings—
像素 X整數—
像素 Y整數—

返回

取樣 X低精度數字
取樣 Y低精度數字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立樹皮(木板)

函數

Bark-like vertical ridges with warped grooves, fibers, cracks, and chunky breakup.
Intended for albedo/height-like use.

簽名
建立樹皮(木板)(選項: BarkOptions) -> Pixel Image
PixelImage CreateBark(BarkOptions options)

參數

名稱型別預設值說明
選項BarkOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立翻騰圖案

函數

Creates billow noise, which emphasizes soft cloud-like blobs.

簽名
建立翻騰圖案(選項: Fractal Noise Options) -> Pixel Image
PixelImage CreateBillowPattern(FractalNoiseOptions options)

參數

名稱型別預設值說明
選項Fractal Noise Options—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立磚塊紋理

函數

此節點沒有文件說明。

簽名
建立磚塊紋理 -> (結果: Pixel Image, 蒙版: Grayscale16BitImage)
    寬度: 整數
    高度: 整數
    行數: 整數
    列數: 整數
    磚縫寬度: 整數
    距離場: 真否
PixelImage CreateBrickTexture(
    out Grayscale16BitImage mask,
    int width = 1024,
    int height = 1024,
    int rows = 12,
    int cols = 7,
    int grooveSize = 10,
    bool distanceField = false)

參數

名稱型別預設值說明
寬度整數1024
高度整數1024
行數整數12
列數整數7
磚縫寬度整數10
距離場真否False

返回

結果Pixel Image
蒙版Grayscale16BitImage
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立細胞圖案

函數

Creates a cellular / Worley-style texture.

簽名
建立細胞圖案(選項: Cellular Noise Options) -> Pixel Image
PixelImage CreateCellularPattern(CellularNoiseOptions options)

參數

名稱型別預設值說明
選項Cellular Noise Options—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立棋盤格

函數

此節點沒有文件說明。

簽名
建立棋盤格(選項: CheckerOptions) -> Pixel Image
PixelImage CreateCheckerboard(CheckerOptions options)

參數

名稱型別預設值說明
選項CheckerOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立等高線

函數

Thresholded fractal height field converted into contour lines.

簽名
建立等高線(選項: ContourLinesOptions) -> Pixel Image
PixelImage CreateContourLines(ContourLinesOptions options)

參數

名稱型別預設值說明
選項ContourLinesOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立交叉陰影線

函數

此節點沒有文件說明。

簽名
建立交叉陰影線(選項: CrossHatchOptions) -> Pixel Image
PixelImage CreateCrossHatch(CrossHatchOptions options)

參數

名稱型別預設值說明
選項CrossHatchOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立虛線陰影線

函數

此節點沒有文件說明。

簽名
建立虛線陰影線(選項: DashedHatchOptions) -> Pixel Image
PixelImage CreateDashedHatch(DashedHatchOptions options)

參數

名稱型別預設值說明
選項DashedHatchOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立域扭曲圖案

函數

Creates a domain-warped noise texture.

簽名
建立域扭曲圖案(選項: DomainWarpedNoiseOptions) -> Pixel Image
PixelImage CreateDomainWarpedPattern(DomainWarpedNoiseOptions options)

參數

名稱型別預設值說明
選項DomainWarpedNoiseOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立圓點

函數

此節點沒有文件說明。

簽名
建立圓點(選項: DotPatternOptions) -> Pixel Image
PixelImage CreateDots(DotPatternOptions options)

參數

名稱型別預設值說明
選項DotPatternOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立分形圖案

函數

Creates a standard fractal texture such as FBm, Ridged, or PingPong.

簽名
建立分形圖案(選項: Fractal Noise Options) -> Pixel Image
PixelImage CreateFractalPattern(FractalNoiseOptions options)

參數

名稱型別預設值說明
選項Fractal Noise Options—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立網格

函數

此節點沒有文件說明。

簽名
建立網格(選項: GridOptions) -> Pixel Image
PixelImage CreateGrid(GridOptions options)

參數

名稱型別預設值說明
選項GridOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立半色調圓點

函數

Analytic halftone dots driven by radial or linear gradient.

簽名
建立半色調圓點(選項: HalftoneDotsOptions) -> Pixel Image
PixelImage CreateHalftoneDots(HalftoneDotsOptions options)

參數

名稱型別預設值說明
選項HalftoneDotsOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立陰影線

函數

此節點沒有文件說明。

簽名
建立陰影線(選項: HatchOptions) -> Pixel Image
PixelImage CreateHatch(HatchOptions options)

參數

名稱型別預設值說明
選項HatchOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立人字紋(磚塊)

函數

Classic 90-degree herringbone pavers / brick layout.

簽名
建立人字紋(磚塊)(選項: HerringboneOptions) -> Pixel Image
PixelImage CreateHerringbone(HerringboneOptions options)

參數

名稱型別預設值說明
選項HerringboneOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立六邊形網格

函數

Pointy-top hex grid. Repeats analytically and picks nearest candidate centers.

簽名
建立六邊形網格(選項: HexGridOptions) -> Pixel Image
PixelImage CreateHexGrid(HexGridOptions options)

參數

名稱型別預設值說明
選項HexGridOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立朱利亞集合

函數

Creates a Julia fractal texture using escape-time iteration.

簽名
建立朱利亞集合(選項: JuliaOptions) -> Pixel Image
PixelImage CreateJulia(JuliaOptions options)

參數

名稱型別預設值說明
選項JuliaOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立曼德博集合

函數

Creates a Mandelbrot fractal texture using escape-time iteration.

簽名
建立曼德博集合(選項: MandelbrotOptions) -> Pixel Image
PixelImage CreateMandelbrot(MandelbrotOptions options)

參數

名稱型別預設值說明
選項MandelbrotOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立大理石圖案

函數

Creates a marble-like texture by modulating sinusoidal bands with noise.

簽名
建立大理石圖案(選項: Marble Noise Options) -> Pixel Image
PixelImage CreateMarblePattern(MarbleNoiseOptions options)

參數

名稱型別預設值說明
選項Marble Noise Options—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立砌體(磚塊)

函數

Stack bond / running bond / basket weave masonry.

簽名
建立砌體(磚塊)(選項: MasonryOptions) -> Pixel Image
PixelImage CreateMasonry(MasonryOptions options)

參數

名稱型別預設值說明
選項MasonryOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立迷宮

函數

此節點沒有文件說明。

簽名
建立迷宮(選項: MazeGenOptions) -> Pixel Image
PixelImage CreateMaze(MazeGenOptions options)

參數

名稱型別預設值說明
選項MazeGenOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立噪聲圖案

函數

Creates a basic FastNoiseLite texture with no fractal stacking.

簽名
建立噪聲圖案(選項: BasicNoiseOptions) -> Pixel Image
PixelImage CreateNoisePattern(BasicNoiseOptions options)

參數

名稱型別預設值說明
選項BasicNoiseOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立法線貼圖

函數

Converts a grayscale heightmap into a tangent-space normal map.

簽名
建立法線貼圖 -> Pixel Image
    高度圖: Pixel Image
    強度: 低精度數字
    環繞: 真否
PixelImage CreateNormalMap(
    PixelImage heightMap,
    float strength = 2f,
    bool wrap = true)

參數

名稱型別預設值說明
高度圖Pixel Image—Source heightmap.
強度低精度數字2Normal intensity multiplier.
環繞真否TrueWhether edge sampling wraps around.

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立拼花(木板)

函數

Wood parquet: straight, basket weave, or herringbone.

簽名
建立拼花(木板)(選項: ParquetOptions) -> Pixel Image
PixelImage CreateParquet(ParquetOptions options)

參數

名稱型別預設值說明
選項ParquetOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立格紋

函數

Multi-stripe plaid / tartan.

簽名
建立格紋(選項: PlaidOptions) -> Pixel Image
PixelImage CreatePlaid(PlaidOptions options)

參數

名稱型別預設值說明
選項PlaidOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立放射狀圖案

函數

此節點沒有文件說明。

簽名
建立放射狀圖案(選項: RadialBurstOptions) -> Pixel Image
PixelImage CreateRadialBurst(RadialBurstOptions options)

參數

名稱型別預設值說明
選項RadialBurstOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立同心環

函數

此節點沒有文件說明。

簽名
建立同心環(選項: RingPatternOptions) -> Pixel Image
PixelImage CreateRings(RingPatternOptions options)

參數

名稱型別預設值說明
選項RingPatternOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立扇貝紋

函數

Fish scales / scallops. Draws repeated upper semicircle arcs with alternating row offsets.

簽名
建立扇貝紋(選項: ScallopOptions) -> Pixel Image
PixelImage CreateScallops(ScallopOptions options)

參數

名稱型別預設值說明
選項ScallopOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立石塊(磚塊)

函數

Irregular ashlar / stone block pattern using deterministic hashed row and block splits.

簽名
建立石塊(磚塊)(選項: StoneBlocksOptions) -> Pixel Image
PixelImage CreateStoneBlocks(StoneBlocksOptions options)

參數

名稱型別預設值說明
選項StoneBlocksOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立閾值蒙版

函數

Creates a binary threshold mask from a height-like texture.

簽名
建立閾值蒙版 -> Pixel Image
    源: Pixel Image
    閾值(0 到 1): 低精度數字
    反轉: 真否
PixelImage CreateThresholdMask(
    PixelImage source,
    float threshold01 = 0.5f,
    bool invert = false)

參數

名稱型別預設值說明
源Pixel Image—
閾值(0 到 1)低精度數字0.5
反轉真否False

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立湍流圖案

函數

Creates turbulence noise, commonly used for masks and distortion fields.
Output is naturally in [0, 1].

簽名
建立湍流圖案(選項: Fractal Noise Options) -> Pixel Image
PixelImage CreateTurbulencePattern(FractalNoiseOptions options)

參數

名稱型別預設值說明
選項Fractal Noise Options—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立沃羅諾伊裂紋

函數

Crack network using distance difference between nearest and second-nearest jittered cell points.

簽名
建立沃羅諾伊裂紋(選項: VoronoiCracksOptions) -> Pixel Image
PixelImage CreateVoronoiCracks(VoronoiCracksOptions options)

參數

名稱型別預設值說明
選項VoronoiCracksOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立編織紋

函數

Over-under woven fabric pattern with simple shading.

簽名
建立編織紋(選項: WeaveOptions) -> Pixel Image
PixelImage CreateWeave(WeaveOptions options)

參數

名稱型別預設值說明
選項WeaveOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立白噪聲

函數

Creates white noise using a deterministic PRNG.

簽名
建立白噪聲(選項: WhiteNoiseOptions) -> Pixel Image
PixelImage CreateWhiteNoise(WhiteNoiseOptions options)

參數

名稱型別預設值說明
選項WhiteNoiseOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立木紋(木板)

函數

Creates a wood-ring texture.

簽名
建立木紋(木板)(選項: WoodNoiseOptions) -> Pixel Image
PixelImage CreateWood(WoodNoiseOptions options)

參數

名稱型別預設值說明
選項WoodNoiseOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立精細木紋(木板)

函數

Create detailed wood texture.

簽名
建立精細木紋(木板)(設定: WoodGenerator.Settings) -> Pixel Image
PixelImage CreateWoodDetailed(WoodGenerator.Settings settings)

參數

名稱型別預設值說明
設定WoodGenerator.Settings—

返回

結果Pixel Image

備註

Can take a few seconds to run; Enable parallel in settings.

所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

建立鋸齒紋

函數

此節點沒有文件說明。

簽名
建立鋸齒紋(選項: ZigZagOptions) -> Pixel Image
PixelImage CreateZigZag(ZigZagOptions options)

參數

名稱型別預設值說明
選項ZigZagOptions—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

生成高階分形紋理

函數

Creates a Terragen Power-Fractal-like color texture with rough high octaves and spatially clustered detail.

簽名
生成高階分形紋理(選項: Blend Fractal Texture Options) -> Pixel Image
PixelImage GenerateBlendedFractalTexture(BlendFractalTextureOptions options)

參數

名稱型別預設值說明
選項Blend Fractal Texture Options—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

生成程序化天空

函數

Aggregate entry.

簽名
生成程序化天空 -> Hdr Pixel Image
    方位角: 低精度數字
    仰角: 低精度數字
HdrPixelImage GenerateProceduralSky(
    float azimuth = 45f,
    float elevation = 30f)

參數

名稱型別預設值說明
方位角低精度數字45Azimuth in degrees.
仰角低精度數字30Elevation in degrees.

返回

結果Hdr Pixel Image

備註

Placeholder, pending API definitions.

所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

對映體素場景

函數

Produces an orthographic image projection of a voxel scene along one of its six axis directions.

簽名
對映體素場景 -> Pixel Image
    場景: Voxel Scene
    方向: VoxelAxisDirection
    近剪裁面: 可選整數
    累積透明度: 真否
PixelImage MapVoxelScene(
    VoxelScene scene,
    VoxelAxisDirection direction,
    int? clippingStart,
    bool accumulateTransparency = false)

參數

名稱型別預設值說明
場景Voxel Scene—Voxel scene to project.
方向VoxelAxisDirection—Direction from which the scene is viewed.
近剪裁面可選整數—Number of leading voxel planes skipped relative to the selected viewing direction. Null, zero, and negative values disable clipping.
累積透明度真否FalseWhen false, the first non-air voxel is treated as fully opaque. When true, voxels are composited front-to-back using premultiplied color accumulation.

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

重複

函數

此節點沒有文件說明。

簽名
重複(X: 低精度數字, 週期: 低精度數字) -> 低精度數字
float Repeat(float x, float period)

參數

名稱型別預設值說明
X低精度數字—
週期低精度數字—

返回

結果低精度數字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理

視覺化噪聲

函數

Quick helper to visualize a given noise.

簽名
視覺化噪聲 -> Pixel Image
    噪聲生成器: IScalarNoiseGenerator
    寬度: 整數
    高度: 整數
PixelImage VisualizeNoise(
    IScalarNoiseGenerator noiseGenerator,
    int width = 1024,
    int height = 1024)

參數

名稱型別預設值說明
噪聲生成器IScalarNoiseGenerator—
寬度整數1024
高度整數1024

返回

結果Pixel Image

備註

Mostly useful for testing purpose.

所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
程序化紋理生成器
所屬包
影像處理