Painting · real-time shaders

Brush strokes along a direction field

A fragment shader cannot lay a stroke down; each pixel has to find the strokes that cover it. So the deck starts with that search, then turns, sizes, layers and lights the strokes.

Cellular noise search · Z-buffer

Each pixel shows the topmost stroke that reaches it

Drag the ring over the teal rim, or switch the order: the same strokes stack again.

on top

Structure tensor · Sobel

Strokes lie along the smoothed edge direction

Widen the smoothing: the colony edges start to steer the strokes on the agar.

each needle: one stroke's direction

Orientation fields

Colonies and agar each follow their own field

Each stroke reads the field under its centre, so the rule changes at a colony's edge.

colonies
agar

Capsule distance · Haeberli 1990

The same strokes, from round dabs to long sweeps

Long strokes draw the field itself; short ones keep the picture's colour closest.

one stroke on the 5 × 5 cells searched

Coarse to fine · Hertzmann 1998

Smaller strokes repaint only where paint differs from the picture

In difference, the outlined cells are where the last layer added strokes.

Hairy brushes · bump mapping

Bristle ridges and stroke edges catch the light

Each later layer and stroke sits a step higher, so every stroke edge is a ridge in the light.

Recap

What the dish showed