Studio Yotsuba
Back to Node List

Region Strata

region_strata

Builds cracked, layered strata regions - cliff faces, rock walls, underground ore veins with steps and breaks

Reviewed
Guide available

Input Ports

NameTypeDescription
Mask
mask
Image
Optional image mask that limits where regions are generated. Pixels with luminance * alpha >= 0.5 are treated as the active area; pixels outside the mask become OUTSIDE_ID.

Output Ports

NameTypeDescription
Regions
regions
RegionMap
Generated RegionMap data
Preview
preview
Image
Color preview of the generated regions
Labels
labels
Map
UI overlay label positions for the inspector

Parameters

NameTypeDefaultRangeDescription / Options
Width
width
Int
641–2048

Region map width in pixels

Height
height
Int
641–2048

Region map height in pixels

Layer Count
layer_count
Int
82–128

Number of main strata layers

Break Count
break_count
Int
61–128

Number of horizontal/vertical chunks per layer

Waviness
waviness
Float
50–64 / step 0.5

Layer boundary wave amount in pixels

Break Jitter
break_jitter
Float
0.350–1 / step 0.01

Random chunk boundary offset

Seed
seed
Int
10–99999

Random seed for repeatable strata

Direction
direction
Enum
Horizontal—

Main direction of the strata

  • HorizontalHorizontal
    Horizontal strata
  • VerticalVertical
    Vertical strata
  • DiagonalDownDiagonalDown
    Top-left to bottom-right strata. Diagonal strata tile seamlessly only on square canvases whose layer count divides the size
  • DiagonalUpDiagonalUp
    Bottom-left to top-right strata
Wrap X
wrap_x
Bool
false—

Treat left and right edges as connected

Wrap Y
wrap_y
Bool
false—

Treat top and bottom edges as connected

ID Order
id_order
Enum
SeedOrder—

How generated regions are renumbered

  • SeedOrderSeedOrder
    Keep generated id order
  • TopLeftTopLeft
    Assign smaller ids by ascending bounding-box top edge, then left edge
  • BottomRightBottomRight
    Assign smaller ids by descending bounding-box bottom edge, then right edge
  • AreaAscAreaAsc
    Assign smaller ids to smaller regions
  • AreaDescAreaDesc
    Assign smaller ids to larger regions
Show IDs
show_ids
Bool
false—

Show region id labels on the inspector preview

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