Skip to content
All notes

Notes · 2026-10-30 · 16 min

A format for 4D splats

Static Gaussian Splatting settled on shared formats within a year. 4D has none — so here is a concrete proposal for a container, a streaming policy, an evaluation card and a player API, written from the mistakes in this project.

4DGSStandardsWeb renderingFormats

3D Gaussian Splatting got a de facto standard within a year: .ply in, .splat and .sog for the web, every viewer agrees on the meaning of position, scale, rotation, opacity and spherical harmonics. 4D — the same scene moving through time — has none of that. Every paper ships its own loader and every demo is a video.

This note is a concrete proposal for what a 4D splat format should contain, written from the mistakes made in this project.

Why a standard is worth writing down

Four problems repeat in every 4D project:

•

Nothing states its own units. Is that Z-up or Y-up? Metres or scene units? Is the first frame at t=0 or t=1? Every consumer guesses, and half of them guess wrong.

•

Motion has no schema. A static file is a list of gaussians. A 4D file is a list of gaussians *plus* either a deformation network or N discrete frames, and nothing says which.

•

Data volume explodes. One frame of our capture is 60,783 gaussians: 15 MB as PLY, 1.9 MB as .splat. A ten second loop is 190 MB compressed, which is why 4D demos are videos.

•

Evaluation is not comparable. Papers report PSNR on different held-out cameras, at different resolutions, sometimes on training views. Numbers cannot be compared across papers.

Part A — the container

The proposal is one file, .4dgs, with a JSON header followed by binary chunks. The header is small enough to read before downloading anything.

{
  "format": "4dgs",
  "version": 1,

  "space": { "upAxis": "Z", "unit": "m", "handedness": "right" },
  "colorSpace": "sRGB",

  "timing": { "fps": 10, "frameCount": 100, "duration": 10.0, "loop": true },

  "splats": { "count": 60783, "shDegree": 3, "compression": "splat" },

  "motion": {
    "kind": "frames",
    "keyframeStride": 1,
    "deformation": null
  },

  "frames": [
    { "t": 0.0, "offset": 4096, "length": 1945056 },
    { "t": 0.1, "offset": 1949152, "length": 1945056 }
  ],

  "provenance": {
    "tool": "4DGaussians",
    "cameras": 20,
    "capture": "cut_roasted_beef",
    "source": "https://github.com/hustvl/4DGaussians"
  }
}

Three rules matter more than the rest:

1

upAxis and unit are mandatory. Most “my model loads sideways” bugs disappear the moment a file says what its axes mean.

2

motion.kind is explicit. frames means the file contains discrete gaussians per time step. deformation means it contains one canonical set plus network weights, and the player needs the network to move it. A player that cannot do the second must say so instead of rendering frame zero forever.

3

offset and length make the file seekable over HTTP without parsing anything.

For the deformation variant, the header carries the network reference instead of frames:

{
  "motion": {
    "kind": "deformation",
    "canonical": { "offset": 4096, "length": 15000000 },
    "model": { "arch": "4dgs-deform", "file": "deformation.safetensors" },
    "timeRange": [0.0, 10.0]
  }
}

Part B — streaming

A 190 MB download is a non-starter, and it does not have to be. Because frames are independent chunks with byte offsets, a player only needs the frames near the playhead:

GET /scene.4dgs            Range: bytes=0-4095        → header only (4 KB)
GET /scene.4dgs            Range: bytes=1949152-3894207 → frame 1 (1.9 MB)

A workable policy, and the numbers for our capture:

•

Keep a window of three frames in memory: enough for smooth playback, about 6 MB resident instead of 190 MB.

•

Prefetch two frames ahead of the playhead; drop anything more than one second behind it.

•

Offer a temporal LOD: ?every=5 returns a 20 frame version of a 100 frame scene for slow connections or preview cards. Our 25 frame version is 48 MB, still large, but a 10 frame preview is 19 MB and enough to show that something moves.

•

Serve with Cache-Control: immutable and content-addressed filenames so frames are cached once and reused.

Part C — the evaluation card

Every 4D paper should publish the same six lines. Without them, PSNR is decoration.

model           : 4DGaussians (14k iterations)
scene           : cut_roasted_beef (20 cameras, 10 s)
held-out        : cameras 3, 8, 15  (never trained on)
resolution      : 1360 x 1024
metrics         : PSNR 33.1 / SSIM 0.94 / LPIPS 0.12
coverage        : 271° azimuth; sides not observed
training        : 37 min, 1 x RTX 4090, US$1.30

The coverage line is the one nobody publishes and everybody needs. A 4D model that looks perfect in the captured arc and turns to soup outside it is not the same product as one captured on a turntable, and a reader cannot tell from a video.

A simple way to express it: a polar plot of which azimuth and elevation were actually observed, shipped next to the metrics.

Part D — the player API

Two players that both claim to show 4D will behave differently unless the interface is named. Four methods are enough:

interface FourDPlayer {
  load(url: string): Promise<Meta>;
  seek(t: number): void;      // seconds, clamped to [0, duration]
  play(): void;
  pause(): void;
  setCamera(pose: { position: [number, number, number]; target: [number, number, number]; fov: number }): void;
}

seek is the one that matters. A player that cannot jump to an arbitrary time is a video player pretending to be a renderer, and this project ran into exactly that: the bundled viewer could swap scenes but reset its camera between swaps, so scrubbing felt like teleporting.

Part E — how to get it adopted

Formats are adopted by shipping code, not by writing specifications. The order that has worked before (.ply, .glb) is: a tool people want, then a file that tool reads, then a spec that describes the file.

A realistic sequence for 4D:

1

A reference player, 400 lines of JavaScript. Reads .4dgs, does EWA splatting properly, exposes the four methods above. No framework, no build step.

2

Two sample scenes. One turntable capture with full coverage, one partial capture like ours. The partial one is what makes the coverage metadata meaningful.

3

A converter. 4dgs pack --input frames/*.ply --fps 10 --up Z --out scene.4dgs. If converting takes one command, people will produce files.

4

The spec as a single page. Header fields, chunk layout, streaming rules, evaluation card. If it needs more than one page, it will not be read.

5

A conformance test. Two scenes, five assertions: does it load, does it seek, does it hold the camera, does it render the last frame, does it report its coverage.

What this project can contribute

Everything needed for step 2 and 3 already exists in this repository:

•

100 frames of a real dynamic capture, in .ply and .splat, with known unit and axis conventions

•

a converter (ply-to-splat.py) that normalises scale and reports the transform it applied

•

a documented failure: the simplified renderer that produced streaks, and the reason (no covariance projection, no depth sort)

•

a coverage diagram: two rows of cameras, 5.72 m apart, with the sides marked as unobserved

That is a more useful contribution than another pretty render: a file, a converter, a stated limitation and a measurement.

What a reader should take away

4D Gaussian Splatting is not short of models; it is short of plumbing. The format question — axes, units, time, motion kind, byte offsets — is where most of the practical pain lives, and it is solvable with a page of JSON and a converter that takes one command.

The format now exists, not just on paper

The container and a reader are implemented in this repository. Packing the 100 frame capture produces one file; the reader fetches individual frames by byte offset, exactly as a browser would with HTTP Range.

python3 scripts/4dgs-pack.py \
    --input  <frames folder> \
    --out    roast.4dgs \
    --fps 10 --up Z --unit m \
    --provenance "cut_roasted_beef · 4DGaussians"

It prints what it wrote:

100 frames (10.0 s at 10 fps)
header      : 7,636 / 16,384 bytes
total size  : 194.5 MB
seekable    : frame 50 lives at byte 97,269,184

And the reader confirms the file is not just a dump: it parses the header, then compares two moments to prove the motion is real.

python3 scripts/4dgs-read.py roast.4dgs --compare 0 50
space       : up=Z  unit=m  right-handed
timing      : 100 frames · 10.0 fps · 10.0 s
splats      : 60,783 per frame · SH degree 3 · 32 B
transform   : centre [3.515287, 2.46199, 13.990249] · scale 0.06972476

frame 0 vs frame 50
  mean displacement: 4.6 mm   (scene radius = 1.0)
  max displacement : 360.0 mm
  moving > 1 mm    : 35.7% of splats

Those last three lines are the whole argument for a container. A video cannot tell you that 35.7 percent of the gaussians moved; a format that stores times and offsets can.

The player exists now, and here is what it taught us

A prototype player was built anyway: about 450 lines of TypeScript that read .4dgs, project the gaussians and keep their own camera rather than borrowing a library's. First frame arrives in 250–350 ms, playback holds 8 fps on the 25 frame asset, and dragging the camera does not lurch when the frame changes. That last property is the whole reason for owning the renderer: packaged viewers reset their camera whenever the scene is swapped, which makes scrubbing feel like teleporting.

Four bugs cost most of the time, and each one is worth writing down because each looked like something else:

•

Premultiplied colour. gl_FragColor = vec4(rgb * a, a) together with normal blending multiplies alpha twice, so the scene renders dark and sparse. The fix is OneFactor / OneMinusSrcAlphaFactor.

•

Quaternion order. 3DGS stores the rotation as (w, x, y, z) per gaussian. Read it as (x, y, z, w) and every splat is oriented wrong, which shows up as whiskers rather than a surface.

•

Radius from a conic. The inverse covariance has units of 1/px², so the on-screen radius is k / sqrt(lambda), not sqrt(2 * lambda). Getting this backwards shrinks every splat by more than an order of magnitude and makes a solid scene look like scattered dots.

•

Camera convention. LLFF poses look along -R^T e_z. With the sign flipped the entire scene sits behind the camera and the render comes back empty, which reads as a broken renderer rather than a broken pose.

Measured afterwards, from a real capture pose: 44,999 splats, 1-sigma radius 1.0 px, nearest-neighbour distance 0.2 px — five overlapping splats per pixel. So coverage was never the problem. What still looks wrong is that these gaussians are genuinely elongated (axis ratio 4.4 at the median, 30 at the 99th percentile) and the source is dark. A production renderer spends most of its code on exactly those two things.

What is still missing

Two pieces remain before someone else can use this:

1

A renderer that matches the published one. The prototype is honest but thin: no anti-aliasing compensation worth the name, a CPU depth sort, no small-splat heuristics. The container was never the bottleneck; the rasteriser is.

2

A conformance test. Right now the reader is the test — it should be five assertions a stranger can run against their own writer.

The format is deliberately boring: a JSON header, then the same 32 byte record every static .splat viewer already understands. That is the point. Standards travel when the new thing can be read by the old tools.