Appearance
Cliff Mesh Paint
Cliff Mesh Paint places real rock models on the terrain: vertical columns, connected cliff walls or loose boulder fields. You do not place each rock by hand. You make a cliff layer, give it a mesh palette (the rock models it may use), and paint a placement mask on the ground with a brush. Z-MOD then generates the rocks inside the painted area, following the layer's rules: how steep the ground must be, how close the pieces stand, which way they face, how big they are.
Cliff Mesh Paint does not change the terrain and does not paint its surface:
| Material Paint (Terrain group) | Cliff Mesh Paint | |
|---|---|---|
| What a stroke changes | The terrain's layer weights (its colours and textures). | The placement mask of one cliff layer. |
| What you see | The ground's surface: rock, grass, dirt… | Separate rock models, with volume and a silhouette, standing on the ground. |
| Materials | The terrain's own layers. | Each rock model's own materials. |
The pieces are decorative. They have no collision and no navigation obstacle (the terrain stays the walking surface), and you cannot select, move or delete one piece by itself. You change them only through their layer: the mask, the palette and the settings.
A cliff layer has two placement modes:
| Mode | What it makes |
|---|---|
| Cliff Formation (default for a new layer) | Upright pieces close together along steep painted ground, facing out of the slope. Reads as a continuous wall or a row of columns. |
| Scatter | Loose rocks and boulders at irregular spacing over the painted area, optionally in clumps. |
Screenshots
No screenshot of the Cliff Mesh Paint panel could be taken for this page. This machine has no Electron build of the editor, and installing one was not allowed. A capture script is ready in manual/capture/cliff-mesh-paint.ts, but it has not been run yet. The only image here is an earlier real capture of the Terrain tool group. Everything else on this page comes from the editor's source code, and the panel is described in words.
Where to find it
- Click the Map workspace button in the top bar.
- On the toolbar on the left of the 3D view, find the Terrain group. Click its small arrow ▸, or right-click the group button, to open the list of Terrain tools (see Tool groups).
- Click Cliff Mesh Paint (icon ▲). Point to the entry to see its tooltip: "Ctrl: Remove".

Real capture from an earlier run of the editor (capture/map.ts). The top bar of the current editor may look different; the Terrain list is the same.
Once you have used it, the Terrain group button shows the ▲ icon and clicking the button itself arms Cliff Mesh Paint again (a group button arms the last tool you used from it). While Cliff Mesh Paint is armed, clicking the group button opens the list instead.
The Inspector on the right then shows the Cliff Mesh Paint panel.
Other ways to open the panel
- Select a cliff layer in the Hierarchy. Cliff layers are listed in the Vegetation part of the Hierarchy, like vegetation layers. Selecting one opens the Cliff Mesh Paint panel for that layer, even when another tool is armed. (The + of the Vegetation heading creates a vegetation layer, not a cliff layer: cliff layers are created only from this panel.)
- After + Add Cliff Layer, the new layer is selected, so the panel stays on it.
How to stop using the tool
- Press Esc twice quickly (within 400 ms) to go to the Select tool.
- Or arm any other tool from the toolbar.
If you switch tools in the middle of a drag, that stroke is abandoned: nothing of it is kept.
Before you start
| Requirement | What happens without it |
|---|---|
| The map has a terrain. | The toolbar entry is disabled with "Create a terrain first." In the panel, Paint Cliff Mask is disabled and the hint under it reads "Create a terrain first." |
| At least one model is imported in the project (Models workspace). | The palette shows "Import a model in the Models workspace first." instead of the model picker. Without a model in the palette the layer places nothing. |
| A cliff layer exists. | The panel shows "No cliff layers yet. Add one, give it rock models, then paint where cliffs should stand." and only + Add Cliff Layer. Painting does nothing (no ring appears). |
| The cliff layer is not locked and not hidden in the editor (Organization section). | The brush does not arm on it: no ring, strokes change nothing, no message. A locked layer also refuses every change to its palette, seed and settings (see Organization). |
| You are in the Map workspace and not in Preview. | The brush does nothing while Preview runs. |
| The area is in chunks that are ON (see the Chunks tab). | Pieces are generated and drawn only for loaded chunks. |
Cliff Mesh Paint does not need the terrain to be unlocked (it never changes the terrain) and does not need water.
Prepare the ground first
Pieces in Cliff Formation only stand on steep ground (35° to 90° by default). Sculpt your mountain, ridge or river bank first (Terrain Sculpt, Ridge, Mountain Stamp, River), then paint the mask along the steep faces. If you sculpt later, the pieces follow: see When pieces are rebuilt.
Quick start: a cliff wall in five steps
- Arm Terrain › Cliff Mesh Paint.
- Click + Add Cliff Layer. A layer named Cliff is created and selected (the next ones are Cliff 2, Cliff 3…).
- Under Mesh Palette, open Choose a model, pick a rock model, click Add Model. Repeat for two or three models.
- Under Mask Brush, click Paint Cliff Mask (it lights up). Set Radius.
- Drag over the steep face of a slope. Pieces appear upright, facing out of the slope. Flat ground stays empty.
Then, if the rocks stand on their side or face the wrong way, fix each model's Orientation and size (see Make a rock kit stand correctly).
The panel at a glance
The panel has these sections, from top to bottom. Level is the Inspector complexity needed to see a control (File › Preferences… › General › Inspector Complexity). All means every level. A section hides its higher-level controls behind its Show more footer; see Inspector complexity and Show more.
| Section | What it holds | Level |
|---|---|---|
| Cliff Mesh Paint | Which cliff layer, + Add Cliff Layer, Remove Layer. | All |
| Mask Brush | Paint Cliff Mask, Radius, Strength, Pattern Variation, Falloff. | All; Falloff: Medium |
| Organization | Editor Layer, Group, Visible in Editor, Locked in Editor. | All |
| Layer | Name, In the level (enabled), Estimated pieces, warnings. | All |
| Mesh Palette | One row per model: name, Weight, Orientation and size; then Choose a model and Add Model. | Rows: All; Weight and Orientation: Medium |
| Placement | Placement Mode, Seed, Randomize Seed, Regenerate, Density, Minimum Spacing, the mode's fields, the common fields, Advanced. | Mode, Seed, Density: All; fields: Medium; Advanced: Advanced |
| Slope and Altitude | Min Slope, Max Slope, Limit Terrain Height, Min Height, Max Height. | Medium |
Only the first section is shown when the map has no cliff layer yet. All the others appear as soon as one exists.
Which layer the panel shows: the cliff layer selected in the Hierarchy, if one is selected; otherwise the layer the brush is armed with; otherwise the first cliff layer of the map.
How painting works
The placement mask
Each cliff layer has its own placement mask: a grid of 1 m × 1 m cells over the world, each with a coverage from 0 (not painted) to full. Only painted areas are stored. The mask is saved with the map.
Coverage is not a yes/no: it is how much of the layer's possible pieces may appear in that cell.
- In Cliff Formation, coverage is the chance that a candidate position there keeps its piece.
- In Scatter, coverage scales the number of rocks per square metre.
So a fully painted area gets the full layer, and a lightly painted fringe (the brush's soft edge, or a low Strength) gets fewer pieces.
What one stamp does
A stroke is a series of stamps. Pressing the button makes one stamp under the pointer; while you drag, a new stamp is made every quarter of the radius of pointer movement. Each stamp visits every cell whose centre is inside the radius and works out a weight from the Falloff curve (full at the centre, zero at the rim).
| Stamp | New coverage of a cell |
|---|---|
| Paint (plain drag) | The higher of: what the cell already has, and Strength × falloff weight × variation factor. |
| Remove (see Mouse and keyboard) | The lower of: what the cell already has, and 1 − falloff weight. At the centre this is 0. |
What this means in practice:
- Painting twice over the same place adds nothing. A cell only keeps its highest value. You cannot "build up" coverage by scrubbing, and overlapping strokes never put two pieces in one place.
- A lower Strength never thins out what is already painted. To reduce coverage, remove it, then paint again with the lower Strength.
- Removing does not use Strength. The centre of a remove stamp always clears; its soft edge only lowers coverage partly.
- The variation factor is 1 when Pattern Variation is 0 %. Above 0 % it comes from a fixed noise pattern on the ground (features about 6 m across, seeded by the layer's Seed): some patches keep full coverage, others are lowered. At 100 % the pattern can drop coverage all the way to 0 in places. Because the pattern is fixed to the world, painting again over the same spot gives the same pattern, not a new one.
- The stamp always fades over the whole radius. The Falloff (%) width and Spacing settings of Terrain Sculpt are not used by this brush.
During and after a stroke
- While you drag, the pieces of the chunks you touch are previewed (generation chunks are 32 m × 32 m). With a very large brush the preview is skipped and the pieces appear when you release.
- When you release the button, the whole stroke is committed as one undo step, and the touched chunks (and their painted neighbours) are generated again from the new mask.
- A stroke that changed nothing (for example, painting over cells that are already full) records nothing.
- Settings are read when you press the button: the layer, radius, falloff, strength, variation and paint-or-remove. Changing a field during a drag has no effect on that drag.
Mouse and keyboard
| Input | What it does |
|---|---|
| Left drag on the terrain | Paints the mask along the path. One undo step on release. |
| Left click on the terrain | One paint stamp, then the stroke ends (one undo step). |
| Shift held when you press, then drag | Removes from the mask along the path. |
| Shift + click | One remove stamp. |
| Ctrl + click (no movement) | One remove stamp. |
| Ctrl + drag | Orbits the camera. It does not remove. A modified drag that moves more than 4 pixels belongs to the camera, so no stroke is made. |
| Alt + drag | Pans the camera. No stroke. |
| Ctrl+Z / Ctrl+Y | Undo / redo the last stroke (or the last panel change). Undo restores the exact mask, and the same pieces come back. |
| Esc twice within 400 ms | Leaves the tool for Select. |
The panel hint says "Ctrl + drag removes"
The hint under Paint Cliff Mask reads "Drag to add to the placement mask. Ctrl + drag removes from it.", and the toolbar tooltip says "Ctrl: Remove". In this editor version a Ctrl drag is taken by the camera before it reaches the brush (this applies to every brush). To remove along a path, hold Shift and drag. Ctrl still removes with a click.
Paint or remove is decided once, when you press: pressing or releasing Shift in the middle of a drag does not switch it.
Not checked in a real run: whether a single Esc during a drag abandons the stroke. Use Ctrl+Z after the stroke to take it back.
The cursor ring
While the brush is armed on a layer it can paint, a ring in a warm stone colour (#c9a46a, apart from the green vegetation ring) follows the pointer over the terrain. Its size is the Radius. When no ring appears, the brush is not armed: see Common mistakes.
Inspector reference
Cliff Mesh Paint section: the layer picker
| Name | Type | Verified purpose | Values, default | Depends on / effects |
|---|---|---|---|---|
| Empty text | Text | "No cliff layers yet. Add one, give it rock models, then paint where cliffs should stand." | — | Only when the map has no cliff layer. Replaces Cliff Layer. |
| Cliff Layer | Drop-down | Chooses the cliff layer to inspect and to paint. | Lists the map's cliff layers by name (vegetation layers are not listed). | Choosing one selects it in the map and arms the brush on it (for when the tool is armed). Also cancels a pending Click again to remove. Not an undo step. |
| + Add Cliff Layer | Button | Creates an empty cliff layer, selects it and makes it the brush's layer. | New layer: name Cliff (or Cliff 2, Cliff 3…), enabled, random seed, mode Cliff Formation, empty palette and mask, the defaults listed on this page. | One undo step. Always shown. Does not arm the tool by itself. |
| Remove Layer / Click again to remove | Button | Deletes the shown layer with its mask and palette. | First click: the button turns into Click again to remove (danger colour). Second click: removes. | One undo step; Ctrl+Z brings the layer back with everything painted. Works even if the layer is locked. Choosing another layer in Cliff Layer cancels the pending removal. |
Mask Brush section
The brush settings are editor settings, not map data: changing them is not an undo step, does not mark the map as unsaved, and they are not saved in the project.
| Name | Type | Verified purpose | Values, default | Depends on / effects |
|---|---|---|---|---|
| Paint Cliff Mask | Toggle button | Arms the Cliff Mesh Paint tool on the layer shown in the panel. | Lit (pressed) while the tool is armed. | Disabled when the map has no terrain. Use it after selecting a layer in the Hierarchy: see Common mistakes. |
| Hint | Text | "Drag to add to the placement mask. Ctrl + drag removes from it. Rocks are generated from the mask when the stroke ends." | — | Replaced by "Create a terrain first." without a terrain. About Ctrl + drag, see the warning above. |
| Radius | Number | The brush radius in metres. | 0.25 to 500, step 1 in the arrows (decimals can be typed). Default 10. | Applied when you press Enter or leave the field. Out-of-range values are held inside the range; text that is not a number is ignored. Shared with Terrain Sculpt's Size and the other ground brushes. |
| Strength | Slider (label shows the %) | Coverage laid down at the centre of a paint stamp. | 5 % to 100 %, step 5. Default 100 %. | Paint only; does not affect removal. Never lowers coverage already painted. Own setting of this tool (not shared). |
| Pattern Variation | Slider (label shows the %) | Breaks the painted coverage up with a fixed noise pattern. | 0 % to 100 %, step 5. Default 0 % (even coverage). | Paint only. The pattern is seeded by the layer's Seed, so it changes after Randomize Seed (for new strokes; existing mask stays). Own setting of this tool. |
| Falloff | Drop-down | Shape of the fade from the centre to the rim. | Smooth (default), Linear, Sharp, Bell, Plateau, Hard. | Medium level. Shared with Terrain Sculpt's Falloff Curve. With Hard, the whole circle gets full Strength and a remove stamp clears the whole circle. |
The falloff curves:
| Falloff | Shape |
|---|---|
| Smooth | Flat at the centre, tapering to nothing at the rim, no hard edge. |
| Linear | A straight ramp from centre to rim (a cone). |
| Sharp | A pointed centre that drops quickly. |
| Bell | A rounded bell, softer shoulders than Smooth. |
| Plateau | Full strength across most of the circle, then a quick soft drop at the edge. |
| Hard | Full strength everywhere inside the radius. |
Organization section
The same section every map item has. For a cliff layer it shows:
| Name | Type | Verified purpose | Effect on this tool |
|---|---|---|---|
| Editor Layer | Drop-down | Puts the layer on one of the map's editor layers. | Organization only. |
| Group | Drop-down | Puts the layer in a Hierarchy group (No Group by default). | Organization only. A hidden or locked group hides or locks the cliff layer too. |
| Visible in Editor | Checkbox | Shows or hides the layer's pieces in the editor. | Hiding is instant and showing again brings back the same pieces (they stay generated in the background). A hidden layer cannot be painted. Hidden layers are still saved, validated and exported. |
| Locked in Editor | Checkbox | Protects the layer. | Hint: "Locked in the editor: its painting, rules, seed and models cannot be changed." The brush does not arm, and changes to the palette, mode, seed, Density, spacing, the placement fields and the slope/height filter are silently refused. Name and In the level (enabled) can still be changed, and Remove Layer still works. |
The section also shows "Hidden by its group or layer; its own setting is kept." or "Locked by its group or layer; its own setting is kept." when a parent hides or locks the layer, and the note that editor layers and groups change nothing in the game.
Layer section
| Name | Type | Verified purpose | Values, default | Depends on / effects |
|---|---|---|---|---|
| Name | Text | The layer's name in the Hierarchy and in Cliff Layer. | Default Cliff / Cliff N. | Applied on Enter or leaving the field. Spaces at the ends are removed; an empty name is ignored (the old name stays). One undo step. Allowed when locked. |
| In the level (enabled) | Checkbox | Whether the layer is part of the level. | On for a new layer. | Off: the layer generates no pieces (they disappear from the editor too), Estimated pieces shows ~0, and the layer is left out of the exported MOD. One undo step. Allowed when locked. |
| Estimated pieces | Read-only | A rough count of the pieces the layer will place. | Shown as ~N. | See How the estimate is made. |
| Warnings | Text (warning colour) | Problems that stop the layer from working as expected. | — | See Warnings. |
How the estimate is made
The estimate adds up the painted coverage (a fully painted 1 m cell counts as 1 m²), then:
- Cliff Formation: painted area ÷ (formation spacing in metres)² × Formation Continuity;
- Scatter: painted area × Density ÷ 100.
It does not apply the slope and height filters, verticality, minimum spacing or roads. These can only lower the real count. So painting flat ground raises the estimate even though no piece will stand there.
Example with the default settings and one model at the default size: the formation spacing is about 1.54 m (see Formation spacing), so a fully painted 20 m × 10 m strip estimates 200 ÷ 1.54² × 0.85 ≈ ~72 pieces. The same strip in Scatter at Density 4 estimates ~8.
Warnings
| Warning | When | What to do |
|---|---|---|
| No mesh palette: add at least one rock model with a weight above zero. | The palette is empty, or every model has Weight 0. | Add a model, or give one a Weight above 0. The layer places nothing until then. |
| Model "…" is not in the project library and cannot be loaded. | A palette model was deleted from the project (or the map came from another project). | Remove the row, or import the model again. |
| Model "…" has the same axis for Up and Outward: choose two different axes. | Up Axis and Outward Axis of a model use the same letter (for example +y and -y, or +z and +z). | Pick two different axes in Orientation and size. Until then that model is placed without its orientation correction and with uniform scale only. |
| About N pieces - more than the safe 60000. Increase spacing or scale, or paint less. | Estimated pieces is above 60 000. | Raise Formation Spacing, the scale, or Minimum Spacing; lower Density; remove part of the mask. |
| Nothing painted yet: arm the brush and paint the placement mask. | The mask is empty. | Click Paint Cliff Mask and paint. |
A model whose file fails to load in the 3D view is not reported here (only a model missing from the library is).
Mesh Palette section
The palette lists the models the layer may place. For each piece, one model is picked at random according to the weights.
Each row shows:
| Name | Type | Verified purpose | Values, default | Depends on / effects |
|---|---|---|---|---|
| Model name | Text | The model's name. | — | When the model is not in the library, the raw model id is shown with a Missing model badge. |
| ✕ (Remove Model) | Button | Removes this model from the palette. | — | One undo step. The pieces that used it are regenerated with the other models. |
| Weight | Number | How often this model is picked, relative to the others. | 0 to 1000 (held inside), step 1 in the arrows. Default 1. | Medium level; counted as modified when not 1. A model with Weight 0 is never placed. Weights also average the formation spacing (see below). One undo step. |
| Orientation and size | Fold-out (closed) | How this model stands. Its fields are listed in the next table. | — | Medium level; counted as modified when any field differs from its default, and reported as an error while hidden if the axes are invalid. |
Inside Orientation and size (one set per model):
| Name | Type | Verified purpose | Values, default | Depends on / effects |
|---|---|---|---|---|
| Up Axis | Drop-down | The model axis that must point to the sky. | +x, -x, +y, -y, +z, -z. Default +y. | Must not share its letter with Outward Axis. |
| Outward Axis | Drop-down | The model axis the rock face looks along. In Cliff Formation this axis is turned to face out of the slope. | Same six axes. Default +z. | Width is measured on the third axis (the one that is neither Up nor Outward). |
| Pivot | Drop-down | Where the model's origin is. | Base (default): the origin is at the bottom of the rock and stands on the ground. Center: the origin is mid-height; the piece is lifted by half its height. | With Center, the lift uses the Height below × the piece's height scale. |
| Width | Number | The model's nominal size across the face, in model units. | 0.05 to 200, step 0.1. Default 2. | Sets the formation spacing (see below). Does not resize the model. |
| Height | Number | Nominal size along Up, in model units. | 0.05 to 200, step 0.1. Default 4. | Used only to lift Center-pivot pieces. Does not resize the model. |
| Depth | Number | Nominal size along Outward, in model units. | 0.05 to 200, step 0.1. Default 2. | Saved and exported with the layer. The editor's generator does not use it. Does not resize the model. |
| Overlap | Number (fraction, not %) | How much this model is meant to overlap its neighbours, to hide seams. | 0 to 0.9, step 0.05. Default 0.15. | Added to the layer's Controlled Overlap (the sum is capped at 0.9). Narrows the formation spacing. No effect in Scatter. |
| Note | Text | "Axes are the model as the Models view shows it. Up must point to the sky; Outward is the rock face. Sizes are in model units." | — | — |
Every change in this fold-out is one undo step. Numbers outside the range are held inside it; text that is not a number is ignored.
"The model as the Models view shows it" means after the model's own import settings (its axis correction). Look at the model in the Models workspace to find which axis is up and which side is the rock face.
Below the rows:
| Name | Type | Verified purpose | Depends on / effects |
|---|---|---|---|
| Choose a model | Drop-down with a search box | Picks a model of the project library to add. | Lists every model of the project. Replaced by "Import a model in the Models workspace first." when the project has none. |
| Add Model | Button | Adds the chosen model with Weight 1 and the default orientation (+y up, +z outward, Base, 2 × 4 × 2, overlap 0.15). | Disabled until a model is chosen. One undo step. The same model can be added more than once. |
Placement section
| Name | Type | Verified purpose | Values, default | Depends on / effects | Level |
|---|---|---|---|---|---|
| Placement Mode | Drop-down | Chooses how pieces are placed. | Cliff Formation (default), Scatter. | Changes which fields are shown below. The other mode's values are kept. One undo step. All pieces of the layer are regenerated. | All |
| Mode note | Text | Formation: "Upright pieces close together along steep painted ground, facing out of the slope." Scatter: "Loose rocks and boulders at irregular spacing over the painted area." | — | — | All |
| Seed | Number | The number every random choice of the layer comes from. The same seed always gives the same pieces. | 0 to 4294967295, whole numbers. New layers get a random seed. | Decimals are cut off; negative values are ignored. Changing it moves every piece; the mask does not change. Also seeds Pattern Variation. One undo step. | All |
| Randomize Seed | Button | Sets a new random seed. | — | A different, equally stable arrangement. Type the old seed back to get the old arrangement back. One undo step. | All |
| Regenerate | Button | Rebuilds all of the layer's pieces from scratch. | — | The result is identical (the generator is deterministic). Not an undo step and does not change the map. Use it if the 3D view looks out of date. Shown when the panel has a 3D view (always, in the Map workspace). | All |
| Density (per 100 m²) | Number | Rocks per 100 m² of fully painted ground. | 0 to 400, step 1. Default 4. | Scatter only (hidden in Formation). 0 places nothing. One rock per cell at most 16. One undo step. | All |
| Minimum Spacing (m) | Number | Minimum distance between two pieces of this layer. | 0 to 16, step 0.5. Default 0 (off). | Both modes. When two pieces are closer, one is dropped (decided by the seed, not by paint order). One undo step. | Medium |
Then come the fields of the current mode, then the fields common to both modes, then the Advanced fold-out. All are number fields: applied on Enter or leaving the field, held inside their range, one undo step each, and all pieces of the layer are regenerated. Fields marked (%) show 0–100 and store 0–1.
Cliff Formation fields (Medium)
Shown only when Placement Mode is Cliff Formation.
| Name | Verified purpose | Range, step | Default | Effect |
|---|---|---|---|---|
| Formation Spacing (piece widths) | Distance between neighbouring pieces along a wall, in piece widths. | 0.5–3, 0.05 | 1 | Smaller = pieces closer together and more of them. See Formation spacing. |
| Formation Continuity (%) | How much of a painted wall is filled. | 0–100, 5 | 85 | 100 % = unbroken wall. Lower values open gaps. 0 % places nothing. Also scales Estimated pieces. |
| Gap Tolerance (%) | How large the gaps left by Continuity are. | 0–100, 5 | 30 | Low = many short breaks; high = fewer, longer runs and gaps (the gap pattern is up to 9 × the formation spacing across). No effect at Continuity 100 %. |
| Preferred Verticality (%) | Preference for the steepest ground. | 0–100, 5 | 60 | The chance to keep a piece is coverage × (1 − V + V × slope ÷ 90°). At 0 % slope makes no difference (inside the slope filter); at 100 % a 45° slope keeps half as many as a vertical face. |
| Outward Alignment Strength (%) | How exactly pieces face out of the slope. | 0–100, 5 | 90 | 100 % = exactly outward (plus Rotation Variation). Each 10 % below 100 % adds up to ±18° of random turn. At 0 % pieces can face any direction. |
| Maximum Tilt (degrees) | The most a piece leans away from vertical, towards the slope's surface. | 0–45, 1 | 8 | Never more than the slope itself. 0 = all pieces stand exactly upright. |
Scatter fields (Medium)
Shown only when Placement Mode is Scatter.
| Name | Verified purpose | Range, step | Default | Effect |
|---|---|---|---|---|
| Clustering (%) | How strongly rocks gather into clumps. | 0–100, 5 | 30 | 0 % = an even spread over the painted area. Higher values thin some patches and keep others; at 100 % some patches get nothing. |
| Cluster Scale (m) | Size of one clump. | 2–200, 1 | 24 | Only matters when Clustering is above 0 %. |
| Surface Normal Alignment (%) | How far rocks tilt from upright towards the ground's slope. | 0–100, 5 | 0 | 0 % = upright; 100 % = lying along the slope surface. |
Common fields (Medium)
Shown in both modes.
| Name | Verified purpose | Range, step | Default | Effect |
|---|---|---|---|---|
| Minimum Uniform Scale | Smallest random size multiplier of a piece. | 0.05–20, 0.05 | 0.9 | Multiplies the model's own size. If Minimum is above Maximum, the two are read the other way round. |
| Maximum Uniform Scale | Largest random size multiplier. | 0.05–20, 0.05 | 1.3 | The average of the two also scales the formation spacing. |
| Position Jitter (%) | How far a piece may wander from its regular position. | 0–100, 5 | 35 | In Formation, up to ± half a formation-grid cell at 100 %; in Scatter, up to ± half a metre. 0 % = a regular grid (Formation). |
| Rotation Variation (degrees) | Random turn around the vertical. | 0–180, 1 | 12 | Formation: ± this angle around the outward direction (plus the Outward Alignment loosening). Scatter: ± this angle from one fixed direction; 180 = any direction, 0 = all rocks face the same way. |
Advanced fold-out (Advanced level)
A closed fold-out at the end of the Placement section, shown at Advanced complexity (or through Show more).
| Name | Verified purpose | Range, step | Default | Effect |
|---|---|---|---|---|
| Width Variation (%) | Random stretch of each piece's width, independently of the other axes. | 0–90, 5 | 15 | Width × (1 ± this) on top of the uniform scale. Uses the axes from Orientation and size. |
| Height Variation (%) | Random stretch of the height. | 0–90, 5 | 35 | As above, on the Up axis. |
| Depth Variation (%) | Random stretch of the depth. | 0–90, 5 | 15 | As above, on the Outward axis. |
| Controlled Overlap (%) | How much neighbouring formation pieces overlap, added to each model's own Overlap. | 0–90, 5 | 15 | The sum is capped at 90 %. Narrows the formation spacing. No effect in Scatter. |
| Terrain Embedding Depth (m) | How far the base of each piece is sunk into the ground, so nothing floats. | 0–20, 0.1 | 0.5 | Moves every piece straight down. Hides small gaps on steep ground. |
| Surface Offset (m) | Pushes pieces out of (positive) or into (negative) the slope. | −10 to 10, 0.1 | 0 | Formation: moves horizontally, out of the slope. Scatter: moves along the ground's normal. |
Stretching a piece a lot (variation near 90 %) can make its lighting look slightly off in the editor view.
Formation spacing
In Cliff Formation, the candidate positions sit on a regular grid fixed to the world. Its cell size, the formation spacing, is:
average Width of the palette models (weighted by Weight, each reduced by its Overlap + Controlled Overlap) × average of Minimum and Maximum Uniform Scale × Formation Spacing
held between 0.5 m and 16 m. With the defaults (Width 2, Overlap 0.15 + 0.15, scale 0.9–1.3, Formation Spacing 1): 2 × 0.70 × 1.1 × 1 = 1.54 m.
So if your rock model is really 6 units wide, set its Width to 6, or the pieces will be packed too tightly; if they leave gaps, lower Formation Spacing or raise the overlap.
The grid is aligned with the world's X and Z axes. Along a diagonal wall the distance between pieces varies a little (up to about 1.4 ×) before jitter; overlap and continuity hide it.
Slope and Altitude section
A closed fold-out section after Placement, shown at Medium complexity. At Normal level the whole section is hidden; use the Show more at the end of the Inspector to see it.
| Name | Type | Verified purpose | Values, default | Depends on / effects |
|---|---|---|---|---|
| Min Slope (°) | Number | Pieces only stand on ground at least this steep. | 0 to 90, step 1. Default 35. | Slope is the angle between the ground and the horizontal. If Min is above Max, the two are swapped. One undo step. |
| Max Slope (°) | Number | Pieces only stand on ground at most this steep. | 0 to 90, step 1. Default 90. | Same. |
| Limit Terrain Height | Checkbox | Turns on a world-height range. | Off. | Shows Min Height and Max Height. One undo step. |
| Min Height | Number | Lowest ground height a piece may stand on. | Any number, step 1. Default 0. | Only while Limit Terrain Height is on. If Min is above Max, the two are swapped. |
| Max Height | Number | Highest ground height. | Any number, step 1. Default 100. | Same. |
The defaults (35°–90°) are why flat ground stays empty. For boulders on gentle slopes in Scatter, lower Min Slope to 0.
Rules with no control in this panel
Two rules of a cliff layer apply but cannot be changed here:
- Roads are avoided. No piece stands on a road (carriageway, curbs, footways, junctions) or within 1 m of it.
- Any terrain surface is allowed. Pieces are not limited to some terrain layers.
The two modes in detail
Cliff Formation
- Candidate positions are the cells of the formation grid, each moved by Position Jitter.
- A candidate is dropped when: its cell is not painted; it falls in a Continuity gap; it is off the terrain; the slope or height filter rejects it; it is on or near a road.
- It is then kept with the chance coverage × verticality factor (see Preferred Verticality).
- Minimum Spacing removes candidates that are too close to a stronger one.
- Each remaining piece gets a model (by weight), a uniform scale, the per-axis stretch, and is turned so its Outward Axis faces out of the slope (the slope's downhill direction), ± Rotation Variation and the Outward Alignment loosening. It leans by at most Maximum Tilt, so columns stay close to vertical. It is sunk by the embedding depth and pushed out by the surface offset.
Scatter
- Each painted 1 m cell gets a number of candidates from Density × its coverage, with coverage reshaped by Clustering.
- Candidates are dropped by the same ground, slope, height and road rules, and by Minimum Spacing.
- Each piece gets a model, scale and stretch like in Formation. It is turned ± Rotation Variation from one fixed direction (not towards the slope) and tilted by Surface Normal Alignment.
Limits in both modes
- At most 4096 pieces per 32 m × 32 m chunk. Beyond that, the extra pieces are dropped, always the same ones.
- Every piece is decided by its own position and the seed, never by the order you painted in. Chunk borders neither double nor drop pieces.
When pieces are rebuilt
Pieces are generated automatically. You never press a Generate button:
| You change | What is rebuilt |
|---|---|
| The mask (a stroke) | The touched chunks and their painted neighbours. |
| The terrain under painted areas, with any tool (sculpt, river, road beds…) | The chunks whose ground changed. Pieces on ground that no longer passes the slope or height filter disappear; other chunks do not change. |
| Roads near painted areas | The chunks near the road. |
| Any layer setting, the palette, the seed, In the level | The whole layer. |
| Visible in Editor | Nothing is rebuilt: the pieces are only taken off screen or put back. |
Because the result depends only on the mask, the settings, the seed and the ground, undo, redo, saving and reloading always give back exactly the same pieces.
Saving and exporting
- The cliff layer (name, enabled, seed, rules, palette with each model's orientation, mode and settings, and the mask) is saved in the map. Brush settings (Radius, Strength, Pattern Variation, Falloff) and the armed layer are not saved.
- In the exported MOD, the pieces are baked: their final positions, rotations and per-axis scales are written per 32 m chunk, and the layer is marked as a cliff-mesh layer with no collision. The rock models go into the package with the rest of the project's dependencies. The game does not run the generator again. See Export and publish.
- A layer with In the level (enabled) off is not exported. A layer that is only hidden in the editor is exported.
Inspector complexity and Show more
| Level | What you see in this panel |
|---|---|
| Normal | Layer picker, add/remove; Paint Cliff Mask, Radius, Strength, Pattern Variation; Organization; Name, In the level, Estimated pieces, warnings; palette rows (name, ✕), Choose a model, Add Model; Placement Mode, Seed, Randomize Seed, Regenerate, and Density in Scatter. |
| Medium | Normal + Falloff; each model's Weight and Orientation and size; Minimum Spacing; the mode's fields; the common fields; the whole Slope and Altitude section. |
| Advanced | Medium + the Advanced fold-out. |
Hidden settings keep their values and are still used. A section with hidden controls gets a Show more (N) footer that shows them without changing the level. The Slope and Altitude section, hidden as a whole at Normal, is offered by the Show more at the end of the Inspector. A model's Weight other than 1, or Orientation and size values other than the defaults, are counted as modified in the footer; invalid axes in a hidden fold-out are reported there as an error. The other hidden fields here are never counted as modified. See also Inspector complexity and Show more.
Typical tasks
Make a rock kit stand correctly
Rock kits do not agree on which axis is up. Do this once per model:
- In the Models workspace, look at the model: note which axis points up and which side is the rock face.
- Back in the Cliff Mesh Paint panel (Medium level, or Show more), open the model's Orientation and size.
- Set Up Axis to the axis that points up (a model exported as "Z-up" usually needs
+z). - Set Outward Axis to the axis the rock face looks along. It must use a different letter from Up.
- Set Pivot to Center if the model's origin is in its middle (pieces sink halfway into the ground otherwise).
- Set Width, Height and Depth to the model's real size in model units. Width matters most: it sets the spacing of a wall.
- The pieces update at once. Check the wall from the open side of the slope.
Paint a continuous cliff wall
- Make sure the slope is steep (35° or more with the default filter).
- Mode Cliff Formation. Set Formation Continuity to 100 % for a wall with no gaps.
- Lower Rotation Variation (for example 5°) and keep Outward Alignment Strength high (90–100 %) so the faces line up.
- Set Maximum Tilt to 0 for strictly vertical columns.
- Paint along the face with a Radius about the height of the slope.
Make a broken ridge of rock outcrops
- Mode Cliff Formation. Formation Continuity 50–70 %, Gap Tolerance high (60–80 %) for long runs and long gaps.
- Raise Height Variation (Advanced) for uneven tops.
- Paint with Pattern Variation at 40–60 % for a less regular outline.
Scatter boulders at the foot of a cliff
- Click + Add Cliff Layer to make a second layer for the boulders (keep the wall on its own layer).
- Add boulder models to its palette.
- Mode Scatter. Density 2–10. Clustering 50 % or more for clumps.
- Open Slope and Altitude and set Min Slope to 0 (or 5), Max Slope to 40.
- Rotation Variation 180 so boulders face every way. Surface Normal Alignment 30–60 % so they settle into the slope.
- Paint along the base of the cliff.
Remove part of a wall
- Arm the tool on the layer (Paint Cliff Mask).
- Hold Shift, press on the terrain and drag across the part to clear. (Or Ctrl+click spot by spot.)
- Release. The pieces there are gone. Ctrl+Z brings them back exactly.
Try a different arrangement, and come back
- Note the Seed.
- Click Randomize Seed until you like the result.
- To go back, type the noted seed into Seed and press Enter (or use Ctrl+Z).
Keep a finished layer safe
Check Locked in Editor in the Organization section. Its mask, palette and settings can no longer be changed by mistake. Uncheck it to edit again.
Common mistakes
- Ctrl + drag turns the camera instead of removing. A drag that starts with Ctrl held belongs to the camera. Use Shift + drag to remove, or Ctrl + click.
- "Nothing appears where I painted." Check, in order: the palette has a model with Weight above 0; the ground is steep enough (Min Slope 35° by default: flat ground stays empty); In the level (enabled) is on; Formation Continuity is not 0 %; in Scatter, Density is not 0; the chunk is ON; you did not paint on or next to a road; Limit Terrain Height does not exclude the area.
- "No ring appears / the brush does nothing." The layer is locked or hidden (Organization section), the map has no cliff layer, or you are in Preview.
- "I painted on the wrong layer." Selecting a different cliff layer in the Hierarchy changes what the panel shows, but the brush keeps the layer it was armed with. After selecting a layer in the Hierarchy, click Paint Cliff Mask (or choose the layer in Cliff Layer) before painting. Undo the wrong stroke with Ctrl+Z.
- "The rocks lie on their side / face the slope." Set Up Axis and Outward Axis in Orientation and size. They are per model.
- "The pieces are sunk halfway into the ground." The model's origin is in its middle: set Pivot to Center. Also check Terrain Embedding Depth.
- "The wall pieces overlap too much / leave gaps." Set the model's real Width; then adjust Formation Spacing and the overlaps.
- Expecting Width, Height or Depth to resize the rock. They describe the model; the size on screen comes from the model itself × the uniform scale and variations.
- Lowering Strength to thin an area. Painting never lowers coverage. Remove first, then repaint with the lower Strength.
- Using the Hierarchy's + to make a cliff layer. It makes a vegetation layer. Use + Add Cliff Layer in this panel.
- Selecting a vegetation layer while Cliff Mesh Paint is armed. The Inspector then shows the Vegetation panel instead, and the brush still paints the armed cliff layer.
- Trusting the estimate on flat ground. Estimated pieces ignores the slope filter; the real count can be much lower.
- Expecting collision. Pieces are decorative. Players walk on the terrain under them.
Related tools
- Map workspace: the toolbar and its tool groups.
- Terrain Sculpt, Ridge, Mountain Stamp (toolbar Terrain): make the steep ground the formation needs (Sculpt the terrain). Terrain Sculpt also shares this brush's Radius and Falloff.
- Material Paint (toolbar Terrain): paints rock textures on the terrain surface; use it with Cliff Mesh Paint so the ground under the rocks matches.
- Procedural Rock Brush and Rock Region Select (toolbar Terrain): generated rock geometry instead of placed models.
- Paint Vegetation (toolbar Vegetation): the same layer system for trees and plants (chapter not written yet).
- Models: import the rock models and check their axes.
- Chunks tab: which chunks are loaded and show pieces.
- Export and publish: how the baked pieces leave the editor.
Verification notes
This chapter was written from the editor source only: the cliff-mesh-inspector component and template, CliffMeshToolStore, VegetationPaintService (stroke, stamps, Shift/Ctrl, lock and hidden checks), stampVegetationPaintDraft in vegetation-paint.ts, cliff-mesh-layer.ts (settings, defaults, bounds, orientation), cliff-mesh-scatter.ts (generator, formation spacing, estimate), vegetation-layer.ts (rules, clamps, names), VegetationCommandsService (undo steps, lock rules), VegetationPresentationService (Regenerate, visibility), editor-inspector (panel routing), the toolbar catalog and groups, terrain-brush.ts, the organization section, the editor's docs/CLIFF_MESH_PAINT_IMPLEMENTATION.md, docs/editor-input.md, docs/inspector-complexity.md, and the en-US texts. The following were not checked in a real run:
- what the panel, the ring and the generated pieces look like (no screenshots of the panel were taken);
- the exact wording and placement of the Show more footers for this panel;
- whether a single Esc abandons a stroke in progress;
- the brush radius above which the live preview is skipped (the source limits the preview to 16 chunks per pointer event);
- how long generation takes for a large layer.