License YOLO
Back to Ultralytics Glossary

4D Gaussian Splatting

4D Gaussian splatting reconstructs moving scenes from video as Gaussians that change over time, rendering any viewpoint at any moment in real time.

4D Gaussian splatting (4DGS) reconstructs a moving scene from video so it can be rendered from new viewpoints at any moment, in real time. It extends 3D Gaussian splatting, which represents a static scene as millions of soft 3D ellipsoids that are projected and blended onto the screen, by letting those Gaussians move, rotate, change shape, and appear or disappear over time. Two papers from October 2023 introduced the name with different designs. 4D Gaussian Splatting for Real-Time Dynamic Scene Rendering, by Guanjun Wu and colleagues at Huazhong University of Science and Technology and Huawei (CVPR 2024), deforms one set of 3D Gaussians with a learned deformation field. Real-time Photorealistic Dynamic Scene Representation and Rendering with 4D Gaussian Splatting, by Zeyu Yang and colleagues at Fudan University (ICLR 2024), uses native 4D Gaussians defined over space and time. Both are methods for dynamic novel view synthesis, often called free-viewpoint video.

How 4D Gaussian Splatting Works#

The best input is a set of synchronized videos from cameras surrounding the scene, such as the Neural 3D Video dataset, also called Plenoptic Video, with 10-second, 30 FPS recordings from 18 to 21 cameras whose poses are recovered by structure from motion. A single moving camera also works but leaves depth and motion harder to separate. Training follows the 3D method: render the scene at one timestamp from one training camera, compare the image with the real video frame, and update every parameter by gradient descent through the differentiable renderer. The two designs differ in how they produce the Gaussians for a given timestamp:

  • Deformation field: Wu et al. keep one canonical set of 3D Gaussians. For each timestamp, a compact grid of learned spatial and temporal features, decomposed into planes as in HexPlane, supplies features for each Gaussian, and a lightweight MLP predicts how far it moves, rotates, and stretches. The method renders 82 FPS at 800×800 on an RTX 3090 GPU.
  • Native 4D Gaussians: Yang et al. give every primitive a 4D mean and covariance over x, y, z, and time, with the 4D rotation built from a pair of quaternions. Color changes with viewing direction and time through 4D spherindrical harmonics, which multiply spherical harmonics by a Fourier series in time. On the Neural 3D Video benchmark the paper reports 114 FPS, against 36 FPS for the deformation-field method.

Slicing a native 4D Gaussian at time t is Gaussian conditioning: fixing t leaves a 3D Gaussian with a shifted center and a reduced covariance, and the Gaussian's 1D marginal over time scales its opacity. Gaussians whose temporal weight is negligible at t are skipped before rasterization. This PyTorch code slices one 4D Gaussian at three timestamps:

import torch

torch.manual_seed(0)
# One 4D Gaussian over (x, y, z, t): a mean and a covariance that couples position with time
mean = torch.tensor([0.0, 0.0, 0.0, 0.5])
factor = torch.randn(4, 4) * 0.3
cov = factor @ factor.T + 0.01 * torch.eye(4)

# Slicing at time t conditions the 4D Gaussian on t, leaving a 3D Gaussian to rasterize
for t in (0.1, 0.5, 0.9):
    center = mean[:3] + cov[:3, 3] / cov[3, 3] * (t - mean[3])
    cov_3d = cov[:3, :3] - torch.outer(cov[:3, 3], cov[3, :3]) / cov[3, 3]
    # The temporal marginal fades the Gaussian in and out around its mean time
    opacity_scale = torch.exp(-0.5 * (t - mean[3]) ** 2 / cov[3, 3])
    print(f"t={t}: center {center.numpy().round(2)}, opacity x{opacity_scale:.2f}, volume {cov_3d.det().sqrt():.4f}")

It prints a center of [0.23 -0.15 0.16] at t=0.1, [0. 0. 0.] at t=0.5, and [-0.23 0.15 -0.16] at t=0.9, with the opacity factor rising from 0.74 to 1.00 and back to 0.74 while the volume stays 0.1030. The conditional covariance does not depend on t, so each 4D Gaussian becomes a 3D Gaussian of fixed shape that slides along a straight line and fades in and out, and complex motion emerges from many short-lived Gaussians.

Moving objects carry most of the reconstruction error, so many pipelines separate a static background from dynamic foreground elements, and some give each moving object its own set of Gaussians. Ultralytics YOLO26 instance segmentation models running in tracking mode produce a mask for every person and vehicle in each frame under an ID that persists across the video, which marks which pixels belong to which moving object.

  • Per-frame 3D Gaussian splatting: Reconstructing every frame separately stores a full scene per frame and flickers between frames. 4DGS shares Gaussians across time, so a static background is stored once and moving parts stay temporally coherent.
  • Dynamic NeRFs: D-NeRF, HexPlane, and other dynamic neural radiance fields also map a canonical scene to each timestamp, but they evaluate a neural field at many points along every camera ray, which renders far more slowly than rasterizing Gaussians. The deformation-field 4DGS design follows the same canonical-plus-deformation idea with rasterized Gaussians.
  • Dynamic 3D Gaussians: Jonathon Luiten and colleagues keep each Gaussian's color, opacity, and size fixed and let only its position and rotation change, with local rigidity constraints. Dense 6-degree-of-freedom point tracking of every scene element falls out of the reconstruction.
  • Video generation: Generative video models invent new footage from a prompt. 4DGS reconstructs an event that cameras recorded and re-renders it from new viewpoints and moments.

Real-World Applications#

  • Volumetric video for VR and AR: Performances, sports moments, and interviews recorded with camera rigs become free-viewpoint clips that viewers can walk around in a headset or browser.
  • Telepresence and avatars: Multi-camera captures of people produce animated, photorealistic 3D representations for remote communication and digital doubles.
  • Driving simulation: Autonomous vehicle teams reconstruct recorded drives with moving traffic and re-render them from shifted cameras to test perception systems. Street Gaussians models each tracked vehicle as its own set of Gaussians that moves with optimized tracked poses, trains in about half an hour, and renders street scenes at 135 FPS at 1066×1600 resolution.

Explore solutions

Computer vision in sports

Computer vision in sports

Discover how Ultralytics YOLO powers sports vision with player and ball tracking, performance analytics, coaching insights, and athlete rehabilitation.
Learn more
Computer vision for aerial imagery

Computer vision for aerial imagery

Turn drone and aerial imagery into real-time insights for agriculture, aquaculture, conservation, and geospatial analysis with Ultralytics YOLO.
Learn more
Computer vision in aerospace

Computer vision in aerospace

Apply computer vision in aerospace with Ultralytics YOLO for aircraft inspection, runway FOD detection, airport ground operations, and composite defect detection.
Learn more
Computer vision in security

Computer vision in security

Protect every site with Ultralytics YOLO models. Vision AI powers perimeter monitoring, threat detection, license-plate recognition, and workplace safety.
Learn more
Computer vision in robotics

Computer vision in robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Computer vision in logistics

Computer vision in logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Computer vision in retail

Computer vision in retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Computer vision in healthcare

Computer vision in healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Computer vision in manufacturing

Computer vision in manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Computer vision in automotive

Computer vision in automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Computer vision in agriculture

Computer vision in agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more

Let's build the future of AI together!

Begin your journey with the future of machine learning