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_maskalso 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
Wrappedso islands connected across an edge remain one island.
Related nodes
region_noise— a common source of disconnected islandsregion_mask— extracts individual islandsregion_remap— arranges ID order before or after splittingregion_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.