TL;DR
Gaussian splatting represents a captured scene as a cloud of soft, stretched 3D blobs. Each blob has a position, a shape, a colour and an opacity. To draw a picture from a new camera, every blob is flattened onto the image plane, the blobs are sorted front to back, and their colours are blended with the alpha-compositing rule. The blobs are fitted to the photographs by gradient descent, which is what makes the result both accurate and fast to draw.
Before this, the best photorealistic methods were slow to draw, and the fast ones were blurry. Splatting closed that gap for real scenes at 1080p.
Where you'll see it: real-time viewers that let you walk around a room or a street reconstructed from ordinary photos or video, and in research on fast 3D capture.
Intuition
Paint the scene with soft blobs
Picture a scene made of fog instead of solid surfaces. Each small patch of fog is dense at its centre and thins out towards its edge, like a soft snowball. Some patches are long and flat, like a leaf. Some are tiny, for fine detail. Place a few million of them in the right spots, give each one a colour and a transparency, and the fog looks like the scene from every direction.
That is the representation. The name comes from what happens at render time. Each 3D blob is "splatted" onto the screen as a 2D soft spot, and the spots are composited in depth order.
Why blobs and not a neural network? A neural radiance field (NeRF) asks an MLP for the colour and density at every sampled point along every pixel ray. That is accurate, but each pixel costs many network evaluations. Earlier point-based methods were fast, but holes and noise showed up where the points were sparse. Gaussians sit in between. They are continuous, so gradients flow through them smoothly, yet they are explicit objects, so a GPU can draw them with a sort and a blend.
The optimization starts from the points that structure-from-motion already produced while calibrating the cameras, then it places, stretches, splits and removes blobs until the renders match the photographs.
- σ = 1
- σ = 0.5
flowchart LR A["Calibrated photos"] --> B["SfM points"] B --> C["One blob per point"] C --> D["Project and sort per tile"] D --> E["Alpha-blend to image"] E --> F["Compare with photo"] F --> G["Gradient step on blob parameters"] G --> H["Add, split or prune blobs"] H --> D
The math
One blob in 3D
A 3D Gaussian is centred at a point . Its shape is set by a covariance matrix , a symmetric matrix. The unnormalised density at a point is
Level sets of are ellipsoids. The directions of the ellipsoid axes come from the eigenvectors of , and the lengths come from its eigenvalues. This is the same picture as in the covariance matrix lesson.
Optimizing directly is a bad idea. A gradient step can push it to a matrix that is not positive semi-definite, which does not describe any ellipsoid. The paper therefore builds the matrix from two parts that are always valid:
Here is a diagonal matrix of three positive scales, and is a rotation matrix (see Rotation Matrix). The scales are stored as a vector passed through an exponential, which keeps them positive. The rotation is stored as a quaternion , normalised to a unit rotation. Since is diagonal with non-negative entries and is orthogonal, is always a valid covariance. Gradient descent (see Gradient Descent) can then move and freely.
Projecting a blob onto the image
To draw a blob, the paper projects it to the screen. Let be the world-to-camera transform and the Jacobian of the local affine approximation of the perspective projection (see Jacobian Matrix and Pinhole Camera Model). The camera-space covariance is , and the 2D covariance on the image plane is
The 2D blob is centred on the projected centre of the 3D blob and has covariance . This is the Zwicker-style projection that the paper cites.
Blending along a pixel
Each blob also has an opacity , produced by a sigmoid so that it stays in range (see Sigmoid Function). For a pixel , blob contributes an effective alpha
Sort the blobs by depth, nearest first. The pixel colour is then the over-operator sum from Alpha Compositing:
Here is the colour of blob . The product is the transmittance: how much light survives the blobs in front. The paper also writes it as a running quantity , so each blob adds .
Colour is not a single number per blob. It is a view-dependent colour given by spherical harmonic coefficients, so that shiny or directional lighting can look different from different angles.
Training loss
Renders are compared to the photographs with a mix of an absolute-difference term and a structural term:
is the mean absolute pixel difference. is one minus the structural similarity index, divided by two, so that it is zero when the images match.
Density control
Gradient descent alone cannot move blobs into empty regions or split a blob that covers too much. So every 100 iterations the method adjusts the set of blobs:
- If a blob has a large average magnitude of view-space position gradient above , it is in a region the model cannot fit. A small blob is cloned, and a large blob is split into two smaller ones.
- Any blob whose opacity falls below a threshold is removed, and very large blobs are removed periodically.
Density control is what turns a sparse starting cloud into a dense, detailed one.
Worked examples
Take a 2D blob with scales and , so , and no rotation. Then and .
- At : the quadratic form is .
- So .
- At : the form is , so .
- The blob is wide along and narrow along . Equal distances in the two directions give very different weights.
Now rotate by 90 degrees, so . Then .
- At the form is , so . This matches step 3 before rotation.
- At the form is , so .
Interpretation: rotation turns the wide axis into the other axis without changing the scales. The blob is parameterised so that gradient descent can change the scales and angle separately.
Three blobs sit along one pixel ray, nearest first, with effective alphas , , , and colours red , green , blue . The background is black.
- Blob 1 has transmittance . Its contribution is .
- Light left after blob 1 is .
- Blob 2 contributes times green, so .
- Light left after blob 2 is .
- Blob 3 contributes times blue, so .
- Light left after blob 3 is , which goes to the black background.
- Check: . The weights sum to one, as they must.
- Pixel colour is .
Interpretation: the nearest blob dominates because it is first in line. Reversing the order would change the colour, which is why the sort is needed.
The paper's Table 1 reports, for Mip-NeRF360 scenes at its evaluation resolution, that the 30K-iteration model renders at 134 FPS and that Mip-NeRF360 itself renders at 0.06 FPS. These are the paper's measurements on its own hardware.
- A 30 FPS target allows ms per frame.
- At 134 FPS, one frame takes ms. That fits the 30 FPS budget with room to spare.
- At 0.06 FPS, one frame takes ms, about 16.7 seconds.
- The paper reports the Mip-NeRF360 training time as 48 hours, against 41 minutes 33 seconds for its own 30K model on the same scenes. minutes, and , so the training speed-up is roughly 69 times. The paper notes that its 48-hour figure was converted from a 4-GPU run, so treat the ratio as approximate.
Interpretation: the gain is not only faster training. Rendering moves from seconds per frame to real time, which is what makes interactive viewing possible.
Tradeoffs and failure modes
| Situation | What goes wrong | Better choice |
|---|---|---|
| Very large scenes | Peak GPU memory during training can exceed 20 GB in the paper's unoptimised prototype | Reduce the position learning rate, as the paper suggests, or compress the stored model |
| Little overlap with training views | Floaters and blobs that were never constrained | Add regularisation, which the paper says it does not use |
| Large blobs in view-dependent regions | Popping when the sort order changes | Better culling and antialiasing, both left as future work in the paper |
| Sparse, unlit or view-limited captures | Spherical harmonic colour fits badly without angular coverage | Use a simpler colour model or more views |
| Need a watertight mesh | Blobs are not a surface | Extract a surface from the blobs, or use a mesh-based method |
| Need a tiny file | Millions of blobs with many parameters each | Compression, or a point-based model with fewer primitives |
Gaussian splatting is the right tool when the goal is photorealistic, real-time novel views of a captured scene. It is the wrong tool when the goal is a clean mesh, a small model, or editing that needs a semantic surface.
History
The projection step follows the splatting work of Zwicker and colleagues in 2001, which the paper cites for projecting 3D Gaussians to image space. Point-based rendering, which places small primitives at sampled points and draws them with splats, goes back to earlier graphics research. The paper also builds on the point-based neural rendering of Kopanas and colleagues in 2021.
Radiance fields are the other root. The NeRF paper of Mildenhall and colleagues in 2020 showed that an MLP could represent a scene as a function of position and view direction. The paper evaluates on the Blender synthetic dataset from that work. It also compares against Mip-NeRF360, which it describes as the state of the art in quality, and against InstantNGP and Plenoxels, which it describes as fast methods.
The paper by Kerbl, Kopanas, Leimkühler and Drettakis appeared in ACM Transactions on Graphics in 2023. Its problem was clear from the abstract: no method could render unbounded real scenes at 1080p in real time with state-of-the-art quality. Its answer was the combination of explicit blobs, interleaved density control, and a tile-based rasterizer with a fast sort. The paper's own experiments are the source for the numbers in this lesson.
Check yourself
QuestionRecall: why does the method optimize the scale vector and the quaternion instead of the covariance matrix directly?Show answer
A raw gradient step on can produce a matrix that is not positive semi-definite, which describes no ellipsoid. Writing with a positive scale and a unit quaternion keeps every update a valid covariance.
QuestionComputation: a blob has and is evaluated at . What is ?Show answer
The quadratic form is , since the variance is 1 and . Then .
QuestionWhy: why must the blobs be sorted by depth before alpha blending?Show answer
The over-operator weights each blob by the light that survives the blobs in front of it. Changing the order changes the transmittance products, so the same blobs in a different order produce a different colour. The sort puts the nearest blob first, which is the physically correct order.
QuestionApplied: a scene has 3 million blobs and each renders in a fixed time. Why does the paper's method stay fast as the number of blobs grows, and what limits it instead?Show answer
Each blob is projected and drawn once per frame, with work proportional to the number of blobs and the pixels they touch, using tile-based sorting on the GPU. The limits are the memory needed to store the blobs and the sort cost, not a per-pixel network evaluation as in NeRF. The paper names GPU memory as the main cost of large scenes.
Sources
- Kerbl, Kopanas, Leimkühler, Drettakis, 3D Gaussian Splatting for Real-Time Radiance Field Rendering, 2023. https://arxiv.org/abs/2308.04079
- ACM Transactions on Graphics 42(4), 2023. https://doi.org/10.1145/3592433
- Mildenhall et al., NeRF, 2020. https://arxiv.org/abs/2003.08934