Studio Yotsuba
Back to Node List

Region Scatter

region_scatter

Sprinkles small region blobs across the canvas with fully random centers or a guaranteed minimum gap - useful for ore, stains, bubbles, stones, and other surface spots

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

Count
count
Int
321–2048

Number of scattered regions

Min Radius
min_radius
Float
20.5–128 / step 0.5

Minimum blob radius in pixels

Max Radius
max_radius
Float
50.5–128 / step 0.5

Maximum blob radius in pixels

Seed
seed
Int
10–99999

Random seed for repeatable scatter

Placement
placement
Enum
Random—

Choose random clustering or placement with a guaranteed center gap

  • RandomRandom
    Keep the familiar fully random placement; blobs may cluster or overlap
  • KeepApartKeepApart
    Reject centers that are too close; useful for ore, stones, bubbles, and surface spots
Minimum Center Gap
min_distance
Float
81–512 / step 0.5

Minimum center-to-center gap in pixels. Start near twice Max Radius to reduce blob overlap; lower it if fewer than Count fit

Shape
shape
Enum
Circle—

Shape used for scattered regions

  • CircleCircle
    Round blobs
  • DiamondDiamond
    Diamond blobs
  • SquareSquare
    Square blobs
Background Region
background
Bool
true—

Fill unoccupied pixels with region 0 instead of outside

Wrap X
wrap_x
Bool
false—

Allow blobs to wrap horizontally; Keep Apart also measures center gaps across the left and right edges

Wrap Y
wrap_y
Bool
false—

Allow blobs to wrap vertically; Keep Apart also measures center gaps across the top and bottom edges

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

Creates a RegionMap by scattering small spot-shaped regions. It places ground accents such as stones, bubbles, leaves, ore, or grime. Because placements remain regions, they can later be recolored individually or converted to masks.

  • type_id: region_scatter
  • category: Generate/Region/Create

It directly generates scattered small areas as a RegionMap, suited to accent regions such as stones, bubbles, leaves, grime, or ore speckles.

Usage tips

  • It is commonly paired with region_compose to place spots over strata. On its own, use region_mask → mask_scatter to place stamps at spot locations.
  • Use placement=Random when occasional clusters are useful, or KeepApart when ore, bubbles, and stones should stay separated. Random remains the default, preserving existing project placement.
  • min_distance is the center gap. Start near twice max_radius to reduce blob overlap. If Count does not fit, lower the gap or reduce count.
  • Change only seed to batch-produce placement variants; it pairs well with batch_render.
  • Limit the scatter area with the mask input, such as stones only on ground. A mask from region_mask completes the region-based workflow.

Main parameters

ID Description
width / height Pixel dimensions of the RegionMap
count Number of small regions to scatter
min_radius / max_radius Radius range of small regions
placement Fully random placement / keep centers apart
min_distance Center gap in KeepApart mode; twice max radius is a useful starting point
shape Circle / diamond / square
background Treat empty space as region 0 or outside
wrap_x / wrap_y Allow scatter to cross an edge

Combine it with a compositing node that mixes into an existing RegionMap to use the result as an asset accent.

With KeepApart, wrap_x / wrap_y also measures centers across opposite edges as neighbors. This prevents a seamless tile from becoming unusually dense only at its seam.

When mask is connected, scattering occurs only in its valid range and the outside is treated as OUTSIDE. Even with background on, background region 0 exists only inside the mask. Mask pixels satisfy 明度 * アルファ >= 0.5. The arbitrary mask shape takes priority, so wrap_x / wrap_y are disabled for both painting and spacing.

If all requested centers do not fit in KeepApart mode, the node outputs those that fit and warns on min_distance. It never silently shrinks the requested gap.

If max_radius is smaller than min_radius, evaluation swaps the effective bounds and displays a warning. The stored parameter values are not rewritten.

To add ore, grime, bubbles, or stones after creating a base region, use Region Scatter -> Region Compose. To pass only scattered regions into image processing, connect Region Mask downstream.

Related nodes

  • region_compose — overlay onto base regions
  • region_mask — convert scattered regions to a mask
  • mask_scatter — scatter image stamps directly instead of regions
  • path_array — scatter along or inside a path in Scatter mode
Back to Node List