Studio Yotsuba
Back to Node List

Region Split Islands

region_split_islands

Gives each disconnected island its own id, so pieces that shared one id can be selected and processed one by one

Reviewed
Guide available

Input Ports

NameTypeDescription
Regions
regions
RegionMap
Required
RegionMap whose disconnected islands are split

Output Ports

NameTypeDescription
Regions
regions
RegionMap
RegionMap with disconnected islands split into separate ids
Preview
preview
Image
Color preview of split regions
Labels
labels
Map
UI overlay label positions for the inspector
Summary
summary
Map
Original and split island counts

Parameters

NameTypeDefaultRangeDescription / Options
Connection
connection_mode
Enum
Visible—

Whether wrap edges are considered connected

  • VisibleVisible
    Split by visible on-canvas connectivity
  • WrappedWrapped
    Keep islands connected through wrap edges together
ID Order
id_order
Enum
SourceThenTopLeft—

How split island ids are assigned

  • SourceThenTopLeftSourceThenTopLeft
    Order by original id, then top-left position
  • TopLeftTopLeft
    Assign smaller ids to islands closer to the top-left
  • BottomRightBottomRight
    Assign smaller ids to islands closer to the bottom-right
  • AreaAscAreaAsc
    Assign smaller ids to smaller islands
  • AreaDescAreaDesc
    Assign smaller ids to larger islands
  • RandomRandom
    Assign ids by stable random order
Seed
seed
Int
10–99999

Seed for random order and preview colors

Show IDs
show_ids
Bool
false—

Show island id labels on the inspector preview

Overview

Separates disconnected islands that share one ID, assigning each island its own ID. It turns outputs such as region_noise, where the same level appears at multiple locations, into one-ID-per-island data that can be processed individually.

  • Category: Generate / Region / Edit
  • Uses: masking disconnected islands individually after wrapping or merging, assigning IDs to visible islands, and aligning ID labels with extraction results

Usage tips

  • Remember it by the symptom: if selecting an ID with region_mask also selects distant areas, insert this node beforehand.
  • It is almost always paired with region_noise, because level IDs naturally form multiple islands.
  • For tile assets, set connection testing to Wrapped so islands connected across an edge remain one island.

Related nodes

  • region_noise — a common source of disconnected islands
  • region_mask — extracts individual islands
  • region_remap — arranges ID order before or after splitting
  • region_merge_small — cleans up small islands after splitting

Connectivity

Value Description
Visible Separate islands that look disconnected on the canvas, even when they connect across a wrapped edge
Wrapped Account for wrap_x / wrap_y on the input RegionMap and keep islands connected across left/right or top/bottom edges under one ID

ID order

Value Description
SourceThenTopLeft Group by source ID, then assign IDs from the island nearest the top-left
TopLeft Assign lower IDs to islands nearest the top-left
BottomRight Assign lower IDs to islands nearest the bottom-right
AreaAsc Assign lower IDs to smaller islands
AreaDesc Assign lower IDs to larger islands
Random Assign IDs in a stable random order based on the seed

How to use

Connect it after Region Merge Small or Region Remap to process islands that remain disconnected under the same ID individually.

Use Wrapped connectivity when preserving wrapped connections for a tile. Use the default Visible connectivity when each visually separate island should be extracted as its own mask.

This node works well with generators such as Region Noise and Image To Regions, where the same ID can appear in several disconnected locations. If Region Mask selects several locations at once, split them into per-island IDs here.

summary is a review Map. Use regions for downstream region processing, or preview to inspect the result as an image.

Back to Node List