Smart Fill

Smart Fill #

Smart Fill is an operator in the Draw mode. It fills an entire line art layer based on some color hints marked by the user. Compared with the Blender's default Fill tool, it has the following advantages:

  • It handles the gaps in the line art automatically.
  • It is less likely to leave seams near the contour, or be intersected.

Smart Fill

Although the algorithms are different, the concept of this operation is similar to the Colorize Mask tool in Krita.

Input/Output Layers #

The operation takes two input layers, one containing the line art (Line Layer), and the other containing the color hint strokes (Hint Layer). They must be distinct layers.

The operation then generates new strokes in an output layer (Fill Layer). It is possible, but not recommended to use the same layer as Fill and Hint, since it will be difficult to distinguish the output strokes from the input ones. To overcome it, there is an option specifying to use only Boundary Strokes as hints.

Hint Strokes #

Points in the hint strokes will force the nearby areas be filled with the same color. The color of a hint point is determined in the following way:

  • If the stroke/point has a vertex color, use it as hint. Otherwise, use its material color.
  • If the stroke has its fill visible, use the fill color as hint. Otherwise, use the line color.

Only the position and color of the hint strokes have an impact. Other point/stroke attributes, including the line thickness and strength will not affect the result.

You can use fill materials for the hint strokes. But only its contour points will be taken into account. The inner part has no effect.

Output Materials #

There are different ways to assign materials to the newly generated fill strokes:

  • Use the same materials (and vertex colors if exist) as hint strokes.
  • Use an existing material. Generate vertex fill colors for each stroke.
  • For each color used as hints, generate a new material.

If you tend to use existing materials, please make sure they are not line-only ones.


(The example image used in this page is Portrait of Olga by Pablo Picasso in 1920.)