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.
Structure tensor · Sobel
Strokes lie along the smoothed edge direction
Widen the smoothing: the colony edges start to steer the strokes on the agar.
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.
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.
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
- The topmost of 25 nearby cells' strokes colours each pixel
- The smoothed structure tensor turns each stroke along the edges
- Colonies and agar each follow one of five fields
- Length and width run from round dabs to sweeps
- Smaller strokes repaint only where paint differs from the picture
- Bristle ridges and layer steps, lit, read as paint