Back to Node List

Region Pattern Assign

region_pattern_assign

Assigns palette colors or texture samples to each RegionMap area

Reviewed
Guide available
The node name and summary are available in English. Port, parameter, and article details are currently shown in Japanese.

Input Ports

NameTypeDescription
領域
regions
RegionMap
Required
割り当てに使う RegionMap です
パレット
palette
Palette
パレット方式で使う任意のパレットです
パターン
pattern
Image
模様方式で使う任意の画像です

Output Ports

NameTypeDescription
画像
output
Image
領域ごとに模様を割り当てた画像です
ラベル
labels
Map
Inspector に重ねるIDラベル位置です

Parameters

NameTypeDefaultRangeDescription / Options
方式
mode
Enum
PaletteById

領域へ何を割り当てるかです

  • パレットID順PaletteById
    領域ID順にパレット色を割り当てます
  • パレットランダムPaletteRandom
    領域ごとに安定したランダムなパレット色を割り当てます
  • 模様タイルPatternTiled
    模様画像を全体にタイル状に貼ります
  • 領域別模様PatternPerRegion
    領域ごとに模様の位置をずらして貼ります
  • 面積明度AreaShade
    領域面積で2色の間を塗り分けます
色A
color_a
Color
[0.18000000715255737,0.2199999988079071,0.2800000011920929,1]

面積明度方式の小さい側の色です

色B
color_b
Color
[0.7200000286102295,0.7799999713897705,0.6399999856948853,1]

面積明度方式の大きい側の色です

タイル倍率
tile_scale
Int
11–64

模様画像を何倍のピクセル単位で読むかです

シード
seed
Int
10–99999

ランダム割当に使うシードです

ID表示
show_ids
Bool
false

Inspector のプレビュー上に領域IDラベルを表示します

Overview

An advanced counterpart to region_fill that assigns palette colors or pattern images to each RegionMap region and renders an image. It automatically creates texture variation such as a slightly different stone pattern in every region.

It assigns palette colors or pattern images to individual regions, supporting region-based coloring for ground, rock, ore, and grime.

Usage tips

  • Per-region pattern mode is the definitive cobblestone treatment: with a stone texture, each stone shows a different part of the same pattern, removing the copied look.
  • Random palette assignment works well with palette workflows. Connect a four-color earth palette to create color variation by region.
  • A practical workflow is to inspect the composition first with region_fill, then replace it with this node for finishing.

Related nodes

  • region_fill — simple color version for initial review
  • palette_create / common_palette_ref — color sources
  • noise_generate — pattern-image source
  • region_border — combines with mortar lines

Key parameters

ID Contents
mode Palette by ID, random palette, pattern tile, per-region pattern, or area-based lightness
color_a / color_b Two colors used for area-based lightness
tile_scale Pixel scale at which the pattern image is sampled
seed Seed for random assignment or per-region pattern offsets
show_ids Display ID labels in the Inspector preview

Pattern Tile repeats the input image unchanged across the full canvas. Per-region Pattern offsets the sampling position for each region, giving every region a slightly different appearance from the same image.

How to use

Region Fill provides simple color separation; this node renders regions while varying how palette colors or patterns are assigned. Use it for terrain surfaces, individual rock faces, ore, and grime.

The output is a regular Image. If downstream processing still needs region IDs, branch the upstream RegionMap along a separate route.

Without a connected palette, the preview uses temporary colors by region ID. To lock production colors, connect palette and select Palette by ID or Random Palette.

Back to Node List
Region Pattern Assign — PixPipeline Node Reference