---
id: "gaussian-splatting-3dgs"
title: "3D Gaussian Splatting"
aliases: [3DGS, Gaussian splatting]
domain: "capture"
stage: "capture"
realtime: "realtime"
platforms: [cuda, webgl2, webgpu, desktop-gpu, mobile-gpu]
year_introduced: 2023
inputs: [photos, camera-poses, point-cloud]
outputs: [gaussians]
style: "photoreal"
dynamic: "static"
cost: "medium"
authority: "Kerbl et al., 2023"
url: "https://texelatlas.vercel.app/t/gaussian-splatting-3dgs/"
sources_verified_at: "2026-11-29"
---
# 3D Gaussian Splatting (Kerbl et al., 2023)

> Models a scene as millions of anisotropic 3D Gaussians with opacity and spherical-harmonic colour, optimised from photos and rendered by fast depth-sorted tile rasterisation.

## Reach for it when

- view captured scene in real time from new angles
- nerf renders too slowly for interactive viewing
- turn photos into a fast photoreal viewable scene
- need novel view synthesis at high frame rates
- photoreal capture playable on a gpu

## How it works

Initialise one Gaussian per sparse SfM point. Each carries a position, a covariance stored as scale and rotation, an opacity and spherical-harmonic coefficients for view-dependent colour. To render, each Gaussian is projected to a 2D ellipse using the local affine approximation of the perspective transform, binned into 16x16 screen tiles, sorted by depth per tile, and alpha-composited front to back. The whole pipeline is differentiable, so photometric L1 plus D-SSIM loss trains all parameters with Adam. During optimisation an adaptive density control step clones Gaussians in under-reconstructed regions, splits large ones, prunes near-transparent ones, and periodically resets opacity to shed floaters. The result renders at real-time rates at 1080p on a desktop GPU.

## When to use it

Choose it for real-time novel-view viewing of captured scenes. Prefer [Mip-Splatting](https://texelatlas.vercel.app/t/mip-splatting.md) when you need zoom-stable rendering without aliasing, [2D Gaussian Splatting](https://texelatlas.vercel.app/t/2d-gaussian-splatting.md) when you need accurate surfaces, [StopThePop (Sorted Gaussian Splatting)](https://texelatlas.vercel.app/t/stopthepop.md) for popping-free sorting, and [Neuralangelo](https://texelatlas.vercel.app/t/neuralangelo.md) or [NeuS](https://texelatlas.vercel.app/t/neus.md) if the deliverable is a mesh. Prefer [Instant NGP (Multiresolution Hash Encoding)](https://texelatlas.vercel.app/t/instant-ngp.md) when a CUDA-only, volumetric field is acceptable.

## Cost

medium — Training takes tens of minutes on one desktop GPU for typical scenes; rendering is real time but memory scales with Gaussian count (millions per scene).
Measured GPU Weight: 214.53× baseline (extreme) — 6.6504 ms median / 6.7367 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 197.4× baseline (extreme) — 3.1386 ms median (2.12× faster on L4).
Ampere A100 scaling: 151.47× baseline (extreme) — 4.3622 ms median (1.52× faster on A100).

## Failure modes

- Popping and view-inconsistency from per-tile depth sorting of overlapping Gaussians
- Aliasing and dilation when zooming out or changing resolution relative to training
- Floaters and needle-like Gaussians in poorly observed regions
- Geometry is not a clean surface, so meshing and relighting are unreliable
- Large VRAM and file sizes, often hundreds of MB per scene

## Engine support

- babylonjs: builtin — `BABYLON.GaussianSplattingMesh (loads .splat/.ply/.spz via SceneLoader)` (evidence: https://github.com/BabylonJS/Babylon.js/blob/9.38.0/packages/dev/core/src/Meshes/GaussianSplatting/gaussianSplattingMesh.pure.ts, checked 2026-12-01)
- blender: plugin — `Blender add-on: 3DGS Render by KIRI Engine` (evidence: https://github.com/Kiri-Innovation/3dgs-render-blender-addon, checked 2026-12-01) — Imports and renders trained splats; training is external.
- godot: plugin — `Install the gdgs addon (ReconWorldLab/godot-gaussian-splatting)` (evidence: https://github.com/ReconWorldLab/godot-gaussian-splatting, checked 2026-12-01) — Third-party compute-based 3DGS renderer.
- threejs: official — `import { GaussianSplat } from 'three/addons/objects/GaussianSplat.js'` (evidence: https://github.com/mrdoob/three.js/blob/r187/examples/jsm/objects/GaussianSplat.js, checked 2026-12-01) — WebGPURenderer.
- unity: plugin — `git url: https://github.com/aras-p/UnityGaussianSplatting.git?path=/package` (evidence: https://github.com/aras-p/UnityGaussianSplatting, checked 2026-12-01) — Third-party renderer (aras-p), URP, HDRP and built-in.
- unreal: plugin — `Gaussian Splatting for Unreal Engine plugin (third-party)` (evidence: https://github.com/Italink/GaussianSplattingForUnrealEngine, checked 2026-12-01)

## Dataflow

- Inputs: photos, camera-poses, point-cloud
- Outputs: gaussians
- Platforms: cuda, webgl2, webgpu, desktop-gpu, mobile-gpu

## Presets

### Official 3DGS training hyper-parameters (json-params; parameter preset)

```json
{
  "iterations": 30000,
  "sh_degree": 3,
  "position_lr_init": 0.00016,
  "position_lr_final": 0.0000016,
  "feature_lr": 0.0025,
  "opacity_lr": 0.025,
  "scaling_lr": 0.005,
  "rotation_lr": 0.001,
  "percent_dense": 0.01,
  "lambda_dssim": 0.2,
  "densification_interval": 100,
  "opacity_reset_interval": 3000,
  "densify_from_iter": 500,
  "densify_until_iter": 15000,
  "densify_grad_threshold": 0.0002
}
```

Attribution: Defaults from graphdeco-inria/gaussian-splatting (Inria/MPI Gaussian-Splatting licence, non-commercial research use; see repo LICENSE.md).; basis: 2

### 3D Gaussian Splatting — 2-sigma EWA covariance ellipses (left) vs sorted SH alpha-blended splats (right) (glsl-fragment; rendered 2026-11-30)

```json
{
  "P_SPLAT_SCALE": 1,
  "P_SH_GAIN": 1,
  "P_ROT_SPEED": 0.75,
  "P_SPLIT": 0.48
}
```

```glsl
const float P_SPLAT_SCALE = 1.0; // P Gaussian Scale [0.45, 1.8, 0.05]
const float P_SH_GAIN = 1.0; // P View-Dep SH [0.0, 2.0, 0.05]
const float P_ROT_SPEED = 0.75; // P Orbit Speed [0.0, 2.2, 0.05]
const float P_SPLIT = 0.48; // P Ellipses / 3DGS Split [0.0, 1.0, 0.02]

mat2 rot2(float a) { float c = cos(a), s = sin(a); return mat2(c, -s, s, c); }

// 3D anisotropic Gaussian primitive i arranged on a sculpted twisted torus-knot + luminous core
void getGaussian(int idx, float spin, float scaleG, out vec3 posView, out vec3 axisU, out vec3 axisV, out vec3 shBase, out vec3 shDir, out float opac) {
  float fi = float(idx);
  float N = 32.0;
  float u = fi / N * 6.2831853;

  // 24 anisotropic elongated Gaussians tracing a 3D trefoil ribbon + 8 inner core splats
  vec3 pObj, tDir, nDir;
  vec2 radii;
  if (idx < 24) {
    float a = fi / 24.0 * 6.2831853;
    float rMaj = 0.56 + 0.14 * cos(a * 3.0);
    pObj = vec3(cos(a) * rMaj, 0.24 * sin(a * 3.0), sin(a) * rMaj);
    tDir = normalize(vec3(-sin(a) * rMaj, 0.72 * cos(a * 3.0), cos(a) * rMaj));
    nDir = normalize(cross(tDir, vec3(0.0, 1.0, 0.15)));
    radii = vec2(0.18, 0.068) * scaleG;
    shBase = 0.52 + 0.45 * cos(a + vec3(0.0, 2.094, 4.188));
    shDir = vec3(0.35, 0.18, -0.28);
    opac = 0.76;
  } else {
    float b = float(idx - 24) / 8.0 * 6.2831853;
    pObj = vec3(cos(b) * 0.20, sin(b * 2.0) * 0.16, sin(b) * 0.20);
    tDir = normalize(vec3(-sin(b), cos(b), cos(b)));
    nDir = normalize(cross(tDir, vec3(0.1, 0.9, 0.2)));
    radii = vec2(0.14, 0.10) * scaleG;
    shBase = vec3(0.95, 0.78, 0.34);
    shDir = vec3(-0.22, 0.32, 0.25);
    opac = 0.84;
  }

  // Camera view transform W (orbit around object)
  pObj.xz = rot2(spin * 0.65) * pObj.xz;
  pObj.yz = rot2(0.45) * pObj.yz;
  tDir.xz = rot2(spin * 0.65) * tDir.xz;
  tDir.yz = rot2(0.45) * tDir.yz;
  nDir.xz = rot2(spin * 0.65) * nDir.xz;
  nDir.yz = rot2(0.45) * nDir.yz;

  posView = pObj + vec3(0.0, 0.0, -2.35);
  axisU = tDir * radii.x;
  axisV = nDir * radii.y;
}

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 isBlended = screenX >= split;
  float scaleG = clamp(P_SPLAT_SCALE, 0.35, 2.0);
  float shGain = clamp(P_SH_GAIN, 0.0, 2.2);
  float spin = iTime * max(P_ROT_SPEED, 0.0);
  float focal = 1.55;

  vec3 bg = mix(vec3(0.022, 0.030, 0.052), vec3(0.062, 0.082, 0.132), smoothstep(-0.55, 0.55, uv.y));
  // Subtle perspective reference grid
  vec3 rd = normalize(vec3(uv, -focal));
  if (rd.y < -0.02) {
    float tf = (-0.65) / rd.y;
    if (tf > 0.0 && tf < 14.0) {
      vec3 pf = vec3(0.0, 0.0, 0.0) + rd * tf;
      vec2 gf = abs(fract(pf.xz * 2.0 - 0.5) - 0.5);
      float gl = smoothstep(0.04, 0.008, min(gf.x, gf.y)) * exp(-tf * 0.28);
      bg += vec3(0.08, 0.14, 0.24) * gl;
    }
  }

  // Approximate depth-ordered front-to-back compositing using 4 depth buckets (exact 3DGS front-to-back T_i update)
  vec3 accumCol = vec3(0.0);
  float trans = 1.0;
  float ellipseRing = 0.0;
  float centerDot = 0.0;

  for (int pass = 0; pass < 4; pass++) {
    float zLo = -1.45 - float(pass) * 0.45;
    float zHi = zLo - 0.45;

    for (int i = 0; i < 32; i++) {
      vec3 pV, aU, aV, sh0, sh1;
      float opac;
      getGaussian(i, spin, scaleG, pV, aU, aV, sh0, sh1, opac);

      if (pass == 0 && pV.z <= zHi) continue;
      if (pass == 1 && (pV.z > zLo || pV.z <= zHi)) continue;
      if (pass == 2 && (pV.z > zLo || pV.z <= zHi)) continue;
      if (pass == 3 && pV.z > zLo) continue;

      float invZ = 1.0 / max(-pV.z, 0.25);
      vec2 mean2D = pV.xy * (focal * invZ);

      // EWA perspective Jacobian J = focal/z * [1, 0, -x/z; 0, 1, -y/z] projecting 3D covariance axes -> 2D!
      vec2 jU = (aU.xy - pV.xy * (aU.z * invZ)) * (focal * invZ);
      vec2 jV = (aV.xy - pV.xy * (aV.z * invZ)) * (focal * invZ);

      // 2x2 projected covariance Sigma_2D = jU*jU^T + jV*jV^T + low-pass eps*I
      float eps = 0.00018;
      float s00 = jU.x * jU.x + jV.x * jV.x + eps;
      float s01 = jU.x * jU.y + jV.x * jV.y;
      float s11 = jU.y * jU.y + jV.y * jV.y + eps;
      float det = max(s00 * s11 - s01 * s01, 1e-8);
      float invDet = 1.0 / det;

      // Mahalanobis squared distance d^T Sigma_2D^-1 d
      vec2 d = uv - mean2D;
      float m2 = (s11 * d.x * d.x - 2.0 * s01 * d.x * d.y + s00 * d.y * d.y) * invDet;
      if (m2 > 9.5) continue;

      // Evaluate spherical-harmonic view-dependent color c(d) = SH0 + SH1 * dot(viewDir, axis)
      vec3 viewDir = normalize(pV);
      vec3 splatCol = clamp(sh0 + sh1 * dot(viewDir, normalize(aU)) * shGain + 0.16 * shGain * viewDir.y, 0.04, 1.8);

      float g = exp(-0.5 * m2);
      float alpha = clamp(opac * g, 0.0, 0.98);

      if (!isBlended) {
        // Left: visualize 1.8-sigma EWA projected covariance ellipses & Gaussian means
        float ring = smoothstep(0.28, 0.06, abs(sqrt(max(m2, 0.0)) - 1.65));
        ellipseRing = max(ellipseRing, ring * trans);
        centerDot = max(centerDot, smoothstep(0.014, 0.005, length(d)));
        accumCol += trans * (alpha * 0.42) * splatCol;
        trans *= (1.0 - alpha * 0.42);
      } else {
        // Right: full 3DGS front-to-back alpha compositing C += T * alpha * c; T *= (1 - alpha)
        accumCol += trans * alpha * splatCol;
        trans *= (1.0 - alpha);
      }
      if (trans < 0.01) break;
    }
  }

  vec3 col = accumCol + trans * bg;
  if (!isBlended) {
    col += vec3(0.32, 0.92, 1.0) * ellipseRing * 0.72;
    col = mix(col, vec3(1.0, 0.92, 0.44), centerDot * 0.88);
  }

  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.

## Lineage

- extended by [2D Gaussian Splatting](https://texelatlas.vercel.app/t/2d-gaussian-splatting.md)
- extended by [3D Gaussian Ray Tracing (3DGRT)](https://texelatlas.vercel.app/t/3d-gaussian-ray-tracing.md)
- extended by [3DGUT (Unscented Transform Gaussian Splatting)](https://texelatlas.vercel.app/t/3dgut.md)
- extended by [4D Gaussian Splatting](https://texelatlas.vercel.app/t/4d-gaussian-splatting.md)
- extended by [DreamGaussian](https://texelatlas.vercel.app/t/dreamgaussian.md)
- extended by [Hierarchical Binary-Tree 3DGS LOD & Paged Streaming](https://texelatlas.vercel.app/t/hierarchical-binary-tree-3dgs-lod.md)
- extended by [Mip-Splatting](https://texelatlas.vercel.app/t/mip-splatting.md)
- extended by [Self-Organizing Gaussians (SOG) 2D Codebook Image Compression](https://texelatlas.vercel.app/t/self-organizing-gaussians-compression.md)
- extended by [4× MSAA Sort-Free Stochastic Gaussian Splatting](https://texelatlas.vercel.app/t/sort-free-stochastic-splatting-msaa.md)
- extended by [StopThePop (Sorted Gaussian Splatting)](https://texelatlas.vercel.app/t/stopthepop.md)

## Combines with

- [Structure-from-Motion (COLMAP)](https://texelatlas.vercel.app/t/structure-from-motion-colmap.md): COLMAP supplies the posed cameras and sparse points that seed the Gaussians.
- [Segment Anything (SAM)](https://texelatlas.vercel.app/t/segment-anything.md): SAM masks can be lifted to label or isolate Gaussians for editing.

## Combination ideas

- [Far LOD for captured splat objects](https://texelatlas.vercel.app/ideas/splat-captures-impostor-lod/)
- [Splats as world-anchored brush strokes](https://texelatlas.vercel.app/ideas/splats-as-brush-strokes/)
- [Sort-free neural-denoised LOD Gaussian splats](https://texelatlas.vercel.app/ideas/stochastic-lod-neural-splats/)
- [Freeze a generated world into splats](https://texelatlas.vercel.app/ideas/world-model-walkthrough-to-splats/)

## Sources

1. [primary] Bernhard Kerbl, Georgios Kopanas, Thomas Leimkuehler, George Drettakis (2023) 3D Gaussian Splatting for Real-Time Radiance Field Rendering. ACM Transactions on Graphics. https://doi.org/10.1145/3592433 (verified via crossref on 2026-11-29)
2. [primary] Bernhard Kerbl, Georgios Kopanas, Thomas Leimkühler, George Drettakis (2023) 3D Gaussian Splatting for Real-Time Radiance Field Rendering. ACM Transactions on Graphics, volume 42(4), July 2023. https://arxiv.org/abs/2308.04079 (verified via arxiv on 2026-11-29)
3. [implementation] graphdeco-inria (2023) graphdeco-inria/gaussian-splatting. https://github.com/graphdeco-inria/gaussian-splatting License: NOASSERTION. (verified via github on 2026-11-29)
4. [tutorial] Kerbl, Kopanas, Leimkuehler, Drettakis 3D Gaussian Splatting for Real-Time Radiance Field Rendering (project page). repo-sam.inria.fr. https://repo-sam.inria.fr/fungraph/3d-gaussian-splatting (verified via http on 2026-11-29)

## Cite this entry

Texel. "3D Gaussian Splatting." https://texelatlas.vercel.app/t/gaussian-splatting-3dgs/ (accessed 2026-12-01).
