How modular pieces work
Make your own wall and floor pieces
From an empty project, make a floor tile and a wall on one 16-voxel grid, with fixed sizes, base pivots and edges that meet across the seam.
- 12 min
- 10 steps
- Intermediate
Files for this lecture
Before this lecture
- Voxel Fundamentals (the brushes and the Box brush are a quick recap here)
- Rendering and Showcasing
Modular pieces snap together on a grid. Every piece fills the same square, so any piece can sit beside any other. That only works if you set each piece up the same way: one tile size, a fixed box, the pivot at the base, and edges that meet across the seam. In this lecture you make a floor tile and a wall by hand, starting from an empty project. Sixteen voxels is a good tile size to start with: room for detail, and quick to build.
Step by step

Start a new project
Choose File > New Project (Ctrl+N). You get an empty scene with a small plinth: one object, called Model.

Name the piece
Click the Name field on the Object panel, type
Floor 16and press Enter. Name each piece as you make it; the number reminds you of the tile size, and the name goes with the piece when you export.
Give it a fixed size
Open More on the Object panel and turn on Fixed size. The piece now keeps one size and shows its box, and brushes stop at its edges. Set Size to 16, 2 and 16: sixteen voxels across, two deep. The box sits on the ground, centred on the grid.

Fill it with the Box brush
Press 3 for the Box brush and set Depth to 2 layers. Drag on the ground from inside one corner of the box to well past the far corner. The box stops at the tile edge, so the floor comes out exactly 16 × 2 × 16, with no counting.

Put the pivot at the base
Click Pivot to base (under More). The pivot is the point a game engine places and turns the piece by. With every piece's pivot at the centre of its base, pieces line up on the same grid in Ciwb and in the engine. Here it reads 0, 0, 0, because the box is centred; click it anyway after you build, since it works out the base from the voxels.

Paint a path across
Press P for Paint and 4 for the Line brush. Pick a dark grey and drag a path from the left edge of the tile to the right edge. On purpose, let it leave the right edge further down than it entered on the left.

Check the seam with Scroll with Wrap
Press Ctrl+K, type
Scroll with Wrap, press Enter, and scroll 8 voxels along X. Whatever leaves one side comes back on the other, so the tile's left and right edges now meet in the middle, where you can see them. The path jumps: its ends don't meet, so copies side by side would show a break.
Join the path at the seam
Fix it where you can see it: drag a short line down the seam that joins the two ends. Then scroll 8 along X again; the tile is back where it started, and its left and right edges match.

Add the wall piece
Click + in Layers (Ctrl+Shift+N) for a new object and name it
Wall 16. Under More, turn on Fixed size and set the size to 16, 12 and 2: as wide as a tile, twelve high, two deep. Set Position X to 24, so it stands on the ground beside the floor; you put pieces together in a later lecture.
Build the wall with the Box brush
Press 3 for Box, set Depth to 12 and drag on the ground from inside one end of the wall's box to well past the other. The fixed size keeps the wall inside its box: 16 × 12 × 2. Save the file.
Common mistake
Painting a pattern that leaves one edge somewhere other than where it comes in on the opposite edge. A tile repeats, so the break shows on every copy. Check with Scroll with Wrap by half the tile size: the edges meet in the middle, where you can fix them.
Recap
Give every piece a name and a Fixed size on one tile grid, fill it with the Box brush (it stops at the box), put the pivot at the base with Pivot to base, and check edges with Scroll with Wrap. Your floor and wall are ready to build rooms with.
| Ctrl+N | New project |
| 3 | Box brush |
| P | Paint tool |
| 4 | Line brush |
| Ctrl+K | Find an action (Scroll with Wrap) |
| Ctrl+Shift+N | New object |
| Ctrl+S | Save |
Transcript
In this lecture you make two modular pieces of your own in Ciwb, starting from an empty project: a floor tile and a wall, both on one sixteen-voxel grid.
Modular pieces snap together on a grid. Every piece fills the same square, so any piece fits beside any other. Sixteen voxels is a good square to start with: room for detail, and quick to build.
Open the File menu and choose New Project. You get an empty scene with a small plinth: one object, called Model.
Name it now, while it is the only piece. Click the Name field, type Floor 16, and press Enter. The number reminds you of the tile size.
Open More, and turn on Fixed size. Now the piece keeps one size and shows its box, and brushes stop at its edges.
Set the size to sixteen, two and sixteen: click each field, type the number, and press Enter. That is sixteen voxels across and two deep. The box in the view shrinks to one floor tile.
Press three for the Box brush, and set Depth to two layers. Then drag on the ground from inside one corner to well past the far corner. The box stops at the tile edge, so the floor comes out exactly sixteen by sixteen.
Click Pivot to base. The pivot is the point a game engine places and turns the piece by. At the centre of the base, every piece lines up on the same grid.
Press P for Paint, and four for the Line brush. Pick a dark grey, and drag a path from the left edge of the tile to the right edge.
Now check the seam. Press Control K, find Scroll with Wrap, and scroll eight voxels along X. What left one side comes back on the other, so the seam is now in the middle. The path jumps: its ends do not meet.
This is the most common mistake with tiles. Fix it where you can see it: drag a short line down the seam that joins the two ends.
Scroll eight along X again, and the tile is back where it started. Its left and right edges now match, so copies side by side join without a break.
Now the wall. Click the plus in Layers for a new object, and name it Wall 16.
Turn on Fixed size, and make it sixteen wide, twelve high and two deep. Then set its X position to twenty-four, so it stands on the ground beside the floor. You place the pieces together in a later lecture.
Press three for the Box brush, and set Depth to twelve. Drag on the ground from inside one end of the box to well past the other. The fixed size keeps the wall inside its box: sixteen by twelve by two.
Your two pieces are ready. To recap: name each piece, give it a fixed size on the tile grid, fill it with the Box brush, put the pivot at the base, and check the seams with Scroll with Wrap. Save the file. In the next lecture you paint edges that carry on into the next copy.
Narration: Kokoro-82M (hexgrad, Apache-2.0), voice bm_george.