Voxel Sculpt

·

Shapes in Voxel mode are a recipe: sizes, corners and cuts you can retype at any time. Freehand detail is sculpted on a mesh, in the Sculpt tab. This page covers how the two meet — a node sent to Sculpt, and a sculpted mesh sent back — Flatten, which bakes shapes into one solid object when a tool needs one, and the brushes that sculpt a flattened object's voxels without leaving Voxel mode.

The Sculpt tab with the Send to Voxel dialog open for the mesh named Group: Group becomes a voxel shape in the Voxel tab, the warning that it will lose any painting and that detail finer than the voxel size is smoothed away, Voxel size 0.1500 cm, About 75 x 66 x 75 cells, Remove it from Sculpt ticked, and Send and Cancel; behind it the three sent meshes and the Sculpt Tree
Send to Voxel turns a mesh from the Sculpt Tree back into a voxel shape.

Sculpting a voxel model

Switching tabs never turns shapes into a mesh. To sculpt them, right-click a node in the Voxel Tree and choose Send to Sculpt: the node becomes a mesh of its own in the Sculpt Tree, and the shapes stay in the Voxel tab. How the mesh is made, and how many polygons it may have, is on From Voxels to a Mesh.

The mesh keeps the node's colour as vertex paint rather than a material, so Paint can work on it straight away. Sculpt's Solid and PBR views show that colour, just as the Voxel tab did, also beside an imported model: the model's own materials keep whatever the view's image setting shows for them.

Back from Sculpt: Send to Voxel

A mesh can go the other way. In the Sculpt tab, right-click it in the Sculpt Tree and choose Send to Voxel.... A dialog says "Name" becomes a voxel shape in the Voxel tab. and asks two things:

ControlWhat it does
Voxel sizeHow fine the voxel shape is, in the Voxel tab's own unit. It starts at the Voxel tab's size, kept between about 48 and 400 cells across the mesh. Under it the dialog says how many cells that makes: About X x Y x Z cells.
Remove it from SculptOn (the default): the mesh leaves the Sculpt Tree, and Ctrl+Z in Sculpt brings it back. Off: the mesh stays in Sculpt as well, and the voxel shape is a copy.

Send converts the mesh in the background, then switches to the Voxel tab, where the mesh is a new shape named after it, selected and ready to add to, cut, blend or deform like any other. The status bar reads "Name" is a voxel shape now: X x Y x Z cells at N mm. If the sample budget made it coarser than you asked, the line says so. When you are done, send it to Sculpt again.

Warning

The voxel shape keeps the form, not the paint: colours, painted materials and textures stay with the mesh. Detail finer than the voxel size is smoothed away. Meshes hung under it in the Sculpt Tree stay in Sculpt; to send what the view shows, carved, use Make Boolean Mesh first.

The mesh must be a closed solid. If it has a hole wider than a few voxels, the conversion fails with Could not send the mesh to the Voxel tab: it is not a closed solid (a hole wider than a few voxels lets the inside out). Try a larger voxel size.

Flatten

Flatten bakes a node, and everything under it, into one object. Right-click the node in the Voxel Tree and choose Flatten. If the node you right-click is part of a selection of several, the item reads Flatten Selected and bakes them all into one object, named after the highest of them in the tree.

The Voxel Tree with the row of a group right-clicked and its menu open (Edit Node, Rename, Duplicate Node, Lock, Flatten), Flatten hovered and its tooltip saying it bakes the node and everything under it into one object, then the cost: 344 x 968 x 344 samples, 106.8 MB; beside it in the Perspective view the group's sphere, with the hole its cylinder cuts, lit as selected
Flatten in the Voxel Tree's right-click menu, with its cost in the tooltip.

The flattened object is one shape like any other: it keeps its parts' colours, and you can still resize it, deform it, blend it and cut with it. What it loses is the parts themselves — their sizes and corner settings stop being numbers you can retype — and sharp edges soften to the bake's resolution. Undo brings the parts back.

The menu item's tooltip says what the bake will cost before you pay it, in samples and megabytes. Select a flattened node and the Numeric window shows the same, in the form Flattened: one object, X x Y x Z samples (N MB).

The bake runs in the background, and the window keeps drawing while it does. A small shape takes a fraction of a second; baking a flattened object again (Remesh) takes a few. The status line shows Flattening N node(s)... and then the result, for example Flattened into "box 1": 600 x 352 x 352 samples, 94.0 MB, in 1.0 s. If you change the scene before the bake finishes, nothing is flattened and the status line asks you to flatten again. One bake runs at a time, Flatten or Freeze. A single Undo takes the whole flatten back.

When you need to flatten

  • Offset and Shell work on single shapes. With a group selected, the Numeric window says to flatten it first and offers a Flatten button.
  • A Drag Net cannot be dragged again while it is still a Drag Net. The Numeric window says so and offers Flatten; once flattened, the next net deforms the baked shape. See Deform Tools.
  • Live clones follow their original until it is flattened.

Curves have Freeze Curve in the same menu instead, and a node that is already one flattened object offers Remesh.

Remesh and Flatten detail

Remesh bakes a flattened object again at the current resolution. It keeps its shape, and it can make an object baked at a coarser setting as fine as a new one — but detail the earlier bake already lost does not come back.

The resolution comes from Flatten detail (million samples) in the Settings window, from 1 to 48 (8 by default). A flatten samples at a quarter of the voxel size unless this caps it, and a baked shape rounds its corners by about one sample, so a higher number keeps sharper corners on big shapes. It costs memory — the line under the slider shows the most each flattened shape may take — and makes the view slower to redraw while the shape changes.

Brushes: Build, Carve, Smooth

The Brushes section at the foot of the Voxel palette sculpts a flattened object's voxels directly. No mesh is made along the way, so two lumps simply merge, a brush can dig straight through a wall, and nothing can cross itself. Click a brush to pick it up — the Numeric window opens with its settings — drag on the model, and click the brush again to put it away.

The Voxel tab in the Paper Light theme: the palette's Brushes section at the foot of the sidebar with Build on, beside Carve and Smooth; in the view a flattened sphere with two raised strokes built across its front; the Numeric - Voxel (Build) window with Radius 4 cm, Strength 0.50, Mask protects ticked and the line Brushes edit a flattened node's voxels.
Two Build strokes on a flattened sphere, with the brush's settings in the Numeric window.
BrushWhat it does
BuildAdds material where you drag, as if pressing clay onto the surface. Held in one place, it grows a mound up to the size of the brush.
CarveTakes material away where you drag — through a thin wall, if you keep going.
SmoothAverages the surface under the brush, softening what is there.

A stroke works on the one flattened object it started on, even if the drag wanders off it, and each stroke is one step for Ctrl+Z. Building outward makes the object bigger where it has to: its size in the Numeric window grows to match.

Brush settings

While a brush is picked up, the Numeric window shows its settings:

SettingWhat it does
RadiusHow wide the brush reaches, in your unit: the ball of material one dab adds or takes away.
StrengthHow far one dab moves the surface, as a fraction of a voxel (0.05 to 1). A stroke is many dabs, so this is a rate rather than a distance.
Mask protectsWhere the Voxel Mask covers the model, the brush leaves it alone: fully masked is untouchable, half masked moves at half the rate.

Flatten first

Brushes edit stored voxels, so they only work on a flattened object. Drag on a shape that is still a recipe and the status bar says Brushes edit a flattened node's voxels -- Numeric offers to flatten this one. The Numeric window then reads Brushes edit a flattened node's voxels, and this one is still a shape. with a Flatten "name" button for that very node.

How far a brush reaches

One dab reaches at most 24 of the object's voxels either side of its centre, and a flattened object's voxels are fine — a quarter of the voxel size unless Flatten detail caps them. When the Radius asks for more, the status bar says what the brush really covers, for example Brush reaches 1.282 cm here: this volume's cells are fine enough that a wider brush would cost millions of samples a dab. For broad strokes, flatten at a coarser voxel size or a lower Flatten detail.

When you let go, the voxels the stroke can have reached are measured again against the new surface, on the graphics card: about 25 ms on a sphere flattened at 456 x 456 x 456. While you drag, each dab sends the graphics card only the part of the object it changed, so the views keep up with the brush: under 20 ms a dab on that sphere.

Each stroke is one undo step, and Undo keeps only what the stroke changed: about 4 to 7 MB a stroke on that sphere, where the whole object is about 96 MB. So a long session of strokes stays undoable without filling memory, and undoing or redoing a stroke takes about 15 ms. The Voxel tab's undo history keeps at most 2 GB and the Undo limit's number of steps (64 unless you change it); past either, the oldest steps are let go.