4D Gaussian Splatting
Extends 3D Gaussian splatting to moving scenes by adding time: either a canonical set of Gaussians deformed per timestamp or primitives that are Gaussian in x, y, z and t.
Also known as 4DGS, dynamic gaussian splatting
In the family Capture, reconstruction & splatting, dynamic scene splatting
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 | Dynamic 4D Gaussian Splatting is not built into stock Unreal Engine. |
| Blender 5.2 | None found | |
| WebGPU W3C | None found | |
| Metal | None found |
How it works
There are two main families. Deformation-field methods keep one canonical set of 3D Gaussians and learn a compact network, often a multi-resolution HexPlane over (x, y, z, t) plus a tiny decoder, that predicts per-Gaussian offsets in position, rotation and scale at a query time; the deformed Gaussians then go through the usual splat rasteriser. Native 4D methods instead optimise Gaussians in four dimensions and slice them at time t to get a 3D Gaussian, with spherindrical harmonics for view and time-dependent colour. Training uses multi-view video or monocular video with known poses and the same photometric loss as static splatting, plus regularisers on motion smoothness. Rendering at inference is the standard splat sort and blend, so frame rates stay real time.
When to choose it
Reach for it when
- splat a scene that has moving people
- want free viewpoint video from multi view cameras
- reconstructed scene looks frozen when people or objects move
- replay captured motion in real time
Choose it to capture and replay people or scenes in motion from synchronised multi-view video with free viewpoint. Prefer 3D Gaussian Splatting for static scenes, Neural Radiance Fields (NeRF)-based dynamic methods when memory per frame matters less than a fixed model, and Web Gaussian Splat Renderers (three.js) for playback in a browser once frames are exported; per-frame static splats are simplest but heavy for long clips.
Field marks
- Fast, large motion or topology changes get smeared or leave floaters because the deformation is smooth in time
- Monocular video is under-constrained, so motion and geometry are ambiguous without additional depth or flow cues
- Memory and file size grow with sequence length, hurting streaming or web delivery
- Time-slicing artifacts appear when sampled time falls between training frames with sparse temporal coverage
Presets
4D Gaussian Splatting — spacetime hexplane velocity trails (left) vs dynamic 4D splats (right)
{
"P_TIME_RATE": 1,
"P_DEFORM_AMP": 0.75,
"P_SPLAT_RAD": 0.12,
"P_SPLIT": 0.46
}Show GLSL (102 lines)
const float P_TIME_RATE = 1.0; // P Temporal Speed [0.0, 2.5, 0.05]
const float P_DEFORM_AMP = 0.75; // P 4D Motion Amp [0.1, 1.4, 0.04]
const float P_SPLAT_RAD = 0.12; // P Splat Radius [0.05, 0.24, 0.01]
const float P_SPLIT = 0.46; // P Trajectories / 4DGS [0.0, 1.0, 0.02]
mat2 rot2(float a) { float c = cos(a), s = sin(a); return mat2(c, -s, s, c); }
// Canonical 3D Gaussian i deformed by a smooth HexPlane spatiotemporal displacement field dX(x, t)
vec3 eval4DPos(float fi, float t, float amp) {
float u = fi / 32.0;
float phi = fi * 2.3999632; // golden angle
float y0 = (u - 0.5) * 1.15;
float r0 = 0.42 * sqrt(max(1.0 - y0 * y0 * 0.9, 0.05)) + 0.14;
vec3 base = vec3(cos(phi) * r0, y0, sin(phi) * r0);
// HexPlane time-varying shear, wave ripple & flapping wing motion
float wave = sin(t * 2.2 + base.y * 4.2 + phi * 0.5);
float wing = cos(t * 1.8 - abs(base.x) * 3.5);
vec3 dx = vec3(
0.22 * wave * sign(base.x + 1e-4),
0.16 * wing + 0.10 * sin(t * 2.6 + phi),
0.20 * cos(t * 2.0 + base.y * 3.8)
) * amp;
vec3 pos = base + dx;
pos.xz = rot2(t * 0.42) * pos.xz;
return pos;
}
vec3 aces(vec3 x) {
x = max(x, 0.0);
return (x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14);
}
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);
bool isTrail = screenX < split;
float t = iTime * max(P_TIME_RATE, 0.0);
float amp = clamp(P_DEFORM_AMP, 0.05, 1.6);
float rad = clamp(P_SPLAT_RAD, 0.04, 0.26);
vec3 ro = vec3(0.0, 0.14, 2.35);
vec3 rd = normalize(vec3(uv, -1.52));
vec3 bg = mix(vec3(0.020, 0.026, 0.048), vec3(0.055, 0.072, 0.122), smoothstep(-0.55, 0.55, uv.y));
vec3 acc = vec3(0.0);
float T = 1.0;
for (int i = 0; i < 32; i++) {
float fi = float(i);
vec3 pNow = eval4DPos(fi, t, amp);
vec3 pPrev = eval4DPos(fi, t - 0.14, amp);
vec3 vel = pNow - pPrev;
float speed = length(vel);
vec3 vDir = vel / max(speed, 1e-4);
// Current Gaussian response
vec3 oc = pNow - ro;
float tProj = dot(oc, rd);
if (tProj > 0.2) {
vec3 perp = oc - rd * tProj;
// 4D covariance elongates along instantaneous velocity direction
float dV = dot(perp, vDir);
vec3 dN = perp - vDir * dV;
float stretch = 1.0 + speed * 5.0;
float m2 = (dot(dN, dN) + (dV * dV) / (stretch * stretch)) / max(rad * rad, 1e-4);
float g = exp(-m2 * 2.1);
if (g > 0.012) {
float a = clamp(g * 0.78, 0.0, 0.92);
vec3 baseCol = mix(vec3(0.14, 0.76, 0.96), vec3(0.98, 0.42, 0.24), fi / 32.0);
vec3 velCol = mix(vec3(0.18, 0.42, 0.92), vec3(1.0, 0.86, 0.24), clamp(speed * 7.0, 0.0, 1.0));
vec3 gCol = isTrail ? velCol : baseCol;
acc += T * a * gCol * (0.75 + 0.55 * g);
T *= (1.0 - a);
if (T < 0.02) break;
}
}
// On left side, draw spacetime motion trails (3 past temporal slices)
if (isTrail) {
for (int s = 1; s <= 3; s++) {
float fs = float(s);
vec3 pOld = eval4DPos(fi, t - fs * 0.10, amp);
vec3 oc2 = pOld - ro;
float tp2 = dot(oc2, rd);
if (tp2 > 0.2) {
vec3 perp2 = oc2 - rd * tp2;
float g2 = exp(-dot(perp2, perp2) / max(rad * rad * 0.18, 1e-5));
acc += T * g2 * 0.22 * (1.0 - fs * 0.25) * vec3(0.24, 0.92, 0.88);
}
}
}
}
vec3 col = acc + T * bg;
float sep = smoothstep(0.0035, 0.0008, abs(screenX - split));
col = mix(col, vec3(0.95, 0.97, 1.0), sep);
fragColor = vec4(pow(clamp(aces(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 |
|---|---|---|---|
| 4d-gaussian-splatting-live | Tesla T4 1920x1080 | 103× baseline (extreme) · 3.40 ms / 3.68 ms | opengl-timer-query · 32 frames · GPU Weight Atlas · Colab T4 sweep |
| 4d-gaussian-splatting-live | NVIDIA L4 1920x1080 | 92.8× baseline (extreme) · 1.48 ms / 1.48 ms · 2.3× faster on L4 | opengl-timer-query · Cross-architecture validation |
| 4d-gaussian-splatting-live | NVIDIA A100-SXM4-40GB 1920x1080 | 72.1× baseline (extreme) · 2.08 ms / 2.09 ms · 1.6× faster on A100 | opengl-timer-query · Cross-architecture validation |
Lineage
From the citation graph (Crossref reference lists): its primary source cites Instant NGP (Multiresolution Hash Encoding), Structure-from-Motion (COLMAP).
Crosses
- Structure-from-Motion (COLMAP): Per-frame or first-frame COLMAP poses initialise the cameras and the canonical Gaussian set.
Sources
- primaryGuanjun Wu, Taoran Yi, Jiemin Fang, Lingxi Xie, Xiaopeng Zhang, Wei Wei et al. (2023). 4D Gaussian Splatting for Real-Time Dynamic Scene Rendering. arXiv preprint (cs.CV).Verified via arxiv · 2026-11-29arXiv:2310.08528
- implementationhustvl (2023). hustvl/4DGaussians. [CVPR 2024] 4D Gaussian Splatting for Real-Time Dynamic Scene RenderingGitHub API · license Apache-2.0 · 2026-11-29
- implementationLogosIntelligenceLab (2023). LogosIntelligenceLab/4d-gaussian-splatting. [ICLR 2024] Real-time Photorealistic Dynamic Scene Representation and Rendering with 4D Gaussian SplattingGitHub API · license MIT · 2026-11-29