Appearance
Procedural Rock Brush
The Procedural Rock Brush puts stylized, low-poly rock formations on the terrain: angular stone blocks with large flat faces, bevelled edges and dark gaps between them. You do not pick rock models. Every stone is generated by Z-MOD from a set of settings and a seed, and the stones are packed into formations (a single boulder, a low pile, a wide outcrop, a tall column, a cliff wall).
You work with a rock layer. A rock layer holds:
- the settings that decide what the rocks look like (stone shape, formation, placement, material, collision, stack stability) and a seed;
- where rocks go, which you author with the brush in three modes:
- Stamp: one click places one complete formation;
- Paint: a drag paints an area where formations are scattered;
- Cliff: a drag paints an area where connected, upright rock walls are built;
- optional regions: parts of the layer with their own settings.
The rocks themselves are never stored. Z-MOD rebuilds them from the layer every time, always in the same way, so the same layer on the same ground always gives the same rocks: after a save and reopen, after an undo, and in the exported MOD. Because of this you cannot select, move or delete one stone. You change the rocks by changing the layer: paint, stamp, remove, or change a setting.
The rocks follow the terrain. If you sculpt the ground under them, the rocks there are rebuilt on the new ground. The brush never changes the terrain heights.
Screenshots
No screenshot of the Procedural Rock Brush panel could be taken for this page. This machine has no Electron build of the editor (no electron binary in _editor/node_modules/electron and no dist/electron-app), and installing one was not allowed. A capture script is ready in manual/capture/procedural-rock-brush.ts, but it has not been run yet. The one image below is an earlier real capture (from capture/map.ts) of the Terrain tool group, which lists Procedural Rock Brush. Everything else on this page comes from the editor's source code, and the panel, the overlays and the rocks are 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 Procedural Rock Brush (icon ⛰). Point to the entry to see its tooltip: "Stamp / Paint / Cliff, 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.
After that, the Terrain group button shows the ⛰ icon. Clicking the group button itself then arms the Procedural Rock Brush again (a group button arms the last tool you used from it).
The entry just below, Rock Region Select (icon ⬚), is a second tool that works on the same rock layers and shows the same Inspector panel. You can also switch between the two from the panel itself: the Tool section has the Stamp, Paint and Cliff buttons (they arm the Procedural Rock Brush in that mode) and a Rock Region Select button. This chapter covers the brush. Rock Region Select (selecting areas, the region handles in the 3D view) has its own chapter, Rock Region Select; the Regions section of the panel is described here because the brush shows it too.
While the brush is armed, the Inspector shows the Procedural Rock Brush panel. Selecting some objects takes the Inspector over: a building, a spline, a gameplay object (entity, spawn, wave controller, volume, marker, loot, vehicle spawn) or one of their definitions or profiles, an exterior boundary or prop, a placed prefab, an editor layer or group in the Hierarchy all have their own Inspector, which then replaces this panel. The brush stays armed. Select nothing to see the panel again.
Rock layers do not appear in the Hierarchy. They are managed only in this panel.
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.
Nothing is lost when you leave: every stroke and every setting change is already part of the map (see Undo, saving and export).
Before you start
| Requirement | What happens without it |
|---|---|
| The map has a terrain. | The toolbar entry is disabled with "Create a terrain first." If you reach the panel anyway (from Rock Region Select), Add Rock Layer and the mode buttons are disabled, and the panel shows "Create a terrain first: rocks are generated on the ground." |
| The map has at least one rock layer. | A new map has none. The panel shows "No procedural rock layers. Add one to generate stylized stone formations on the terrain." and only the Add Rock Layer button. The brush is not armed: no ring, no preview, and a left drag in the 3D view turns the camera as usual. Click Add Rock Layer first. |
| The chosen layer is Visible. | A hidden layer is never edited: the brush is not armed (no ring, no preview, clicks do nothing) until you tick Visible again. |
| You are in the Map workspace and not in Preview. | The brush is not armed. |
| The ground is in chunks that are ON (see the Chunks tab). | Rocks are built only where the terrain chunks are loaded. Rocks that stand over OFF chunks are not built or drawn in the editor (they come back when you turn the chunk ON, and the export always contains them). You can only press on ground that is drawn. |
The brush does not need water or a selection. It also works on a locked terrain: it never changes the terrain itself, so the terrain lock does not apply to it.
Key ideas
What a rock layer is
A map can have any number of rock layers. Each one is independent: its own settings, its own seed, its own painted areas, stamps and regions. Use several layers when you want rocks of different styles on the same map, for example small grey boulders everywhere and tall brown cliff walls in a canyon.
The Rock Layer drop-down at the top of the panel chooses which layer the panel shows and the brush edits. Every stroke goes into that layer only.
The three sources of rocks
| Source | Written by | What it holds | What it makes |
|---|---|---|---|
| Stamps | Stamp mode, one per click | A list of points, each with its own seed and size | One complete formation per stamp, exactly where the preview showed it. |
| Paint area | Paint mode | A 1 m grid of coverage values (0 to 100 %) | Formations scattered over the painted area, on a regular grid of possible spots. |
| Cliff area | Cliff mode | A second 1 m grid of coverage values | Upright rock walls, close together so they read as one wall, facing out of the slope. |
All three are combined into one set of rocks for the layer. Removing (Ctrl + click) clears both painted areas and deletes stamps under the brush, whatever mode is chosen.
What changes the rocks
- Where rocks are depends only on the seed, the sources and the placement settings (Spacing, Density, Cliff Spacing, slope and altitude rules).
- What they look like depends on the stone, formation, material and stack-stability settings.
So you can change heights, widths, bevels or colours freely: the formations change shape, but they stay where they are. Lowering Density hides some formations and leaves the others in place; raising it adds new ones without moving the others. Painting the same area twice adds nothing.
The panel at a glance
The panel has these sections, from top to bottom. Sections shown as collapsible have a title you click to open or close them.
- Procedural Rock Brush (always): Rock Layer, then the buttons Add Rock Layer, Duplicate, ▲, ▼, Delete Layer.
- Tool (only with a layer): the buttons Stamp, Paint, Cliff, Rock Region Select, a hint for the chosen mode, and Show Collision.
- A section without a title (only with a layer): Name, Visible, In Level, Formation Preset, Seed with Randomize Seed, the buttons Regenerate, Select All Formations, Clear Rocks, then Statistics and the warnings.
- Brush (collapsible, open at first): Radius, Stamp Scale, Strength, Falloff, Spacing (m), Density (%), Formation Freq. (%).
- Stone Shape (collapsible, closed): the size ranges and the shape of one stone.
- Formation (collapsible, closed): how stones are put together into one formation.
- Placement (collapsible, closed): the slope and altitude rules.
- Material (collapsible, closed): colour, texture and surface of the rocks.
- Collision (collapsible, closed): the simplified collision the game uses.
- Stack Stability (collapsible, closed): how strictly stacked stones must be carried.
- Advanced (collapsible, closed): polygon budget, shading and a few placement details.
- Regions (collapsible; closed while the brush is armed, opened by itself when you arm Rock Region Select): the selection, the selected stamps and the regions.
The settings in sections 3 to 11 belong to the layer: they are saved with the map and each change is one undo step. The settings in Tool and Brush that are marked "editor state" below are not.
Hidden settings ("Show more")
Some fields appear only at a higher Inspector Complexity (File › Preferences… › General › Inspector Complexity; see The Inspector). A new install starts at Normal. A hidden field keeps its value and keeps working: it is only not drawn. When a section hides something, it ends with Show more (N), which shows its hidden fields without changing the preference (Show less hides them again). Whole sections that are hidden (Stone Shape, Placement, Stack Stability, Advanced) are listed by the Show more at the end of the Inspector instead.
| Shown from | Fields |
|---|---|
| Normal | Rock Layer and the layer buttons; Stamp, Paint, Cliff, Rock Region Select; Name, Visible, In Level, Formation Preset; Regenerate, Select All Formations, Clear Rocks; Statistics: Formations, Stones; warnings; Radius, Stamp Scale, Strength, Density (%), Formation Freq. (%); in Formation: Min Stones, Max Stones, Width (m), Height (m), Depth (m), Size Var. (%); in Material: Material, Terrain Layer, Base Colour; Generate Collision; in Regions: the shape buttons, Selected Area, Selected Stamps, Clear Selection, and the Selected Stamps fields X, Z, Scale, Yaw (°), New Shape, Delete Stamps |
| Medium | Seed and Randomize Seed; Estimate; Falloff; Spacing (m); the whole Stone Shape section; in Formation: Verticality, Clustering, Gap, Overlap, Taper, Lean, Base Spread, Embedding, Irregularity, Small Stones; the whole Placement section; in Material: Texture Scale, Roughness, Metallic, Colour Var., Triplanar; Preserve Gameplay Gaps, Collision Quality; Create Region From Selection; the Seed of a selected stamp; the Regions list and the region editor |
| Advanced | Show Collision; Statistics: Vertices, Triangles, Collision Triangles, Memory, Chunks Regenerating; Tri Budget / Chunk, Min Size (m), Tolerance (m); the whole Stack Stability and Advanced sections |
Worked out from the source, at Normal the sections show: Tool Show more (1); the untitled layer section Show more (3); Brush Show more (2); Formation Show more (10); Material Show more (5); Collision Show more (5); Regions Show more (2), or (3) with exactly one stamp selected; and the Inspector's own Show more lists the 4 hidden sections. At Medium: Tool (1), layer section (1), Collision (3), and the Inspector lists 2 hidden sections. These counts have not been seen in a real capture.
A hidden section still warns you when something in it is wrong: the footer reports an error in Stone Shape (stones larger than the formation), Placement (Min Slope not below Max Slope), Advanced (Polygon Budget above 500) and Tri Budget / Chunk (collision budget exceeded). The Regions list is reported as modified when the layer has regions.
Quick start
Your first rocks
- Arm Terrain › Procedural Rock Brush.
- Click Add Rock Layer. A layer named Rocks is created with the Low Rock Pile preset and a random seed, and becomes the chosen layer. The statistics show 0 formations.
- Stamp is the mode chosen at first. Move the pointer over flat ground: a translucent, sand-coloured preview of a rock pile follows the pointer. That is exactly the formation a click will create.
- Click. The rock pile appears. One undo step (Ctrl+Z) takes it back. Move the pointer again: the preview now shows a different pile (each stamp gets its own seed).
- Click Paint. A ring the size of Radius (10 m at first) follows the pointer. Drag over a field: rock piles appear in the painted area while you drag. Release: the stroke is one undo step.
- Change Formation Preset to Single Rock or Wide Rock Formation: every formation of the layer is rebuilt in the new style, at the same places.
Remove what you do not want
- Hold Ctrl and click (without moving the mouse) on the rocks: the painted area under the ring is cleared and stamps whose centre is under the ring are deleted. Repeat for each spot. A Ctrl + drag turns the camera instead (see Removing rocks).
- Or click Clear Rocks to remove all the painted areas and stamps of the layer at once (its settings and regions stay).
Modes and gestures
Choose the mode with the Stamp, Paint and Cliff buttons of the Tool section. The button of the current mode is highlighted while the brush is armed. The mode is editor state: it is not saved and creates no undo step, and it is kept when you leave the tool and come back.
The hint under the buttons describes the current mode (see Statuses and messages).
In every mode, a ring the size of Radius follows the pointer. In Paint and Cliff it is the brush. In Stamp mode it only shows how much a Ctrl + click removes.
Stamp: one click, one formation
| Gesture | Result |
|---|---|
| Move the pointer over the terrain | A translucent, sand-coloured preview of the formation follows the pointer. It is built with the same settings, region overrides and seed the click will use, so the preview is the result. Where the ground refuses the formation (slope or altitude rules, or no terrain), the preview turns into a red disk about the formation's width. |
| Click on accepted ground | Adds one stamp there. The formation appears at once. On release the stamp is recorded as one undo step, and a new seed is chosen for the next stamp (the preview changes). |
| Click on red ground | Nothing is created. |
| Drag after the press | Adds nothing more: a stamp is one click. |
| Ctrl + click | Removes instead (see Removing rocks). |
What a stamp uses:
- It always builds the layer's full formation (the type set by Formation Preset). Density, Formation Freq., Spacing and Size Variation do not apply to stamps.
- Its size is Stamp Scale at the moment of the click (0.25 to 4 × the layer's formation size). Changing Stamp Scale later does not change stamps already placed; you can change one stamp's Scale in the Selected Stamps fields.
- Its turn (yaw) comes from its own seed. Exception: Tall Rock Column and Cliff Formation stamps on a slope always turn to face out of the slope.
- The Min Slope, Max Slope and altitude rules apply: that is what turns the preview red.
The preview is placed without the final "settle on the terrain" step that the real rocks get, so on uneven ground the placed rocks can sit very slightly differently from the preview (a known limitation noted in the editor's documentation).
Paint: scatter formations over an area
| Gesture | Result |
|---|---|
| Move the pointer over the terrain | The ring follows. Cells under the ring where the ground refuses formations (slope or altitude rules) are shaded red. |
| Press and drag | Paints the layer's paint area under the ring. The brush lays down a dab every quarter of the radius along the path. The chunks the stroke touches are rebuilt while you drag. |
| Release | The stroke is recorded as one undo step and the touched chunks are rebuilt from the saved result. A stroke that changed nothing records nothing. |
| Ctrl + click | Removes instead (see Removing rocks). |
How painting works:
- Each 1 m cell of the paint area holds a coverage from 0 to 100 %. A dab sets each cell under the ring to Strength × the Falloff curve at that distance from the centre, but only if that is higher than what the cell already has. Painting over an area again, or with a lower Strength, never lowers it and never adds rocks twice.
- The layer has a fixed grid of possible spots, one per Spacing × Spacing square (10 m for Low Rock Pile), each moved off the grid by up to 40 % of the spacing. A spot becomes a formation when its own random number (from the seed) is below Density × the coverage there. So with Strength 100 % and Density 60 %, about 60 % of the spots in the painted area get a formation; with Strength 50 %, about 30 %.
- A spot that becomes a formation is a full formation of the preset's type with the chance Formation Freq.; otherwise it is a loose rock of one or two stones sized from the Stone Shape ranges.
- Each formation also gets a random size change of up to ± Size Variation (Advanced), a random turn, and a tilt towards the slope (see Align To Terrain).
- Spots whose ground breaks the slope or altitude rules get nothing. That is what the red cells show.
The live preview rebuilds at most 6 chunks (32 × 32 m each) every 40 ms. With a very large Radius, a dab can touch more chunks than that: the rocks then appear only when you release.
Cliff: connected walls on steep ground
| Gesture | Result |
|---|---|
| Move the pointer over the terrain | As in Paint: the ring, and red cells where the ground refuses formations. |
| Press and drag | Paints the layer's cliff area under the ring (same rules as Paint: Strength × Falloff, never lowered). |
| Release | One undo step, as in Paint. |
| Ctrl + click | Removes instead (see Removing rocks). |
How the cliff area differs from the paint area:
- Its grid of spots uses Cliff Spacing (m) (Advanced, 3.5 m for most presets, 4.5 m for Cliff Formation), and spots move off the grid by only about 17 % of it, so the walls stay connected.
- A spot becomes a wall when its random number is below the coverage alone: Density and Formation Freq. do not apply. At Strength 100 % every spot gets a wall.
- Every wall is built as a Cliff Formation, whatever the Formation Preset, with at least 60 % Verticality, using the layer's own stone and formation sizes.
- Walls stand upright (they never tilt with the slope), turn to face out of the slope (with a few degrees of random variation), and are pushed a quarter of their depth into the slope so their back is buried.
Cliff mode follows the layer's slope rules
Cliff mode does not check by itself that the ground is steep: it uses Min Slope (°) and Max Slope (°) like the other modes. With the Cliff Formation preset these are 30° to 90°, so walls appear only on steep ground and flat ground is shown red. With the other presets they are 0° to 50°: walls then appear on flat ground too, and faces steeper than 50° are refused. For walls on a steep face, choose Formation Preset: Cliff Formation, or set the slope range yourself in Placement. The other presets also make low walls (their formation Height is small).
Removing rocks
Removing works the same in all three modes.
| Gesture | Result |
|---|---|
| Ctrl + click (press and release without moving the mouse more than 4 pixels) | One remove dab: in both the paint area and the cliff area, each cell under the ring is lowered to at most (1 − the Falloff curve at that distance). With the Hard falloff everything under the ring is cleared; with the soft curves the edge of the ring is only partly cleared. Every stamp whose centre is inside the ring is deleted. One undo step. |
| Ctrl + drag | Turns (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. |
| Clear Rocks button | Removes all painted areas and all stamps of the layer. Settings and regions stay. One undo step. |
| Delete Stamps button | Deletes the stamps picked with Rock Region Select (see Selected Stamps). |
The panel hint says "Ctrl + drag removes"
The mode hints read "… Ctrl + drag removes rocks." / "Ctrl + drag removes.", 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). The Procedural Rock Brush has no Shift or Erase mode either. To clear an area, Ctrl + click spot by spot (a larger Radius and the Hard falloff clear more per click), or use Clear Rocks.
Ctrl is read when you press the button. Releasing Ctrl makes the next press add again.
How the rocks are built
Knowing the steps helps to understand which setting does what. For every 32 × 32 m chunk of the layer:
Spots. First the stamps whose centre is in the chunk, then the spots of the paint area grid (Spacing), then those of the cliff area grid (Cliff Spacing). Each spot belongs to exactly one chunk, so nothing doubles at chunk borders.
Regions. The overrides of the regions that cover the spot are blended in (see Regions).
Density. Paint spots are kept when their random number is below Density × coverage; cliff spots when it is below the coverage.
Ground. A spot is refused when there is no ground, when the slope is outside Min Slope to Max Slope, or (with Limit Altitude) when the ground height is outside Min Altitude to Max Altitude. Otherwise the formation is turned (random yaw, or facing out of the slope for walls and columns), tilted towards the slope by Align To Terrain (at most Max Tilt; never for walls and columns), and lowered until no edge of it floats, then sunk by Embedding.
Formation. Stones are packed inside the formation's envelope (Width, Height, Depth): largest stones first, at the base and the core, smaller ones in the gaps and on top. The shape of the envelope depends on the type:
Type (preset) Envelope Single Rock One main block, plus optional pebbles. Low Rock Pile A dome. Wide Rock Formation An irregular ridge along its width. Tall Rock Column A flat-topped column, narrowing by Taper. Cliff Formation A thick wall, tallest at the back, stepping down towards its face. Plus a low skirt of smaller stones around the base (Base Spread).
Stability. Each stacked stone is checked on its real shape: it must rest on a broad enough part of the stones under it (Stack Stability). Stones that cannot be carried are moved, narrowed, re-seated on the ground beside the stack, or dropped. Ground stones are always settled onto the terrain.
Meshes. All stones of the chunk become one mesh per material, plus one simplified collision mesh (Collision).
Safety limits apply whatever the settings: at most 160 formations per chunk (extra ones are skipped, and the panel warns), and at most 48 stones per formation.
Building is spread over time (a slice of about 14 ms at a time), so the editor stays responsive while a whole layer is rebuilt: chunks are replaced one after the other, and Chunks Regenerating (Advanced statistics) counts the ones still waiting. A change to any layer setting rebuilds the whole layer; a stroke rebuilds only the chunks it touched.
Managing layers
| Action | How | Result |
|---|---|---|
| Add a layer | Add Rock Layer | A new layer named Rocks (or Rocks 2, Rocks 3… if the name is taken), with a new random seed and the default material, collision and stack stability. Its stone, formation and placement values are those of the preset of the layer currently shown (Low Rock Pile when there is none); your own edits to the current layer are not copied. It is added at the end of the list and becomes the chosen layer. One undo step. Disabled without a terrain. |
| Copy a layer | Duplicate | A copy with everything: settings, seed, painted areas, stamps and regions, named like the original with a number (Rocks 2…). It is inserted just after the original and becomes the chosen layer. One undo step. |
| Reorder | ▲ (Move Up) / ▼ (Move Down) | Moves the layer one place in the list (disabled at the top / bottom). Only the order of the list changes. One undo step. |
| Delete a layer | Delete Layer, then Click Again To Delete | The first click turns the button into Click Again To Delete (danger colour). The second click deletes the layer with everything painted, stamped and overridden in it. Choosing another layer in Rock Layer cancels the pending deletion. One undo step: Ctrl+Z brings the layer back with everything. |
| Choose a layer | Rock Layer drop-down | The panel and the brush switch to that layer. The selection and the chosen region (Rock Region Select) are cleared. Not an undo step. |
A duplicated layer sits exactly on top of the original
A copy has the same seed, the same painted areas and the same stamps, so its rocks are generated at the same places as the original's: the two sets overlap. After Duplicate, change the copy's Seed (or click Randomize Seed), or Clear Rocks on the copy and paint it again, or change its preset to make a different style over the same area.
When the chosen layer is deleted (or the map has none left), the panel switches to the first layer of the list.
Property reference
Conventions. Number fields are applied when they lose focus or when you press Enter in them. Values outside the range are held at the nearest limit; text that is not a number is ignored. Fields marked "%" are typed as percentages and stored as fractions. Paired values (Min / Max) that you type the wrong way round are swapped: typing a Min Width larger than the Max Width makes the two exchange. Layer settings are saved with the map; each change is one undo step, marks the map as unsaved and rebuilds the layer's rocks. Editor state is not saved, creates no undo step and is kept for the session.
The default values below are those of a new layer with the Low Rock Pile preset. The values of the other presets are in Presets.
Procedural Rock Brush section
| Name | Control | Level | Purpose and effects |
|---|---|---|---|
| Rock Layer | Drop-down | Normal | Which layer the panel shows and the brush edits. Lists the layers by name, in list order. Shown only when the map has layers. Editor state. |
| Add Rock Layer | Button | Normal | See Managing layers. Disabled without a terrain. |
| Duplicate | Button | Normal | See Managing layers. Shown when a layer is chosen. |
| ▲ / ▼ | Buttons (Move Up / Move Down) | Normal | Move the layer in the list. |
| Delete Layer / Click Again To Delete | Button | Normal | Two clicks delete the layer. |
| "Create a terrain first: rocks are generated on the ground." | Text | Normal | Shown when the map has no terrain. |
Tool section
| Name | Control | Level | Default | Purpose and effects |
|---|---|---|---|---|
| Stamp, Paint, Cliff | Buttons (one highlighted) | Normal | Stamp | Arm the Procedural Rock Brush in that mode (see Modes). Disabled without a terrain. Editor state. |
| Rock Region Select | Button | Normal | – | Arms the Rock Region Select tool (same panel). Disabled without a terrain. |
| Hint | Text | Normal | – | Describes the current mode, or Rock Region Select (see Statuses). |
| Show Collision | Checkbox | Advanced | Off | Shows the collision meshes of all rock layers in the 3D view: the rocks become see-through and the simplified collision shapes are drawn in translucent orange. Only in the editor; never exported. Editor state. |
Layer: name, visibility, preset and seed
| Name | Control | Level | Default | Purpose and effects |
|---|---|---|---|---|
| Name | Text field | Normal | Rocks | The layer's name, shown in Rock Layer. Applied when the field loses focus or on Enter; an empty name is ignored. |
| Visible | Checkbox | Normal | On | Editor visibility. Off: the layer's rocks are taken off the screen (they come back at once from memory when you tick it again) and the brush cannot edit the layer. The layer is still in the level and still exported. Saved with the map; one undo step. |
| In Level | Checkbox | Normal | On | Off: the layer generates no rocks at all, neither in the editor nor in the export. Its painted areas, stamps and settings are kept. The brush still edits it (you just see nothing). Saved; one undo step. |
| Formation Preset | Drop-down: Single Rock, Low Rock Pile, Wide Rock Formation, Tall Rock Column, Cliff Formation | Normal | Low Rock Pile | Copies the preset's values into the Stone Shape, Formation and Placement settings (including the Advanced placement fields and Polygon Budget / Shading), and sets the formation type. Kept: the seed, Limit Altitude with Min / Max Altitude, the material, collision, stack stability, painted areas, stamps and regions. The values stay editable afterwards (hint: "Choosing a preset copies its values into the settings below; they stay editable."). The drop-down keeps showing the last preset chosen even after you edit values. One undo step. |
| Seed | Number field (whole numbers ≥ 0) | Medium | Random | The only source of randomness of the layer: where the spots of the grids are, which ones become formations, their turn, size and shape. The same seed gives the same rocks. Decimals are cut off; negative values are ignored; values above 4 294 967 295 wrap around. |
| Randomize Seed | Button | Medium | – | Picks a new random seed: a different, equally stable arrangement. To go back, type the old seed (note it first) or use Ctrl+Z. |
| Regenerate | Button | Normal | – | Rebuilds the whole layer from scratch. Because building is deterministic, the same rocks come back; use it if the view looks out of date. Not an undo step. |
| Select All Formations | Button | Normal | – | Selects the footprints of every formation of the layer and all its stamps, and switches to Rock Region Select. |
| Clear Rocks | Button | Normal | – | Removes all painted areas and all stamps of the layer, keeping its settings and regions. One undo step. |
Statistics
Under the title Statistics:
| Name | Level | Meaning |
|---|---|---|
| Formations | Normal | Formations currently built for the layer (in loaded chunks). |
| Stones | Normal | Stones in those formations. |
| Vertices, Triangles | Advanced | Size of the visual meshes. |
| Collision Triangles | Advanced | Size of the collision meshes. |
| Memory | Advanced | Approximate memory of the meshes, in KB or MB. |
| Chunks Regenerating | Advanced | Shown only while chunks are still being rebuilt. |
| Estimate (stones / tris / memory) | Medium | Shown as ~stones / ~trianglest / memory. An upper estimate worked out from the painted areas, Spacing, Density, Cliff Spacing, the number of stamps and the stone settings, before the slope and altitude rules. It updates before anything is built, so you can see the cost of a setting first. 0 when In Level is off. |
Brush section
| Name | Control | Level | Default | Range / units | Purpose and effects |
|---|---|---|---|---|---|
| Radius | Number field, step 1 | Normal | 10 | 0.25 – 500 m | The ring's radius: the size of a Paint / Cliff dab and of a Ctrl + click removal. Shared with the other terrain brushes (Terrain Sculpt and the others use the same ring): changing it here changes their size too. Editor state. |
| Stamp Scale | Number field, step 0.05 | Normal | 1 | 0.25 – 4 | Size of the next stamps, as a multiple of the layer's formation size. Existing stamps keep their own scale. The Stamp preview follows it. Editor state. |
| Strength: N% | Slider, step 5 | Normal | 100 % | 5 – 100 % | The coverage a Paint or Cliff dab lays down at its centre. Lower values give sparser rocks (Paint: Density × coverage; Cliff: coverage), and never lower what is already painted. Not used by Stamp or by removal. Editor state. |
| Falloff | Drop-down: Smooth, Linear, Sharp, Bell, Plateau, Hard | Medium | Smooth | – | How the dab fades from the centre to the ring: Hard paints (or clears) the whole disk evenly; the others fade towards the edge. Shared with the other terrain brushes. Editor state. |
| Spacing (m) | Number field, step 0.5 | Medium | 10 | 1 – 64 m | Layer setting. The size of the paint area's grid of spots: at most one formation per Spacing × Spacing square. Larger = fewer, more spread-out formations. Paint only. |
| Density (%) | Number field, step 1 | Normal | 60 % | 0 – 100 % | Layer setting. The share of spots in a fully painted area that get a formation. Lowering it hides formations, raising it adds new ones; the others stay where they are. Paint only (not Cliff, not Stamp). |
| Formation Freq. (%) | Number field, step 1 | Normal | 70 % | 0 – 100 % | Layer setting. The share of painted formations that are full formations of the preset's type; the rest are loose rocks of one or two stones. Paint only. |
Stone Shape section
The shape of one stone. Each stone starts as a block with a flat base, is cut by diagonal planes, gets chamfered (bevelled) edges and a slight surface irregularity, and may lean. Lengths are in metres. The whole section is Medium.
| Name | Default | Range | Purpose |
|---|---|---|---|
| Min Width, Max Width | 0.7, 2.2 | 0.1 – 40 m | Range of stone widths. |
| Min Height, Max Height | 0.4, 1.4 | 0.1 – 60 m | Range of stone heights. |
| Min Depth, Max Depth | 0.7, 1.9 | 0.1 – 40 m | Range of stone depths. Stones are made smaller along the packing order (big first, small last), and their proportions follow Verticality. |
| Aspect Var. (%) | 35 | 0 – 100 % | Random change of a stone's width : height : depth ratio. |
| Asymmetry (%) | 35 | 0 – 100 % | How far the top of a stone drifts off the centre of its base. |
| Taper (%) | 15 | 0 – 80 % | How much narrower the top of a stone is than its base. |
| Lean (°) | 4 | 0 – 30° | Random lean of each stone. |
| Cut Planes | 3 | 0 – 8 (whole) | Number of diagonal cuts that break the block into large facets. |
| Cut Strength (%) | 50 | 0 – 100 % | How deep those cuts go. |
| Bevel Width (%) | 8 | 0 – 30 % | The chamfer on every edge, as a share of the stone's smallest dimension. |
| Bevel Segments | 1 | 0 – 3 (whole) | Faces per chamfer: 0 = hard edges, 1 = a flat chamfer, 2–3 = rounded edges. More segments cost more triangles. |
| Edge Irreg. (%) | 40 | 0 – 100 % | Variation of the chamfers and cuts from edge to edge. |
| Surface Irreg. (%) | 25 | 0 – 100 % | Small bumps of the surface (at most a few percent of the stone). The base stays flat. |
| Base Flatten (%) | 70 | 0 – 100 % | 100 % = a wide flat base; lower values round the bottom edges away. |
The section footer reports an error, and the panel shows the warning "Stones are larger than the formation…", when Max Width is larger than the formation Width (m) or Max Height is more than 1.5 × the formation Height (m).
Polygon Budget and Shading, which also belong to the stone, are in the Advanced section.
Formation section
How stones are put together into one formation. The formation's envelope is its Width (across), Height (up) and Depth (outward, the face of a wall).
| Name | Level | Default | Range | Purpose |
|---|---|---|---|---|
| Min Stones, Max Stones | Normal | 6, 11 | 1 – 40 (whole) | How many stones one formation has. Region Stone Count × multiplies it; never more than 48. |
| Width (m) | Normal | 5 | 0.3 – 80 m | Envelope width. |
| Height (m) | Normal | 2.2 | 0.3 – 120 m | Envelope height. |
| Depth (m) | Normal | 4 | 0.3 – 80 m | Envelope depth. |
| Size Var. (%) | Normal | 50 | 0 – 100 % | Spread of stone sizes inside one formation. |
| Verticality (%) | Medium | 20 | 0 – 100 % | 0 = flat, wide blocks; 100 = tall standing slabs. Also reduces how much the formation tilts with the slope. Cliff walls use at least 60 %. |
| Clustering (%) | Medium | 60 | 0 – 100 % | How tightly stones gather at the formation's core. |
| Gap (m) | Medium | 0.05 | 0 – 0.5 m (step 0.1) | Dark gap kept between neighbouring stones. |
| Overlap (%) | Medium | 20 | 0 – 50 % | How far a stone may sink into the stones carrying it, hiding holes. |
| Taper (%) | Medium | 30 | 0 – 80 % | Narrowing of the envelope towards the top. |
| Lean (°) | Medium | 2 | 0 – 25° | Lean of the whole formation (also the only tilt walls and columns get). |
| Base Spread (%) | Medium | 40 | 0 – 100 % | Skirt of smaller stones around the base, reaching out to 1 + 0.6 × this of the envelope. |
| Embedding (m) | Medium | 0.2 | 0 – 5 m | How far the formation is sunk into the ground (multiplied by its size). |
| Irregularity (%) | Medium | 50 | 0 – 100 % | Random turns and offsets of the stones, and up to ±15 % variation of each formation's envelope. |
| Small Stones (%) | Medium | 50 | 0 – 100 % | Extra small stones in the gaps and on top. |
Placement section
Where formations may stand. The whole section is Medium. These rules apply to all three modes, to stamps too.
| Name | Default | Range | Purpose |
|---|---|---|---|
| Limit Altitude | Off | – | On: formations stand only where the ground height is between Min Altitude and Max Altitude. Off: the two fields are ignored (they stay visible). |
| Min Slope (°) | 0 | 0 – 90° | Formations stand only where the slope is at least this. |
| Max Slope (°) | 50 | 0 – 90° | … and at most this. |
| Min Altitude | 0 | −10 000 – 10 000 (world height, metres) | Lowest ground height, with Limit Altitude on. |
| Max Altitude | 100 | −10 000 – 10 000 | Highest ground height, with Limit Altitude on. |
Refused ground is shown red under the brush (Paint, Cliff) or as a red disk (Stamp). The section footer reports an error, and the panel warns "Minimum slope is not below maximum slope: almost no ground accepts rocks.", when the two slopes are equal (if you type them the wrong way round they are swapped). Formation Preset never changes Limit Altitude or the altitudes. Regions can override Min Slope and Max Slope locally.
Material section
What the rocks are drawn with. All stones of a layer share one material (each stone gets its own small colour variation).
| Name | Control | Level | Default | Range | Purpose |
|---|---|---|---|---|---|
| Material | Drop-down: Stylized Stone, Terrain Layer Textures | Normal | Stylized Stone | – | Stylized Stone: a plain colour. Terrain Layer Textures: the albedo and normal textures of a terrain layer (see Material Paint). Choosing Terrain Layer Textures without a terrain layer does nothing: the layer stays Stylized Stone until you choose one in Terrain Layer. |
| Terrain Layer | Drop-down (placeholder None) | Normal | None | The project's terrain layers | Shown when the material is Terrain Layer Textures or when the project has terrain layers. Choosing a terrain layer switches the material to Terrain Layer Textures. The 3D view applies its albedo and normal textures (not its mask map). |
| Base Colour | Colour picker | Normal | #9e998f (neutral grey) | – | The rocks' colour. With textures, it multiplies the texture. |
| Texture Scale (m) | Number field, step 0.25 | Medium | 4 | 0.25 – 64 m | Metres per repeat of the texture. |
| Roughness (%) | Number field | Medium | 88 | 0 – 100 % | Surface roughness (100 = matte). |
| Metallic (%) | Number field | Medium | 0 | 0 – 100 % | Metallic look. |
| Colour Var. (%) | Number field | Medium | 12 | 0 – 50 % | Per-stone brightness / hue variation. |
| Triplanar (box) projection | Checkbox | Medium | On | – | On: the texture is projected on each face from its main direction (no stretching on steep faces). Off: projected straight down. |
If the chosen terrain layer is missing (for example it was deleted), the panel warns "The selected terrain layer material is missing or invalid; the neutral stone colour is used."
Collision section
The simplified collision the game uses for the rocks, one mesh per chunk. It is built from each stone's basic block (before bevels and small details), so it is much lighter than the visual mesh.
| Name | Control | Level | Default | Range | Purpose |
|---|---|---|---|---|---|
| Generate Collision | Checkbox | Normal | On | – | Off: the layer has no collision (players walk through the rocks). |
| Preserve Gameplay Gaps | Checkbox | Medium | On | – | On: the collision is drawn in to about the bevelled surface, so walkable gaps between stones stay open. Off: the collision grows by half the gap, sealing the gaps. |
| Collision Quality | Drop-down: Low (blocks), Medium (major cuts), High (all cuts) | Medium | Medium (major cuts) | – | Low: each stone is its tapered block (12 triangles). Medium: plus its two deepest cuts. High: plus every cut deeper than Tolerance. |
| Tri Budget / Chunk | Number field, step 64 | Advanced | 12 000 | 64 – 65 536 | Collision triangles one 32 m chunk may have. Above it, the chunk drops to a lower quality, then drops the smallest stones from collision until it fits; the panel then warns "Collision budget exceeded…". |
| Min Size (m) | Number field, step 0.05 | Advanced | 0.35 | 0 – 5 m | Stones whose largest dimension is below this get no collision. |
| Tolerance (m) | Number field, step 0.01 | Advanced | 0.1 | 0 – 1 m | Cuts shallower than this are not part of the collision (used by High). |
Tick Show Collision (Tool section, Advanced) to see the result.
Stack Stability section
Hint: "How strictly stacked stones must be carried. Ground stones always touch the terrain." The whole section is Advanced.
| Name | Default | Range | Purpose |
|---|---|---|---|
| Narrower Upper Layers | On | – | Upper stones may be no wider or deeper than Upper Width Max × what carries them; a wider one is narrowed (its height kept). |
| Re-seat Unsupported Stones | On | – | On: a stone that cannot be carried is moved to the ground beside the stack. Off: it is dropped. |
| Upper Width Max (%) | 85 | 30 – 100 % | With Narrower Upper Layers: the largest width of an upper stone compared with its supports. |
| Min Support Contact (%) | 65 | 15 – 95 % | Share of an upper stone's footprint that must rest on its supports (it may sink slightly into them to reach it). Higher = more stones end on the ground. |
| Support Inset (%) | 8 | 0 – 50 % | How far inside its support the stone's centre must be, as a share of its smaller half-size. |
Advanced section
The whole section is Advanced.
| Name | Control | Default | Range | Purpose |
|---|---|---|---|---|
| Polygon Budget (tris / stone) | Number field, step 8 | 180 | 24 – 800 | Triangles one stone may have. Over it, the generator drops bevel segments, then cuts, then the last chamfer. Above 500 the section footer reports an error and the panel warns "Unsafe polygon budget…". |
| Shading | Drop-down: Flat, Smooth Bevels | Smooth Bevels | – | Flat: every face shaded flat. Smooth Bevels: flat faces with softly shaded bevels. |
| Cliff Spacing (m) | Number field, step 0.5 | 3.5 | 1 – 32 m | The cliff area's grid of spots (Cliff mode). Small, so walls join up. |
| Align To Terrain (%) | Number field | 35 | 0 – 100 % | Stamp and Paint formations: how far they tilt from straight up towards the slope (reduced by Verticality). Walls and columns never tilt. |
| Max Tilt (°) | Number field, step 0.5 | 12 | 0 – 45° | The most any formation tilts. |
| Size Variation (%) | Number field | 25 | 0 – 80 % | Random size change of each painted or cliff formation (not stamps). |
Regions section
This section is shared with Rock Region Select. It is closed while the brush is armed; click its title to open it. The tools to select an area are the four shape buttons at its top, which arm Rock Region Select (selecting is described in that tool's chapter, Rock Region Select).
| Name | Control | Level | Purpose |
|---|---|---|---|
| Brush, Rectangle, Lasso, Formation | Buttons | Normal | Arm Rock Region Select with that selection shape. Hint: "Select with the chosen shape; Ctrl subtracts. Formation picks a whole formation under the pointer." |
| Selected Area | Read-out (m²) | Normal | Size of the current selection. |
| Selected Stamps | Read-out | Normal | Number of stamps whose centre is in the selection. |
| Create Region From Selection | Button | Medium | Makes a region from the selection (named Region 1, Region 2…, falloff 2 m, priority = the number of regions the layer already had, so 0 for the first), selects it and clears the selection. Disabled with an empty selection. One undo step. |
| Clear Selection | Button | Normal | Clears the selection and the selected stamps. Disabled when nothing is selected. Not an undo step. |
Selected Stamps
Shown when the selection contains stamps (title Selected Stamps). The fields are shown only when exactly one stamp is selected.
| Name | Control | Level | Purpose |
|---|---|---|---|
| X, Z | Number fields, step 0.5 | Normal | The stamp's position (world metres). Typing moves it. |
| Scale | Number field, step 0.05 | Normal | The stamp's size, 0.25 – 4. |
| Yaw (°) | Number field, step 5 (placeholder auto) | Normal | The stamp's turn. Empty = auto (from its seed); clearing the field goes back to auto. Ignored for Tall Rock Column and Cliff Formation stamps on a slope, which always face out of it. |
| Seed | Number field | Medium | The stamp's own seed: its shape. |
| New Shape | Button | Normal | Gives every selected stamp a new random seed (one undo step per stamp). |
| Delete Stamps | Button | Normal | Deletes the selected stamps. One undo step. |
Each field change is one undo step.
Regions and the region editor
A region is a part of the layer with its own settings. All of this is Medium.
| Name | Control | Purpose |
|---|---|---|
| Region list | One row per region: its name (click to select or deselect it), a Pn priority badge, ▲ / ▼ | ▲ / ▼ reorder regions; among equal priorities, the later one wins. Empty list: "No regions. Select an area and create one to override parameters locally." |
| Region Name | Text field | The region's name. |
| Enabled | Checkbox | Off: the region has no effect. |
| Show Outline | Checkbox | Draws the region's area in light blue in the 3D view (the selected region is always drawn, darker). Not part of the rocks. |
| Priority | Number field, whole numbers −1000 – 1000 | Higher priority is applied later and wins where regions overlap. |
| Falloff (m) | Number field, 0 – 32 m, step 0.5 (default 2) | Width over which the overrides fade in at the region's edge; 0 = a hard border. The transition band is about 2 × Falloff wide, centred on the edge. |
| Seed Offset | Number field, whole numbers | Added to the layer seed inside the region: a different arrangement there. |
| Add Selection / Replace Area | Buttons | Add the current selection to the region's area, or replace its area with it. Disabled with an empty selection. |
Overrides (hint: "Unset values inherit the layer. Multipliers scale the value of the layer; the others replace it."). Each field shows the value it inherits until you type one; a set override is highlighted and its ↺ (Reset To Layer) button removes it.
| Override | Range | Effect inside the region |
|---|---|---|
| Height × | 0.001 – 1000 | Stretches the finished formations vertically about their base. Limited so no formation exceeds 120 m. |
| Width × | 0.001 – 1000 | Scales the finished formations horizontally about their centre. Limited so no formation reaches more than 128 m from its centre. |
| Spread × | 0 – 1000 | Moves formations (and their stones) away from (> 1) or towards (< 1) the region's centre, without resizing them. At most 128 m of movement. |
| Depth × | 0.1 – 5 | Multiplies the formation Depth. |
| Density × | 0 – 5 | Multiplies Density (Paint). For the cliff area it multiplies the coverage, at most × 1.5. |
| Stone Count × | 0.1 – 5 | Multiplies Min / Max Stones. |
| Clustering, Overlap, Verticality | 0 – 1, 0 – 0.5, 0 – 1 | Replace the layer value. Note: typed as fractions here (0.6), while the layer fields use percentages (60). |
| Gap (m) | 0 – 0.5 | Replaces Gap. |
| Lean (°) | 0 – 25 | Replaces the formation Lean. |
| Bevel Width | 0 – 0.3 | Replaces the stone Bevel Width (a fraction: 0.08 = 8 %). |
| Embedding (m) | 0 – 5 | Replaces Embedding. |
| Min Slope (°), Max Slope (°) | 0 – 90 | Replace the slope rules. |
| Colour Tint | Colour | Multiplies the stones' colours. |
| Material Colour | Colour | A different material inside the region: the layer's material with this base colour. |
| Material Textures | Drop-down (with clear), shown when the project has terrain layers | A different terrain layer texture inside the region; clearing it makes the region material Stylized Stone. |
Multipliers fade in across the falloff band; the other numbers are blended between the layer value and the override; the material and the seed offset switch formation by formation across the band.
Effective In Region (hint: "At the region core, live while dragging. The layer values stay unchanged for the rest of the map."): read-only rows Stone Height, Formation Height, Stone Width, Stone Depth, Formation Width, Formation Depth (in metres) and Spacing (× factor), worked out from the layer values and the region's Height ×, Width ×, Depth × and Spread ×.
Buttons: Reset Height Override, Reset Width Override, Reset Spread Override (each enabled when that override is set), Reset All Overrides, Delete Region (danger colour; deleting a region restores the layer's settings there and keeps the painted areas and stamps). Each is one undo step.
While a region is selected, the brush still paints and stamps the whole layer: regions only change the settings used inside their area. The regions are drawn in the 3D view while the brush is armed too (light blue, the selected one darker; the current selection in orange).
Presets
What Formation Preset copies into the layer. Values not listed are the same for every preset (see the defaults in the tables above). Lengths in metres.
| Single Rock | Low Rock Pile | Wide Rock Formation | Tall Rock Column | Cliff Formation | |
|---|---|---|---|---|---|
| Stone width (min – max) | 1.2 – 2.6 | 0.7 – 2.2 | 1.2 – 3.2 | 1.3 – 2.2 | 1.2 – 3 |
| Stone height | 0.8 – 2 | 0.4 – 1.4 | 0.8 – 2.8 | 1.6 – 3.6 | 1.6 – 5 |
| Stone depth | 1 – 2.2 | 0.7 – 1.9 | 1 – 2.6 | 1.2 – 2 | 1 – 2.4 |
| Stone Taper / Lean / Cut Planes | 18 % / 4° / 4 | 15 % / 4° / 3 | 18 % / 4° / 3 | 12 % / 3° / 3 | 10 % / 2° / 3 |
| Polygon Budget | 220 | 180 | 180 | 180 | 180 |
| Stones (min – max) | 1 – 3 | 6 – 11 | 9 – 16 | 10 – 15 | 8 – 14 |
| Formation W × H × D | 2.6 × 1.8 × 2.2 | 5 × 2.2 × 4 | 9 × 3.5 × 5 | 4.8 × 8.5 × 3.8 | 7 × 8 × 3 |
| Size Var. / Verticality / Clustering | 30 / 30 / 80 % | 50 / 20 / 60 % | 50 / 35 / 45 % | 40 / 80 / 60 % | 40 / 90 / 50 % |
| Gap / Overlap | 0.04 / 15 % | 0.05 / 20 % | 0.06 / 18 % | 0.05 / 12 % | 0.05 / 20 % |
| Formation Taper / Lean | 10 % / 3° | 30 % / 2° | 25 % / 3° | 30 % / 5° | 15 % / 3° |
| Base Spread / Embedding | 25 % / 0.15 | 40 % / 0.2 | 35 % / 0.3 | 30 % / 0.35 | 20 % / 0.8 |
| Irregularity / Small Stones | 40 / 35 % | 50 / 50 % | 45 / 45 % | 35 / 35 % | 35 / 30 % |
| Spacing / Density / Formation Freq. | 6 / 50 / 100 % | 10 / 60 / 70 % | 16 / 50 / 70 % | 14 / 45 / 70 % | 12 / 60 / 70 % |
| Slope range | 0 – 50° | 0 – 50° | 0 – 50° | 0 – 50° | 30 – 90° |
| Cliff Spacing / Align To Terrain / Max Tilt | 3.5 / 35 % / 12° | 3.5 / 35 % / 12° | 3.5 / 35 % / 12° | 3.5 / 10 % / 6° | 4.5 / 0 % / 6° |
Tall Rock Column and Cliff Formation stand upright and face out of the slope, whatever Align To Terrain says. The editor's own measurements note that Cliff Formation painted on flat ground produces nothing, by design (its 30° minimum slope).
Statuses and messages
| Where | Text | When |
|---|---|---|
| Tool hint | "Click to place one complete formation where the preview shows it. Red ground rejects it. Ctrl + drag removes rocks." | Stamp mode. (About Ctrl + drag, see Removing rocks.) |
| Tool hint | "Drag to paint rock formations across the ground. Overlapping strokes never duplicate rocks. Ctrl + drag removes." | Paint mode. |
| Tool hint | "Drag over steep ground to build connected, upright rock walls facing out of the slope. Ctrl + drag removes." | Cliff mode. |
| Tool hint | "Select part of the layer to give it its own parameters. Ctrl subtracts from the selection." | Rock Region Select armed. |
| Layer section | "No procedural rock layers. Add one to generate stylized stone formations on the terrain." | The map has no rock layer. |
| Layer section | "Create a terrain first: rocks are generated on the ground." | No terrain. |
| Warning | "Unsafe density: about N stones (warning above 60000). Lower the density or raise the spacing." | The estimate is above 60 000 stones. |
| Warning | "Unsafe polygon budget: about N triangles for this layer. Lower the polygon budget or the bevel segments." | The estimate is above 6 000 000 triangles, or Polygon Budget is above 500. |
| Warning | "The selected terrain layer material is missing or invalid; the neutral stone colour is used." | Terrain Layer Textures with a missing terrain layer. |
| Warning | "Stones are larger than the formation: formations will hold fewer, clipped stones." | Max Width > formation Width, or Max Height > 1.5 × formation Height. |
| Warning | "Minimum slope is not below maximum slope: almost no ground accepts rocks." | Min Slope = Max Slope. |
| Warning | "Some chunks reached the formation safety limit; extra formations were skipped." | A chunk would hold more than 160 formations. |
| Warning | "No valid terrain candidates: the painted ground rejects every formation (slope or altitude)." | The layer has painted areas or stamps, chunks were built, and not one formation could stand. |
| Warning | "Some formations reached the safe limits (height 120 m, reach 128 m, spread displacement 128 m): their region multipliers were limited." | A region's Height ×, Width × or Spread × was held at a limit. |
| Warning | "Collision budget exceeded: small stones were dropped from collision to stay within N triangles per chunk." | A chunk went over Tri Budget / Chunk. |
| Regions section | "The selection is empty: select part of the layer before creating a region." | Rock Region Select armed with nothing selected. |
| Toolbar tooltip (entry disabled) | "Create a terrain first." | No terrain. |
Keyboard and mouse
| Input | Stamp | Paint / Cliff |
|---|---|---|
| Move the pointer | Preview of the next formation (or red disk) and the ring. | Ring; red cells on refused ground. |
| Left click | Adds one stamp (on accepted ground). | One dab. |
| Left drag | Same as a click (nothing more is added). | Paints along the path. |
| Ctrl + click (no movement) | Remove dab: clears both painted areas under the ring, deletes stamps under it. | Same. |
| Ctrl + drag / Alt + drag | Camera orbit / pan (no stroke). | Camera orbit / pan (no stroke). |
| Mouse wheel, middle or right drag | Camera zoom / pan. | Camera zoom / pan. |
| Esc during a stroke | Abandons the stroke: the preview is put back, nothing is recorded. | Same. |
| Esc Esc (within 400 ms) | Select tool. | Select tool. |
| Ctrl+Z / Ctrl+Y | Undo / redo the last stroke or panel change. | Same. |
The Procedural Rock Brush has no key of its own to arm it, and no Shift variant. A left drag turns the camera when the brush is not armed (no layer, or the chosen layer is hidden). The Esc behaviour during a stroke follows from the source and has not been checked in a real run.
Undo, saving and export
- One stroke = one undo step: a stamp click, a Paint or Cliff drag, a Ctrl + click. While you drag, nothing is recorded; the chunks are only previewed.
- Every panel change of the layer is one undo step: a field, a checkbox, a preset, the seed, a layer or region action. A change that changes nothing records nothing. Undo restores the exact previous layer, and the same rocks come back.
- Editor state (not saved, no undo): the chosen layer, the mode, Radius, Falloff, Strength, Stamp Scale, Show Collision, the selection and the chosen region. Radius and Falloff are shared with the other terrain brushes.
- Saved with the map (Ctrl+S): every rock layer with its settings, seed, painted areas, stamps, regions, name, Visible and In Level. The rocks themselves are not saved: they are rebuilt when the map is opened, identical.
- Exported: every layer with In Level on, whether Visible or not, baked into a visual mesh and a collision mesh per chunk (
maps/<mapId>/rocks.jsonlists them). A layer with In Level off is not exported. The export builds the rocks with the same code as the editor, so the game gets exactly what you see. - Terrain changes: sculpting, eroding or carving rivers under rocks rebuilds the affected chunks after the stroke. Rocks follow the new ground, or disappear where the slope is no longer allowed (they come back if you undo).
Typical tasks
The values below are starting points that follow from what each setting does in the source. How the result looks on your terrain has not been checked in a real run.
Scatter boulders over a field
- Arm the brush and choose (or add) a layer. Set Formation Preset to Single Rock (or Low Rock Pile for piles).
- Click Paint. Set Radius to the width of the area you paint in one pass.
- Drag over the field. For a lighter scattering, lower Strength before painting, or Density (%) afterwards (Density changes the whole layer and keeps the remaining rocks in place).
- For bigger gaps between rocks, raise Spacing (m) (Medium).
Place one landmark formation
- Choose Wide Rock Formation or Tall Rock Column.
- Click Stamp and set Stamp Scale (for example 2 for a formation twice the preset's size).
- Move the pointer: if you do not like the shape in the preview, click elsewhere, undo, and try again (each click gets a new seed), or adjust it afterwards with New Shape in Selected Stamps.
- Click to place it.
Build cliff walls along a steep face
- Add a layer for the cliffs (Add Rock Layer), name it (for example Canyon Walls), and choose Formation Preset: Cliff Formation.
- Click Cliff. Move the pointer over the face: flat ground and gentle slopes show red (below 30°).
- Drag along the steep face. Upright walls appear, facing out of the slope.
- For taller walls, raise Height (m) in Formation; for walls that join more tightly, lower Cliff Spacing (m) (Advanced).
Keep rocks off steep ground, or within a height band
- Open Placement (Medium).
- Lower Max Slope (°) to keep rocks off steep ground, or raise Min Slope (°) to keep them only on slopes.
- For a snow line or a beach, tick Limit Altitude and set Min Altitude / Max Altitude (world heights in metres).
- Painted areas stay; the rocks outside the rules simply disappear, and come back if you widen the rules.
Clear rocks from a path
- Set Falloff to Hard (Medium) and Radius to half the path width.
- Hold Ctrl and click along the path, one spot after another, without dragging.
- Each click is one undo step. To start the whole layer again, use Clear Rocks.
Try another arrangement
- Note the current Seed (Medium).
- Click Randomize Seed. All formations move to a new, equally stable arrangement.
- To go back, type the noted seed into Seed and press Enter (or use Ctrl+Z).
Texture the rocks with a terrain layer
- Open Material and choose a terrain layer in Terrain Layer (the project needs terrain layers; see Material Paint).
- Adjust Base Colour (it tints the texture) and Texture Scale (m) (Medium).
- Keep Triplanar (box) projection on for rocks with steep faces.
Check and tune collision
- Set Inspector Complexity to Advanced (or use Show more) and tick Show Collision.
- The rocks become see-through and the orange collision shapes appear.
- For players to fit between stones, keep Preserve Gameplay Gaps on; to stop them squeezing into gaps, turn it off.
- If the warning "Collision budget exceeded…" appears, raise Tri Budget / Chunk, lower Collision Quality, or raise Min Size (m).
Make one area different
- Click Rock Region Select (or one of the shape buttons in Regions) and select the area.
- Click Create Region From Selection (Medium).
- In the region editor, type overrides, for example Height × 2 and Density × 0.3, and a Falloff (m) of 6 for a soft border.
- Click Paint to go back to the brush: painting continues on the whole layer, and inside the region the overrides apply.
Keep the editor fast
- Watch the Estimate (Medium) before painting large areas.
- If a warning about density or polygons appears: raise Spacing (m), lower Density (%), lower Bevel Segments (Stone Shape) or Polygon Budget (Advanced).
- Turn chunks you are not working on OFF in the Chunks tab: their rocks are not built in the editor.
Common mistakes
- "Clicking does nothing, and the camera turns." The map has no rock layer (click Add Rock Layer), or the chosen layer is not Visible.
- "I painted, but nothing appears." The layer's In Level is off; or the ground breaks the slope or altitude rules (the brush shows red cells, and the panel may warn "No valid terrain candidates…"); or the chunk is OFF in the Chunks tab.
- "Ctrl + drag turns the camera instead of removing." A drag that starts with Ctrl held belongs to the camera. Use Ctrl + click spot by spot, or Clear Rocks.
- "Removing left half-cleared rocks at the edge." With a soft Falloff, a remove dab only partly clears the edge of the ring. Use Hard.
- "Cliff mode makes walls on flat ground / nothing on my cliff." Cliff mode follows Min Slope / Max Slope. Choose the Cliff Formation preset (30° to 90°) or set the slope range in Placement.
- "Density does nothing in Cliff mode or on stamps." Density and Formation Freq. apply only to the paint area. Cliff walls follow the painted coverage (Strength) and Cliff Spacing; stamps are always one full formation.
- "Painting again with a lower Strength did not thin the rocks." Painting never lowers coverage. Remove with Ctrl + click and paint again, or lower Density (%).
- "Changing Stamp Scale did not resize my stamps." It only applies to the next stamps. Select a stamp with Rock Region Select and change its Scale.
- "I changed the preset and my altitude limit was kept / my material was kept." By design: a preset never changes Limit Altitude, the altitudes, the material, collision, stack stability or the seed.
- "My duplicated layer looks the same, and rocks are doubled." A copy generates the same rocks at the same places. Change its seed or clear it.
- "Changing Radius here changed my sculpt brush." Radius and Falloff are shared by all terrain brushes.
- "Terrain Layer Textures does not stick." Choose a terrain layer in Terrain Layer; without one the material stays Stylized Stone.
- "A region override of 60 for Clustering did nothing sensible." Region Clustering, Overlap, Verticality and Bevel Width are fractions (0.6, 0.08…), not percentages.
- "Yaw has no effect on my column." Tall Rock Column and Cliff Formation stamps on a slope always face out of the slope.
- "I cannot find Seed, Spacing or the Stone Shape section." They are Medium settings. Use Show more, or raise Inspector Complexity in File › Preferences… › General.
- "The panel disappeared when I selected something." Some selections (buildings, splines, gameplay objects, prefabs, editor layers or groups) have their own Inspector. The brush is still armed; clear the selection to get the panel back.
Related tools
- Map workspace: the toolbar and its tool groups.
- Rock Region Select (toolbar Terrain, and the Tool section of this panel): selects parts of a rock layer, creates regions and edits them with handles in the 3D view.
- Cliff Mesh Paint: places imported rock models on steep ground, instead of generated stones.
- Mountain Stamp and Erosion: shape the ground first; the rocks follow the terrain.
- Material Paint: the terrain layers whose textures the rocks can use.
- Chunks tab: which chunks are loaded, and so where rocks are built in the editor.
Verification notes
This chapter was written from the editor source only: the procedural-rock-inspector component and template, procedural-rock-layer.ts (data model, ranges, presets, defaults, clamping, preset copy), procedural-rock-generation.ts (candidate grids, density, formation frequency, cliff rules, placement, rejection, stamp planning, regions, estimate), ProceduralRockBrushService (arming, Stamp / Paint / Cliff / Ctrl gestures, preview limits, overlays), ProceduralRockToolStore (editor state and defaults), ProceduralRockCommandsService (undo entries), ProceduralRockPresentationService (statistics, Regenerate, visibility, chunk presence, Show Collision), TerrainBrushService and TerrainBrushStore (shared ring, radius and falloff), vegetation-paint.ts (how dabs write and erase coverage), map-workspace.ts (Esc), camera-modifier-override.ts and the editor's docs/editor-input.md (Ctrl + drag), the toolbar catalog, editor-inspector (panel routing), the editor's docs/inspector-complexity.md and docs/PROCEDURAL_ROCK_BRUSH_IMPLEMENTATION.md, and the en-US texts. The following were not checked in a real run:
- what the panel, the ring, the Stamp preview, the red overlays and the rocks of each preset look like (no screenshot of the panel was taken);
- the exact counts of the Show more footers;
- whether a single Esc during a drag abandons the stroke as the source indicates;
- whether the collapsible sections remember being opened when you leave and come back to the tool;
- how long a whole layer takes to rebuild on a large map;
- the text of the undo entries shown in the history (the source uses technical labels such as
rock.stroke).