Interactive watercolor rendering with temporal coherence
A real-time pipeline that turns rendered 3D animation into watercolour imagery (abstraction, edge darkening, pigment variation, paper) while limiting flicker and swimming.
In the family Stylized & non-photorealistic rendering, watercolor
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | None found | |
| Babylon.js 9.38.0 | None found | |
| Godot 4.7 | None found | |
| Unity | None found | |
| Unreal 5.7 | None found | No built-in temporally coherent real-time watercolor post-process. |
| Blender 5.2 | None found | |
| WebGPU W3C | None found | |
| Metal | None found |
How it works
The method stacks several post-processing steps on a rendered frame: colour simplification via smoothing of the rendered image, a pigment-dispersion effect through procedural noise perturbation, edge darkening where gradient magnitude is large, and a paper texture layered via a multiply. The key concern is temporal coherence: effects like pigment noise and paper must not swim or flicker as the camera or objects move, so they are handled with scene-aware coherence rather than being re-generated each frame. Abstraction and pigment parameters are controlled per object with masks, which lets artists pick which parts remain detailed.
When to choose it
Reach for it when
- want a watercolour look on animated 3d scenes
- paint effect flickers or swims across frames
- pigment, paper and edge darkening in real time
- per-object control of abstraction in stylised render
- watercolour stylisation for interactive 3d
Choose it for a watercolour look on animated 3D scenes with controllable abstraction per object. Prefer Computer-generated watercolor (fluid simulation) for physically simulated paint on 2D canvases, and Kuwahara filter or Anisotropic Kuwahara filter for a cheap generic painterly look with no paper-texture coherence.
Field marks
- Image-space smoothing blurs fine details such as faces
- Coherence can fail at occlusions and fast motion
- Paper texture can show a shower-door effect if it is tied only to the screen
- Edge darkening halos on noisy renders
Presets
Interactive Watercolor (Bousseau et al.) — dry 3D shaded render (left) vs abstraction, capillary edge darkening, granulation & paper grain (right)
{
"P_EDGE_DARK": 0.8,
"P_GRANULATION": 0.65,
"P_PAPER_GRAIN": 0.7,
"P_SPLIT": 0.44
}Show GLSL (178 lines)
const float P_EDGE_DARK = 0.80; // P Capillary Edge Dark [0.0, 1.3, 0.05]
const float P_GRANULATION = 0.65; // P Pigment Granulation [0.0, 1.2, 0.05]
const float P_PAPER_GRAIN = 0.70; // P Cold-Press Paper [0.0, 1.0, 0.05]
const float P_SPLIT = 0.44; // P Dry 3D / Watercolor [0.0, 1.0, 0.02]
float hash21(vec2 p) {
p = fract(p * vec2(127.1, 311.7));
p += dot(p, p + 34.5);
return fract(p.x * p.y);
}
float vnoise(vec2 p) {
vec2 i = floor(p);
vec2 f = fract(p);
vec2 u = f * f * (3.0 - 2.0 * f);
return mix(
mix(hash21(i), hash21(i + vec2(1.0, 0.0)), u.x),
mix(hash21(i + vec2(0.0, 1.0)), hash21(i + vec2(1.0, 1.0)), u.x),
u.y
);
}
float fbm(vec2 p) {
float a = 0.5;
float s = 0.0;
for (int i = 0; i < 4; i++) {
s += a * vnoise(p);
p = p * 2.03 + vec2(13.7, 29.1);
a *= 0.5;
}
return s;
}
float sdBox(vec3 p, vec3 b) {
vec3 q = abs(p) - b;
return length(max(q, 0.0)) + min(max(q.x, max(q.y, q.z)), 0.0);
}
// Sunlit Mediterranean stone archway, cypress spheres & reflective canal (classic Bousseau watercolor subject)
vec2 mapBridge(vec3 p) {
float dWater = p.y + 0.52;
vec2 res = vec2(dWater, 1.0);
// Stone bridge arch spanning across canal
float dWall = sdBox(p - vec3(0.0, -0.10, -0.35), vec3(1.15, 0.44, 0.26));
float dArchHole = length(vec2(p.x, p.y + 0.48)) - 0.42;
float dBridge = max(dWall, -dArchHole);
if (dBridge < res.x) res = vec2(dBridge, 2.0);
// Terracotta villa dome behind bridge
float dDome = length(p - vec3(0.46, 0.24, -0.78)) - 0.34;
if (dDome < res.x) res = vec2(dDome, 3.0);
// Sunlit foliage spheres on left bank
float dTree1 = length(p - vec3(-0.62, 0.22, -0.58)) - 0.32;
float dTree2 = length(p - vec3(-0.34, 0.16, -0.70)) - 0.24;
float dTree = min(dTree1, dTree2);
if (dTree < res.x) res = vec2(dTree, 4.0);
return res;
}
vec3 calcNormal(vec3 p) {
vec2 e = vec2(0.003, 0.0);
return normalize(vec3(
mapBridge(p + e.xyy).x - mapBridge(p - e.xyy).x,
mapBridge(p + e.yxy).x - mapBridge(p - e.yxy).x,
mapBridge(p + e.yyx).x - mapBridge(p - e.yyx).x
));
}
// Render dry scene color + object-space anchor coordinates (prevents shower-door swimming during camera motion!)
void evalDryScene(vec2 uv, float t, out vec3 col, out float dep, out vec2 objAnchor) {
vec3 ro = vec3(0.22 * sin(t * 0.42), 0.14, 2.15);
vec3 rd = normalize(vec3(uv.x, uv.y - 0.04, -1.48));
vec3 sunDir = normalize(vec3(0.62, 0.72, 0.46));
col = mix(vec3(0.95, 0.89, 0.78), vec3(0.44, 0.68, 0.90), smoothstep(-0.08, 0.52, rd.y));
dep = 10.0;
objAnchor = uv * 4.5 + vec2(0.22 * sin(t * 0.42) * 0.5, 0.0);
float dist = 0.05;
vec2 hit = vec2(10.0, 0.0);
for (int i = 0; i < 60; i++) {
vec2 h = mapBridge(ro + rd * dist);
if (h.x < 0.0025) { hit = vec2(dist, h.y); break; }
dist += h.x;
if (dist > 8.5) break;
}
if (hit.y > 0.5) {
dep = hit.x;
vec3 p = ro + rd * hit.x;
vec3 n = calcNormal(p);
objAnchor = (hit.y < 1.5) ? (p.xz * 2.4) : (p.xy * 2.8 + p.z * 0.9);
float ndl = max(dot(n, sunDir), 0.0);
if (hit.y < 1.5) {
// Shimmering turquoise canal water
vec3 wAlb = mix(vec3(0.20, 0.54, 0.68), vec3(0.54, 0.78, 0.84), 0.5 + 0.5 * sin(p.z * 7.0 + p.x * 3.0));
float archSh = smoothstep(0.18, 0.55, abs(p.z + 0.35));
col = wAlb * (0.45 + 0.55 * archSh);
} else if (hit.y < 2.5) {
// Warm sandstone bridge
vec3 sAlb = vec3(0.88, 0.78, 0.62);
col = sAlb * (0.32 + 0.82 * ndl) + vec3(0.18, 0.28, 0.44) * (1.0 - ndl) * 0.30;
} else if (hit.y < 3.5) {
// Terracotta roof dome
col = vec3(0.90, 0.44, 0.28) * (0.30 + 0.85 * ndl) + vec3(0.20, 0.24, 0.42) * (1.0 - ndl) * 0.26;
} else {
// Olive-emerald foliage
col = vec3(0.26, 0.62, 0.36) * (0.30 + 0.85 * ndl) + vec3(0.14, 0.28, 0.38) * (1.0 - ndl) * 0.25;
}
}
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
float screenX = fragCoord.x / max(iResolution.x, 1.0);
float split = clamp(P_SPLIT, 0.0, 1.0);
float edgeDark = clamp(P_EDGE_DARK, 0.0, 1.4);
float granAmt = clamp(P_GRANULATION, 0.0, 1.4);
float paperAmt = clamp(P_PAPER_GRAIN, 0.0, 1.0);
vec3 dryCol;
float cDep;
vec2 objAnchor;
evalDryScene(uv, iTime, dryCol, cDep, objAnchor);
vec3 col = dryCol;
if (screenX >= split) {
// Right: Bousseau real-time watercolor pipeline (wobble -> abstraction -> pigment granulation -> edge darkening -> paper!)
// 1. Object-anchored pigment wobble (temporally coherent as camera glides!)
vec2 wob = (vec2(fbm(objAnchor * 1.4), fbm(objAnchor * 1.4 + vec2(7.3, 19.1))) - 0.5) * 0.016 * granAmt;
vec2 wUv = uv + wob;
// 2. Color simplification / wet-on-wet 5-tap abstraction smoothing
vec3 c0, cL, cR, cD, cU;
float d0, dL, dR, dD, dU;
vec2 a0, aTmp;
float eps = 0.008;
evalDryScene(wUv, iTime, c0, d0, a0);
evalDryScene(wUv + vec2(-eps, 0.0), iTime, cL, dL, aTmp);
evalDryScene(wUv + vec2(eps, 0.0), iTime, cR, dR, aTmp);
evalDryScene(wUv + vec2(0.0, -eps), iTime, cD, dD, aTmp);
evalDryScene(wUv + vec2(0.0, eps), iTime, cU, dU, aTmp);
vec3 wash = (c0 * 2.0 + cL + cR + cD + cU) / 6.0;
// Slight vibrant watercolor glaze lift (translucent bright paper showing through pigment)
wash = mix(wash, pow(clamp(wash, 0.0, 1.0), vec3(0.88)), 0.35);
// 3. Pigment dispersion / granulation using temporally coherent object-space fBM
float gran = fbm(a0 * 2.6 + vec2(3.1, 8.7));
float granMod = 1.0 + (gran - 0.5) * 0.42 * granAmt;
// Kubelka-Munk-like pigment concentration power curve (pigment pools saturate & darken!)
vec3 pigmented = pow(clamp(wash, 0.02, 1.0), vec3(granMod));
// 4. Capillary edge darkening (wet pigment migrates to stroke boundaries where color/depth gradient spikes!)
float gradCol = length(cR - cL) + length(cU - cD);
float gradDep = (abs(dR - dL) + abs(dU - dD)) * 0.14;
float edgeMask = smoothstep(0.06, 0.34, gradCol + gradDep);
// Darken & slightly saturate boundary edges like dried watercolor backruns
vec3 edgePigment = pow(clamp(pigmented, 0.02, 1.0), vec3(1.0 + 1.35 * edgeDark * edgeMask));
edgePigment *= (1.0 - 0.28 * edgeDark * edgeMask);
// 5. Cold-press cotton watercolor paper texture (multiplied in screen space)
float paperFine = fbm(fragCoord * 0.16);
float paperCoarse = fbm(fragCoord * 0.045 + vec2(17.1, 4.3));
float paperH = mix(paperCoarse, paperFine, 0.55);
vec3 paperTint = vec3(0.99, 0.97, 0.93) * (0.88 + 0.18 * paperH);
// Granulation settles extra pigment into paper valleys
col = edgePigment * mix(vec3(1.0), paperTint, paperAmt);
col = mix(col, col * (0.86 + 0.24 * paperH), paperAmt * 0.55);
}
float sep = smoothstep(0.0035, 0.0008, abs(screenX - split));
col = mix(col, vec3(0.22, 0.24, 0.30), sep);
fragColor = vec4(pow(clamp(col, 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);
}Attribution: MIT — written for this index.
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| watercolor-bousseau-realtime-live | Tesla T4 1920x1080 | 87.2× baseline (extreme) · 2.87 ms / 3.04 ms | opengl-timer-query · 32 frames · GPU Weight Atlas · Colab T4 sweep |
| watercolor-bousseau-realtime-live | NVIDIA L4 1920x1080 | 78.3× baseline (extreme) · 1.25 ms / 1.27 ms · 2.3× faster on L4 | opengl-timer-query · Cross-architecture validation |
| watercolor-bousseau-realtime-live | NVIDIA A100-SXM4-40GB 1920x1080 | 57.1× baseline (heavy) · 1.64 ms / 1.66 ms · 1.7× faster on A100 | opengl-timer-query · Cross-architecture validation |
Lineage
From the citation graph (Crossref reference lists): its primary source cites Painterly rendering for animation (Meier), Perlin Noise (gradient lattice noise), Improved Perlin Noise.
Crosses
- Anisotropic Kuwahara filter: Kuwahara abstraction provides the colour flattening before paper and edge-darkening layers.
Sources
- primaryAdrien Bousseau, Matt Kaplan, Joëlle Thollot, François X. Sillion (2006). Interactive watercolor rendering with temporal coherence and abstraction. Proceedings of the 4th international symposium on Non-photorealistic animation and rendering.Verified via crossref · 2026-11-29doi:10.1145/1124728.1124751