Back to Node List

Region Strata

region_strata

Generates broken layered RegionMap strata

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
マスク
mask
Image
領域を生成する範囲を制限する任意の画像マスクです。マスクは 明度 * アルファ >= 0.5 のピクセルを有効範囲として扱います。マスク外は OUTSIDE_ID になります。

Output Ports

NameTypeDescription
領域
regions
RegionMap
生成された RegionMap データです
プレビュー
preview
Image
生成した領域を色分けした確認用画像です
ラベル
labels
Map
Inspector に重ねるIDラベル位置です

Parameters

NameTypeDefaultRangeDescription / Options
width
Int
641–2048

RegionMap のピクセル幅です

高さ
height
Int
641–2048

RegionMap のピクセル高さです

層数
layer_count
Int
82–128

主な地層の数です

分断数
break_count
Int
61–128

層を方向に沿って何個に分けるかです

うねり
waviness
Float
50–64 / step 0.5

層の境界をどれだけうねらせるかです

分断ゆらぎ
break_jitter
Float
0.350–1 / step 0.01

分断位置のランダムなずれです

シード
seed
Int
10–99999

地層生成を再現するためのシードです

方向
direction
Enum
Horizontal

地層の主方向です

  • Horizontal
    横方向の地層です
  • Vertical
    縦方向の地層です
  • 右下がりDiagonalDown
    左上から右下へ流れる地層です
  • 右上がりDiagonalUp
    左下から右上へ流れる地層です
左右ループ
wrap_x
Bool
false

左右の端がつながっているものとして生成します

上下ループ
wrap_y
Bool
false

上下の端がつながっているものとして生成します

ID順
id_order
Enum
SeedOrder

生成した領域IDの並べ替え方法です

  • 生成順SeedOrder
    生成時のID順を使います
  • 左上からTopLeft
    外接矩形の上端、次に左端の昇順で小さいIDを割り当てます
  • 右下からBottomRight
    外接矩形の下端、次に右端の降順で小さいIDを割り当てます
  • 面積昇順AreaAsc
    面積が小さい領域から小さいIDを割り当てます
  • 面積降順AreaDesc
    面積が大きい領域から小さいIDを割り当てます
ID表示
show_ids
Bool
false

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

Overview

Generates strata-like regions with undulations, cracks, and steps. It adds geological irregularity to the regular bands of region_bands, providing a base for cliffs, rock walls, soil cross-sections, or dungeon walls with mineral veins.

Usage tips

  • The go-to recipe for a cliff or cross-section is region_strata(Horizontal)region_fill, using a different earth tone for each layer, then region_border for the lines between layers.
  • Think of texture as two controls: waviness for the undulation of layers, and break_count / break_jitter for cracks. Zero waviness with many breaks creates blocky masonry; high waviness with few breaks creates natural strata.
  • For ground in a side-scrolling background, enable wrap_x to make it repeatable.

Related nodes

  • region_bands — regular bands without cracks
  • region_fill / region_border — fills and boundary lines
  • region_merge_small — clean up fine fragments
  • region_noise — use when you want non-directional variation

Directly generates a strata-like RegionMap with cracks and interruptions at the final size. It is suited to rock walls, cliffs, soil cross-sections, and mineral layers.

Key parameters

ID Description
width / height Pixel dimensions of the RegionMap
layer_count Number of main layers
break_count Number of splits along the direction of the layers
waviness Undulation of layer boundaries
break_jitter Variation in split positions
direction Horizontal / vertical / diagonal direction
wrap_x / wrap_y Treat as looping horizontally / vertically

This node is better suited to rocks and cross-sections than Region Bands.

When mask is connected, strata regions are generated only inside the active mask area and the outside is treated as OUTSIDE. Pixels where lightness * alpha >= 0.5 are active. An arbitrary mask shape takes priority, so wrap_x / wrap_y are disabled in the output while a mask is connected.

Because this node creates directional surfaces, direction has a large effect on their distribution. Use Region Cells for evenly divided cells, Region Bands for regular bands, or Region Voronoi for point-centered surfaces.

Back to Node List
Region Strata — PixPipeline Node Reference