3D Gaussian Splatting × Painterly rendering for animation (Meier)
Splats as world-anchored brush strokes. A captured place repainted with strokes that hold still as the camera moves. Each Gaussian already is what painterly animation needs: a surface-anchored particle with colour, orientation and size, so stroke direction comes from geometry, not image gradients.
Open in StudioReproduced94.8× · 2.94 ms
Verified proof

Split-screen WebGL2 proof comparing smooth elliptical 3D Gaussian splats rendering a sunlit still-life sphere and pedestal (left, displaying soft translucent Gaussian blobs) against the exact same world-anchored splat ellipses converted into Meier painterly brush strokes oriented along surface contours with bristle-alpha masks, impasto pigment ridges, and frame-coherent per-stroke color jitter (right).
Chromium Headless ANGLE/SwiftShader WebGL2 · 512x512 · converts world-anchored 3DGS ellipses into temporally stable contour-aligned Meier impasto brush strokes with zero screen-space shower-door drift
Show GLSL proof (124 lines)
const float P_STROKE_SCALE = 1.05; // P Brush Stroke Scale [0.6, 1.8, 0.05]
const float P_BRISTLE = 1.00; // P Bristle Texture [0.0, 2.0, 0.05]
const float P_COLOR_JITTER = 0.75; // P Pigment Jitter [0.0, 1.5, 0.05]
const float P_ORBIT = 0.42; // P Orbit Speed [0.0, 1.2, 0.05]
float hash11(float p) {
p = fract(p * 0.1031);
p *= p + 33.33;
return fract(p * (p + p));
}
vec3 hash31(float p) {
return vec3(hash11(p + 1.1), hash11(p + 17.3), hash11(p + 41.7));
}
mat2 rot2(float a) {
float c = cos(a), s = sin(a);
return mat2(c, -s, s, c);
}
// Painterly bristle brush alpha & impasto ridge in local ellipse space [-1..1]^2
vec2 evalBrushDab(vec2 q, float seed) {
// Tapered rectangular brush footprint with rounded tips
vec2 e = abs(q) - vec2(0.72, 0.30);
float boxD = length(max(e, 0.0)) + min(max(e.x, e.y), 0.0);
// Longitudinal bristle streaks along major stroke axis (x)
float bFreq = 16.0 + 10.0 * hash11(seed + 5.2);
float bristles = 0.5 + 0.5 * sin(q.y * bFreq + sin(q.x * 4.5 + seed * 9.0) * 1.1);
float dryTip = smoothstep(0.95, 0.25, abs(q.x) + (1.0 - bristles) * 0.28 * P_BRISTLE);
float alpha = smoothstep(0.14, -0.06, boxD - (bristles - 0.5) * 0.07 * P_BRISTLE) * dryTip;
float ridge = (bristles - 0.5) * 0.16 * P_BRISTLE + smoothstep(-0.08, 0.04, boxD) * 0.12;
return vec2(clamp(alpha, 0.0, 1.0), ridge);
}
vec3 acesTone(vec3 x) {
return clamp((x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14), 0.0, 1.0);
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
bool useBrush = uv.x > 0.0;
vec2 suv = vec2(useBrush ? (uv.x - 0.25) : (uv.x + 0.25), uv.y);
suv.x *= 1.80;
// Subtle warm linen canvas background on right vs neutral dark studio on left
float weave = sin(suv.x * 260.0) * sin(suv.y * 260.0) * 0.015;
vec3 bgLeft = mix(vec3(0.07, 0.08, 0.10), vec3(0.14, 0.15, 0.18), clamp(suv.y + 0.55, 0.0, 1.0));
vec3 bgRight = mix(vec3(0.14, 0.13, 0.11), vec3(0.26, 0.24, 0.20), clamp(suv.y + 0.55, 0.0, 1.0)) + weave;
vec3 bg = useBrush ? bgRight : bgLeft;
float ang = 0.5 + iTime * P_ORBIT;
mat2 camRot = rot2(ang);
vec3 sunDir = normalize(vec3(0.65, 0.68, 0.52));
// Depth-ordered front-to-back / back-to-front world-anchored splats on a sunlit still-life orb
// Golden-angle Fibonacci lattice of 42 world-space 3D splats on sphere (R = 0.34)
vec3 accum = bg;
float bestZ = -1e5;
// Draw background-to-foreground in 2 depth buckets for clean painter's order without sorting arrays
for (int pass = 0; pass < 2; pass++) {
for (int i = 0; i < 42; i++) {
float fi = float(i);
float y = 1.0 - (fi + 0.5) * (2.0 / 42.0);
float rad = sqrt(max(1.0 - y * y, 0.0));
float phi = fi * 2.3999632;
vec3 wPos = vec3(cos(phi) * rad, y, sin(phi) * rad) * 0.34;
vec3 wNorm = normalize(wPos);
// Rotate into camera space
vec3 cPos = wPos;
cPos.xz = camRot * wPos.xz;
vec3 cNorm = wNorm;
cNorm.xz = camRot * wNorm.xz;
// Two-pass coarse depth ordering (back hemisphere then front hemisphere)
bool isFront = cPos.z > -0.02;
if ((pass == 0 && isFront) || (pass == 1 && !isFront)) continue;
// Perspective projection onto panel UV
float zCam = 1.65 - cPos.z;
vec2 proj = (cPos.xy / zCam) * 1.48;
vec2 diff = suv - proj;
// Surface tangent orientation in screen space so brush strokes wrap smoothly along contours
vec3 tang = normalize(cross(vec3(0.0, 1.0, 0.0), cNorm) + vec3(0.001, 0.0, 0.0));
float orient = atan(tang.y, tang.x) + (hash11(fi * 3.7) - 0.5) * 0.22;
vec2 loc = rot2(-orient) * diff;
// Foreshortened elliptical footprint from 3DGS surface covariance
float foreshorten = clamp(abs(cNorm.z) * 0.72 + 0.28, 0.28, 1.0);
float sz = (0.115 / zCam) * P_STROKE_SCALE;
vec2 q = loc / vec2(sz * 1.35, sz * 0.78 * foreshorten);
if (dot(q, q) > 2.2) continue;
// Low-SH view-stable still-life shading (warm terracotta-ochre top, deep ultramarine shadow side)
float ndl = dot(wNorm, sunDir);
vec3 litCol = mix(vec3(0.11, 0.19, 0.42), vec3(0.92, 0.52, 0.20), smoothstep(-0.35, 0.65, ndl));
litCol = mix(litCol, vec3(1.00, 0.90, 0.62), smoothstep(0.55, 0.96, ndl));
// Cool sky bounce along upper rim
litCol += vec3(0.16, 0.36, 0.52) * smoothstep(0.2, 0.95, wNorm.y) * 0.35;
float alpha = 0.0;
vec3 splatCol = litCol;
if (!useBrush) {
// Left: standard 3D Gaussian splat falloff exp(-0.5 * |q|^2)
alpha = exp(-1.65 * dot(q, q)) * 0.86;
} else {
// Right: Meier world-anchored painterly brush stroke with bristle alpha & pigment jitter
vec2 dab = evalBrushDab(q, fi);
alpha = dab.x * 0.94;
vec3 jit = (hash31(fi * 7.1) - 0.5) * 0.24 * P_COLOR_JITTER;
splatCol = clamp(litCol + jit + vec3(dab.y), 0.02, 1.4);
}
accum = mix(accum, splatCol, alpha);
}
}
// Subtle cast shadow under floating orb
float sh = exp(-pow((suv.x) * 3.8, 2.0) - pow((suv.y + 0.37) * 14.0, 2.0));
accum *= (1.0 - 0.48 * sh);
vec3 col = acesTone(accum);
if (abs(uv.x) < 0.003) col = vec3(0.95, 0.93, 0.89);
fragColor = vec4(pow(clamp(col, 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);
}Why they connect
3D Gaussian Splatting produces gaussians: positions, covariances, opacities and colour coefficients optimised from photos. Painterly rendering for animation (Meier) consumes particles on surfaces, each with a colour and stroke attributes, and draws them as depth-ordered brush sprites. The hop is composite because gaussians are not the particles io-type: a conversion treats each kept Gaussian's centre as the particle, its largest covariance axis as stroke direction, its projected extent as stroke size and its evaluated colour as paint. Meier's per-surface density control becomes a pruning rule over the splat set, so stroke count tracks screen coverage.
How to build it
Start from a three.js splat renderer that already sorts and draws instanced quads. In the fragment shader, replace the Gaussian falloff with a brush-alpha texture sampled in the ellipse's local frame, stretched along the major axis and scaled by a stroke-size factor. Before upload, merge tiny Gaussians into representative strokes by position and colour to bring millions of splats down to a manageable stroke count, and drop low-opacity ones that would turn floaters into marks. Keep a per-stroke random seed for brush variant and jitter, so marks are stable frame to frame. Evaluate colour at low SH degree so paint does not shimmer with the view. Keep stroke size within a screen-space band, as Meier suggests.
Field marks
- Floaters and needle Gaussians become stray strokes unless pruned.
- Too many small strokes read as noise; merging too aggressively loses silhouettes.
- View-dependent colour makes strokes change hue as the camera orbits.
- Depth sorting of large overlapping strokes pops where the order flips.
Prior art
- remorses/splat-paint. Same idea: paints Gaussian splat scenes as oil paintings in the browser with strokes pinned in 3D so the painting holds together as the camera moves (per its README).
- Thinking Like Van Gogh: Structure-Aware Style Transfer via Flow-Guided 3D Gaussian Splatting. Partial: reshapes 3D Gaussians into flow-aligned brushstrokes for painterly style transfer, optimised offline rather than drawn as particle strokes at render time.
Searches run (4)
- arXiv: all:"gaussian splatting" AND all:"brush strokes" → 2 results
- GitHub repos: "gaussian splatting" "brush strokes" → 2 results
- arXiv: all:"gaussian splatting" AND all:"painterly" → 1 result
- GitHub repos: "gaussian splatting" painterly → 2 results