Skip to content
Ciwb

Build

Generators

A generator builds an object from a few settings: a fence that follows a path you click, a staircase, a building front with rows of windows, or a test course for Play It Now. The object keeps its settings, so you can come back later, change the number of steps or the window spacing, and it rebuilds. When you want to edit it by hand, bake it into plain voxels. You can also package a piece of your own, with an effects recipe on top, as a generator you reuse and share.

Add one

There are three ways in:

  • Right-click the viewport and choose Add › Generator. The object is placed where you right-clicked.
  • Object › Generator in the menu bar, then Fence, Stairs, Facade or Obstacle course.
  • Press Ctrl+K and type "fence", "stairs", "facade" or "obstacle". The commands are Add Fence, Add Stairs, Add Facade and Add Obstacle course. Other words find them too: "railing", "staircase", "building front", "playtest", "procedural".

From the menu bar or Ctrl+K, the new object lands on the ground 6 voxels past the far edge of everything already in the scene, so it never ends up inside your model. In an empty scene it goes at the origin. Either way it is selected, framed, and its Generator panel opens.

GeneratorWhat it makes
FencePosts and rails along a path you click, with optional pickets
StairsA straight flight with optional landings, handrails on both sides and nosing
FacadeA building front with floors and bays of framed windows, a door, sills, lintels and floor bands
Obstacle courseA test lane for Play It Now: three doorways that get narrower, a flight of steps up and down, and jumps over pits that get wider

Colours that match your palette

Each colour setting of a built-in generator has a colour it looks for, and a new object starts on the closest slot in your palette. A fence looks for a dark brown for its posts, a lighter brown for its rails and a grey-brown for weathered boards; a facade looks for a sandstone wall, a blue-grey glass and an off-white frame. So in a project with a warm palette the fence picks up your browns, and in a project with only greys it comes out grey. Change any of them afterwards in the panel.

The Generator panel

The Generator panel for a staircase: size, landing, style and colour settings, the variation seed and Bake

Select a generated object and its Generator panel opens on the right, above Operations. The header shows which generator made it and its revision (r1, r2 and so on). The settings are grouped (Size, Landing, Style, Colours and so on), and each kind of setting works the same way:

  • Numbers are drag fields: drag sideways, or click to type. The object rebuilds when you let go, not while you drag. Values outside the range are clamped to it.
  • Switches turn parts on or off, such as handrails, sills or the door.
  • Colours are palette swatches. Click one to choose another slot.
  • The dice button at the bottom shows the variation seed, a number from 1 to 99,999. Click it for a new variation with the same dimensions: different weathered boards, scuffed treads or closed shutters. New Variation in Object › Generator and Ctrl+K does the same.
  • The blocks button beside the dice packages the object as your own generator (see Package your own generator).
  • Bake on the right turns it into plain voxels (see Bake).

Every change, including a new seed, is one undo step, so Ctrl+Z puts back the previous settings and voxels together. A rebuild removes any voxel the generator no longer makes, so shrinking a staircase leaves nothing behind.

Wear and Variation set how much the seed changes things. At 0, every seed gives an identical object; at 100 the seed changes a lot.

Fence

SettingRange (default)What it does
Path2 or more points (a 24-voxel run, then a 16-voxel turn)Where the fence goes. See Drawing a fence path.
Height3–40 (10)Height of the posts in voxels. Each post may stand one voxel taller, at random.
Post spacing2–32 (6)Distance between posts along the path. A post goes at every corner too.
Rails0–6 (2)Horizontal rails, spread evenly between 30% and 90% of the height. One rail sits at 60%. At 0 you get posts only.
Post width1–4 (2)Posts are square, this many voxels across.
PicketsoffUpright boards on every other voxel along the path, alternating between full height and one voxel shorter.
Wear0–100 (20)The share of boards and posts in the Weathered colour, missing rail boards, and posts that lean near the top.
Posts, Rails, Weatheredpalette slotsThe three colours. Pickets use the rail colour.

Stairs

SettingRange (default)What it does
Steps1–64 (10)Number of steps.
Width1–64 (12)Width across the flight.
Rise1–12 (3)Height of each step.
Run1–16 (4)Depth of each tread.
Landing every0–32 (5)A flat landing after every n steps. 0 means no landings. There is never a landing after the last step.
Landing depth1–32 (8)How deep each landing is.
SolidonOn: every step is filled down to the ground. Off: an open flight, where each step is a slab only Rise + 2 voxels thick.
HandrailonRails on both sides (one side when the flight is 2 voxels wide or less). Posts stand on the treads every Run × 2 voxels (at least 3), and the rail is Rise × 3 voxels high (at least 6).
NosingonEach tread overhangs the step below by one voxel.
Wear0–100 (15)Chips on the front edges and scuffs down the middle of the treads, in the Body colour.
Treads, Body, Railpalette slotsTop surface of each step, everything under it, and the handrail.

A flight of 10 steps with rise 3 and run 4 is 30 voxels tall. With the default landing every 5 steps it is 4 × 10 + 8 = 48 voxels long.

Facade

SettingRange (default)What it does
Floors1–24 (3)Storeys.
Bays1–24 (4)Windows across each floor.
Floor height6–40 (14)Height of each storey.
Bay width4–40 (10)Width of each bay. The wall is Bays × Bay width + 1 voxels wide.
Window width1–36 (4)Capped at Bay width − 2, so a window always has wall either side.
Window height1–36 (6)Capped at Floor height − 2.
Sill height1–20 (4)How far above the floor the window starts. Capped so the window fits in the storey.
SillsonA ledge under each window, two voxels wider than it on each side.
LintelsonA ledge above each window and the door.
DooronA door instead of a window in the middle bay of the ground floor (left of centre when the number of bays is even), with a step in front.
Floor bandsonA projecting band between storeys.
Wall depth1–6 (2)Thickness of the wall. Glass sits at the back of it, so a deeper wall sets the windows further in.
Variation0–100 (30)How much of the Wall, mixed in colour appears in the brick courses, and how many windows have their shutters closed.
Wall, Wall, mixed in, Glass, Frames, Sills and bandspalette slotsClosed shutters and the door use the frame colour. The cornice on top and the plinth at the bottom use the sill colour.

Windows at least 3 voxels wide and 3 tall get a vertical glazing bar; at 5 tall or more they also get a horizontal one, making a cross.

A facade with five floors and six bays, with more variation

Obstacle course

An obstacle course with the default settings: three doorways, steps up and down, and three jumps over orange-edged pits, with green checkpoint pads

SettingRange (default)What it does
Lane width12–64 (28)Width of the whole course.
Door width4–40 (10)Width of the middle doorway.
Door height8–60 (34)Height of all three doorways.
Narrowing0–8 (2)How much narrower each doorway is than the one before. With the defaults the three are 12, 10 and 8 wide. A row of marks over each doorway shows its width.
Step height1–12 (4)Height of each step on the way up and down.
Steps1–16 (5)Steps up to the top platform. The same number lead back down.
Step depth2–16 (5)Depth of each step.
Jump gap2–60 (10)Width of the first pit.
Gap growth0–16 (4)How much wider each pit is than the one before. With the defaults: 10, 14 and 18.
Jumps1–8 (3)Number of pits.
Floor, Walls, Markings, Checkpointspalette slotsCheckpoint pads sit flush with the floor at the start, after the doors, on the top platform and after the jumps, and a low wall in the checkpoint colour marks the finish.

The dice moves only the dressing: the checkpoint pads shift sideways, a few crates sit against the side walls, and the edge markings change their rhythm. Doorways, steps and gaps keep their exact sizes, whatever the seed. Set the step height to your character's step limit and the gaps to its jump distance, then walk it with F5 to see where it fails. Play It Now describes the character settings.

Drawing a fence path

The fence's path shows as a small top-down map at the top of its panel, with the first point in orange.

  1. Click the pencil under the map.
  2. Click points in the viewport, on the ground or on top of other objects. Each point shows as an orange dot, with a line joining them, and the count shows in the panel.
  3. Backspace (or the undo-arrow button) removes the last point.
  4. Enter (or the tick) uses the path. It needs at least 2 points. Esc (or the cross) cancels and keeps the old path.

Orbit and pan work as usual while you draw. Selecting a different object cancels the drawing. The new path is one undo step, Draw fence path. Points snap to whole voxels, and the fence puts a post at every corner and spaces the rest along each run. A post that would land less than 0.4 × Post spacing from the end of a run is left out, so you don't get two posts side by side.

Drawing a new path for a fence: four points clicked in the viewport, also shown in the panel

The path is stored relative to the object, so moving the fence with Transform moves the whole path with it.

Revisions

Every generated object records the generator's revision. If a later version of Ciwb changes how a generator builds, objects made with the old revision keep their voxels until you decide. An orange r1 → r2 button appears at the top of the panel, and clicking it rebuilds with the new version (one undo step, Update generator). The Fence and Obstacle course are currently at revision 2; Stairs and Facade at revision 1.

Bake

Bake (the hammer at the bottom of the panel, or Object › Generator › Bake Generator, or Ctrl+K "bake") keeps the voxels and removes the settings. The object becomes an ordinary voxel object, and a message confirms it. Bake is one undo step, so Ctrl+Z gives the settings back.

If you start painting, erasing or adding to a generated object with a brush, Ciwb asks whether to bake it first. Choose Bake, then make your stroke again, or Cancel to leave it as it is. A rebuild would replace hand edits, so Ciwb asks before you make any.

Package your own generator

You can turn any object into a generator of your own. The object becomes the kit part, laid out in a grid, and the effects stack in Operations becomes its recipe, run over the whole layout.

  1. Make or select the piece to repeat, such as a wall segment, a crate or a fence panel.
  2. Optional: set up an effects stack in Operations, such as Erode and Noise shading. Disabled steps go in switched off.
  3. Press Ctrl+K and choose Package as Generator. If the object is already generated, the blocks button in its Generator panel does the same.

A packaged generator: the kit part laid out 6 by 3, with Erode and Noise shading as its recipe

A message confirms it with an Add one button. The generator takes the object's name (a generated object gives the generator's name), with a number added if you already have one by that name. It gets a 128-pixel thumbnail made from a 3 by 2 layout.

Groups, lights, cameras, attachment points and empty objects can't be packaged, and a part can have at most 60,000 voxels.

Using a packaged generator

Your generators appear at the bottom of Add › Generator in the right-click menu, and in Ctrl+K as Add followed by the name. Each copy has these settings:

SettingRange (default)What it does
Count1–48 (4)Parts along each row.
Rows1–24 (1)Rows, one behind the other.
Gap−8–32 (0)Space between parts in a row. Negative values overlap them.
Row gap−8–32 (2)Space between rows.
Variation0–100 (25)Mirrors some parts, raises some by one voxel, and, when there are more than 2 parts, leaves the odd one out. At 100, about half are mirrored, 30% raised and 12% missing.
one switch per recipe stepas packagedTurns that step on or off.
Step strength1–5 (as packaged, or 3)The strength of that recipe step.

The dice gives a new layout variation and a new seed for every recipe step. The recipe's colours are matched to the palette of the project you use the generator in.

Generator files

Generators are plain .ciwb-gen files, one generator each. In the desktop app they live in Documents/Ciwb/Generators, so you can back them up, copy them to another computer or send one to someone. In the browser version they are kept in the browser's storage instead.

Your packaged generators also appear as cards at the top of the Library panel, under Generators. Click a card to add one to the scene. Hover a card for two buttons: the share button saves it as a .ciwb-gen file to send to someone, and the bin removes it from your Library (objects it already made stay in your scenes). Package as Generator is in Object › Generator too.

Import Generator… (in Object › Generator, the import button in the Library header, or Ctrl+K) adds a .ciwb-gen file someone sent you. An imported generator replaces one of yours with the same name.

A generated object carries its generator inside the project file, so the project opens and rebuilds on a computer that doesn't have the generator file.

Limits

  • There is no button to rename a packaged generator. In the desktop app, rename its file in Documents/Ciwb/Generators; Ciwb reads the folder when it starts.
  • A packaged generator lays parts out in a straight grid only. For a part along a curve, use a Fence, or place copies with the Scatter brush.

For AI agents

These commands are also tools for a connected agent: Add Fence, Add Stairs, Add Facade, Add Obstacle course, New Variation, Bake Generator and Package as Generator. See AI agents.