{
 "id": "2d-gaussian-splatting",
 "title": "2D Gaussian Splatting",
 "aliases": [
  "2DGS"
 ],
 "domain": "capture",
 "subdomain": "splatting",
 "stage": "capture",
 "realtime": "interactive",
 "platforms": [
  "cuda",
  "desktop-gpu"
 ],
 "year_introduced": 2024,
 "inputs": [
  "photos",
  "camera-poses",
  "point-cloud"
 ],
 "outputs": [
  "gaussians",
  "mesh",
  "depth"
 ],
 "style": "photoreal",
 "dynamic": "static",
 "summary": "Replaces 3D ellipsoids with oriented flat 2D Gaussian discs, ray-splat intersection and depth/normal regularisers so that splats form a thin, view-consistent surface that can be meshed.",
 "how_it_works": "Each primitive is an elliptical disc with a well-defined normal, so the field is a collection of surfels instead of volumetric blobs. Rendering intersects each pixel's ray with the disc plane to compute exact local coordinates and evaluate the Gaussian there, avoiding the perspective approximation of 3DGS and giving view-consistent depth. Two regularisers shape geometry: a depth distortion loss pulls overlapping splats along a ray together, and a normal consistency loss aligns each splat's normal with the gradient of the rendered depth. Rendered depth maps from training views are fused with truncated signed distance integration and meshed with marching cubes, yielding surfaces far faster than neural SDF methods.",
 "when_to_use": "Choose it when you need a mesh or accurate depth from a photo capture in minutes. Prefer `gaussian-splatting-3dgs` when pure view synthesis suffices, `neuralangelo` for maximum detail if hours of training are acceptable, and `3dgut` when you need fisheye or secondary rays with a similar Gaussian pipeline.",
 "cost": {
  "class": "medium",
  "notes": "Training in tens of minutes on one GPU; slightly slower than 3DGS due to the regularisers."
 },
 "failure_modes": [
  "Slightly lower novel-view PSNR than 3DGS due to the surface constraints",
  "Reflective and transparent materials still produce holes or spurious sheets",
  "Thin features like wires can be lost to the regularisers",
  "TSDF fusion adds voxel-resolution smoothing to the final mesh"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "arxiv:2403.17888",
   "type": "paper",
   "title": "2D Gaussian Splatting for Geometrically Accurate Radiance Fields",
   "authors": [
    "Binbin Huang",
    "Zehao Yu",
    "Anpei Chen",
    "Andreas Geiger",
    "Shenghua Gao"
   ],
   "year": 2024,
   "venue": "arXiv preprint (cs.CV)",
   "url": "https://arxiv.org/abs/2403.17888",
   "ids": {
    "arxiv": "2403.17888",
    "doi": "10.1145/3641519.3657428"
   },
   "license": null,
   "extra": {
    "arxiv_version": "3",
    "category": "cs.CV"
   },
   "provenance": {
    "title": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2403.17888",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2403.17888",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2403.17888",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2403.17888",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2403.17888",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "huang2024gaussian"
  },
  {
   "role": "implementation",
   "key": "gh:hbb1/2d-gaussian-splatting",
   "type": "code",
   "title": "hbb1/2d-gaussian-splatting",
   "description": "[SIGGRAPH'24] 2D Gaussian Splatting for Geometrically Accurate Radiance Fields",
   "authors": [
    "hbb1"
   ],
   "year": 2024,
   "venue": "GitHub",
   "url": "https://github.com/hbb1/2d-gaussian-splatting",
   "ids": {
    "repo": "hbb1/2d-gaussian-splatting"
   },
   "license": "NOASSERTION",
   "extra": {
    "stars": 3344,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2026-08-25T18:36:57Z",
    "language": "Python",
    "homepage": "https://surfsplatting.github.io",
    "license_name": "Other"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/hbb1/2d-gaussian-splatting",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/hbb1/2d-gaussian-splatting",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/hbb1/2d-gaussian-splatting",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/hbb1/2d-gaussian-splatting",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/hbb1/2d-gaussian-splatting",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/hbb1/2d-gaussian-splatting",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "hbb2024hbb1"
  }
 ],
 "presets": [
  {
   "id": "2d-gaussian-splatting-live",
   "title": "2D Gaussian Splatting — oriented flat elliptical surfel disks (left) vs ray-splat blended surface (right)",
   "runtime": "glsl-fragment",
   "params": {
    "P_SURFEL_RAD": 0.22,
    "P_ASPECT": 1.55,
    "P_ROT_SPEED": 0.7,
    "P_SPLIT": 0.48
   },
   "basis": "original",
   "license_note": "MIT — written for this index.",
   "code": "const float P_SURFEL_RAD = 0.22; // P Surfel Disk Size [0.10, 0.34, 0.01]\nconst float P_ASPECT = 1.55; // P Anisotropy Ratio [1.0, 2.5, 0.05]\nconst float P_ROT_SPEED = 0.70; // P Orbit Speed [0.0, 2.2, 0.05]\nconst float P_SPLIT = 0.48; // P Disks / 2DGS Split [0.0, 1.0, 0.02]\n\nmat2 rot2(float a) { float c = cos(a), s = sin(a); return mat2(c, -s, s, c); }\n\n// Fibonacci-sphere distribution of 36 flat oriented 2D Gaussian surfels tangent to an egg/vase surface\nvoid get2DSurfel(int idx, float spin, float rad, float aspect, out vec3 center, out vec3 tU, out vec3 tV, out vec3 normal, out vec3 col) {\n  float fi = float(idx);\n  float N = 36.0;\n  float y = 1.0 - (fi + 0.5) / N * 2.0;\n  float rHoriz = sqrt(max(1.0 - y * y, 0.0));\n  float phi = fi * 2.3999632; // golden angle\n\n  vec3 dir = vec3(cos(phi) * rHoriz, y, sin(phi) * rHoriz);\n  // Sculpted organic surface radius r(dir)\n  float surfR = 0.62 + 0.10 * cos(y * 3.1415926 * 2.0) + 0.05 * cos(phi * 3.0);\n  center = dir * surfR;\n  normal = normalize(dir);\n\n  // Local orthonormal tangent basis (tU, tV) spanning the flat 2D Gaussian disk!\n  vec3 upRef = (abs(normal.y) < 0.92) ? vec3(0.0, 1.0, 0.0) : vec3(1.0, 0.0, 0.0);\n  vec3 u0 = normalize(cross(upRef, normal));\n  vec3 v0 = cross(normal, u0);\n\n  // Rotate shape in world space\n  center.xz = rot2(spin * 0.62) * center.xz;\n  center.yz = rot2(0.32) * center.yz;\n  normal.xz = rot2(spin * 0.62) * normal.xz;\n  normal.yz = rot2(0.32) * normal.yz;\n  u0.xz = rot2(spin * 0.62) * u0.xz;\n  u0.yz = rot2(0.32) * u0.yz;\n  v0.xz = rot2(spin * 0.62) * v0.xz;\n  v0.yz = rot2(0.32) * v0.yz;\n\n  tU = u0 * (rad * aspect);\n  tV = v0 * (rad / max(aspect, 0.5));\n  col = 0.52 + 0.42 * cos(phi * 0.5 + y * 2.2 + vec3(0.0, 2.094, 4.188));\n}\n\nvec3 aces(vec3 x) {\n  x = max(x, 0.0);\n  return (x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14);\n}\n\nvoid mainImage(out vec4 fragColor, in vec2 fragCoord) {\n  vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;\n  float screenX = fragCoord.x / max(iResolution.x, 1.0);\n  float split = clamp(P_SPLIT, 0.0, 1.0);\n  bool isBlended = screenX >= split;\n  float rad = clamp(P_SURFEL_RAD, 0.08, 0.36);\n  float aspect = clamp(P_ASPECT, 1.0, 2.6);\n  float spin = iTime * max(P_ROT_SPEED, 0.0);\n\n  vec3 ro = vec3(0.0, 0.04, 2.38);\n  vec3 rd = normalize(vec3(uv, -1.55));\n  vec3 bg = mix(vec3(0.022, 0.032, 0.054), vec3(0.064, 0.084, 0.132), smoothstep(-0.55, 0.55, uv.y));\n\n  // Exact ray-plane intersection against all 36 oriented flat 2D Gaussian surfels (Huang et al. 2024!)\n  // Sort front-to-back using 4 depth slices so closer surfels occlude back-hemisphere surfels accurately\n  vec3 accum = vec3(0.0);\n  float T = 1.0;\n  float rimOverlay = 0.0;\n  vec3 lDir = normalize(vec3(0.56, 0.80, 0.55));\n\n  for (int pass = 0; pass < 4; pass++) {\n    float tMin = 1.30 + float(pass) * 0.42;\n    float tMax = tMin + 0.42;\n\n    for (int i = 0; i < 36; i++) {\n      vec3 c, tU, tV, n, baseC;\n      get2DSurfel(i, spin, rad, aspect, c, tU, tV, n, baseC);\n\n      // Exact perspective ray-splat plane intersection: t = dot(c - ro, n) / dot(rd, n)\n      float denom = dot(rd, n);\n      if (abs(denom) < 1e-4) continue;\n      float tHit = dot(c - ro, n) / denom;\n      if (tHit < tMin || tHit >= tMax) continue;\n      if (denom > 0.0) continue; // front-facing surfel culling\n\n      vec3 pHit = ro + rd * tHit;\n      vec3 rel = pHit - c;\n      // Local tangent-plane Gaussian coordinates (u, v)\n      float uCoord = dot(rel, tU) / max(dot(tU, tU), 1e-5);\n      float vCoord = dot(rel, tV) / max(dot(tV, tV), 1e-5);\n      float r2 = uCoord * uCoord + vCoord * vCoord;\n      if (r2 > 2.8) continue;\n\n      float diff = max(dot(n, lDir), 0.0);\n      float spec = pow(max(dot(n, normalize(lDir - rd)), 0.0), 36.0);\n      vec3 shaded = baseC * (0.28 + 0.82 * diff) + vec3(0.95) * spec * 0.42;\n\n      if (!isBlended) {\n        // Left: Crisp flat elliptical surfel disks showing tangent orientation & 1-sigma disk rims\n        float disk = smoothstep(1.05, 0.88, r2);\n        float rim = smoothstep(0.14, 0.02, abs(sqrt(max(r2, 0.0)) - 0.96));\n        float axes = max(smoothstep(0.08, 0.02, abs(uCoord)), smoothstep(0.08, 0.02, abs(vCoord))) * step(r2, 0.92);\n        vec3 dCol = mix(shaded, vec3(0.96, 0.98, 1.0), axes * 0.35);\n        accum += T * disk * 0.88 * dCol;\n        rimOverlay = max(rimOverlay, rim * T);\n        T *= (1.0 - disk * 0.88);\n      } else {\n        // Right: Smooth 2D Gaussian alpha blending exp(-0.5 * (u^2 + v^2)) with consistent surface normals\n        float g = exp(-1.25 * r2);\n        float alpha = clamp(g * 0.86, 0.0, 0.96);\n        accum += T * alpha * shaded;\n        T *= (1.0 - alpha);\n      }\n      if (T < 0.01) break;\n    }\n  }\n\n  vec3 col = accum + T * bg;\n  if (!isBlended) {\n    col = mix(col, vec3(0.98, 0.88, 0.38), rimOverlay * 0.78);\n  }\n\n  float sep = smoothstep(0.0035, 0.0008, abs(screenX - split));\n  col = mix(col, vec3(0.95, 0.97, 1.0), sep);\n\n  fragColor = vec4(pow(clamp(aces(col), 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);\n}",
   "execution_fidelity": "conceptual-diagram",
   "proof": {
    "kind": "rendered",
    "label": "rendered 2026-11-30",
    "ok": true,
    "proof": {
     "ok": true,
     "technique": "2d-gaussian-splatting",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-30T19:53:25.000Z",
     "renderer": "Headless EGL Tesla T4/PCIe/SSE2, OpenGL 3.30 Core, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.4854,
      "std": 0.2127,
      "min": 0.1741,
      "max": 0.9014
     },
     "image": "/specimens/2d-gaussian-splatting-live.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "gaussian-splatting-3dgs",
  "neus",
  "neuralangelo",
  "multi-view-stereo-patchmatch"
 ],
 "extends": [
  "gaussian-splatting-3dgs"
 ],
 "supersedes": [],
 "combines_with": [],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-29T15:51:27.588Z",
  "draft": "data/drafts/capture/2d-gaussian-splatting.json"
 },
 "solves": [
  "need a clean mesh out of a photo capture quickly",
  "splat scene depth looks inconsistent between viewing angles",
  "want accurate depth and surfaces from photos in minutes",
  "blobby splats don't form a thin solid surface"
 ],
 "authority": "Huang et al., 2024",
 "url": "https://texelatlas.vercel.app/t/2d-gaussian-splatting/",
 "execution_fidelity": "conceptual-diagram",
 "fidelity_label": "Visual Diagram",
 "benchmark_eligible": false,
 "gpu_weight": {
  "weight_x": 296.46,
  "tier": "extreme",
  "p50_ms": 9.1903,
  "p95_ms": 9.215,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 36,
  "preset_id": "2d-gaussian-splatting-live",
  "execution_fidelity": "conceptual-diagram",
  "fidelity_label": "Visual Diagram",
  "benchmark_eligible": false,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 255.87,
   "tier": "extreme",
   "p50_ms": 4.0684,
   "p95_ms": 4.1503,
   "speedup_x": 2.26,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 207.97,
   "tier": "extreme",
   "p50_ms": 5.9894,
   "p95_ms": 5.9919,
   "speedup_x": 1.53,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}