{
 "id": "3d-gaussian-ray-tracing",
 "title": "3D Gaussian Ray Tracing (3DGRT)",
 "aliases": [
  "3DGRT",
  "ray traced Gaussians"
 ],
 "domain": "capture",
 "subdomain": "splat ray tracing",
 "stage": "capture",
 "realtime": "realtime",
 "platforms": [
  "cuda",
  "desktop-gpu"
 ],
 "year_introduced": 2024,
 "inputs": [
  "gaussians",
  "camera-poses"
 ],
 "outputs": [
  "ldr-image",
  "radiance"
 ],
 "style": "photoreal",
 "dynamic": "dynamic",
 "summary": "Renders trained Gaussian particles by tracing rays through a BVH over them instead of projecting and sorting splats, which allows fisheye and rolling-shutter cameras, reflections and refraction.",
 "how_it_works": "Each Gaussian is wrapped in a bounding proxy (a stretched icosahedron) and put in an RTX-accelerated BVH. For each camera ray, a hardware ray tracing pass collects the next k particles along the ray in chunks, each one is evaluated analytically for its maximum response along the ray, and their colour and opacity are alpha-composited front to back in sorted order. Because there is no projection to screen space, any camera model works, and rays can be spawned from hit points for secondary effects such as mirror reflections, refractions and shadows, which the paper does by inserting meshes alongside the particles. Training uses the same differentiable principle with tracing replacing rasterisation. Rasterising and tracing differ in sorting order, so the particle blending is per ray and exact.",
 "when_to_use": "Choose it when the splat scene must be seen through non-pinhole cameras (fisheye, distorted lenses, rolling shutter), or composed with reflective or refractive meshes. Prefer `gaussian-splatting-3dgs` rasterisation for the fastest standard novel-view rendering, `3dgut` when you want camera distortion handled inside a rasteriser via unscented transforms, and `stopthepop` to fix popping from per-tile sorting.",
 "cost": {
  "class": "heavy",
  "notes": "Slower than rasterisation but interactive on RTX-class GPUs per the authors; needs hardware ray tracing and more memory for the BVH."
 },
 "failure_modes": [
  "Requires hardware ray tracing and CUDA/OptiX, so there is no browser or mobile path",
  "BVH rebuilds are needed when Gaussians move, so highly dynamic scenes lose speed",
  "Proxy-geometry bounds that are too tight clip the tails of Gaussians; too loose causes extra hits and slowdowns",
  "Reflections of splats show the baked-in lighting and floaters of the reconstruction, not true materials"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "arxiv:2407.07090",
   "type": "paper",
   "title": "3D Gaussian Ray Tracing: Fast Tracing of Particle Scenes",
   "authors": [
    "Nicolas Moenne-Loccoz",
    "Ashkan Mirzaei",
    "Or Perel",
    "Riccardo de Lutio",
    "Janick Martinez Esturo",
    "Gavriel State",
    "Sanja Fidler",
    "Nicholas Sharp",
    "Zan Gojcic"
   ],
   "year": 2024,
   "venue": "arXiv preprint (cs.GR)",
   "url": "https://arxiv.org/abs/2407.07090",
   "ids": {
    "arxiv": "2407.07090"
   },
   "license": null,
   "extra": {
    "arxiv_version": "3",
    "category": "cs.GR"
   },
   "provenance": {
    "title": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2407.07090",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2407.07090",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2407.07090",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2407.07090",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2407.07090",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "moenneloccoz2024gaussian"
  },
  {
   "role": "implementation",
   "key": "gh:nv-tlabs/3dgrut",
   "type": "code",
   "title": "nv-tlabs/3dgrut",
   "description": "Ray tracing and hybrid rasterization of Gaussian particles",
   "authors": [
    "nv-tlabs"
   ],
   "year": 2025,
   "venue": "GitHub",
   "url": "https://github.com/nv-tlabs/3dgrut",
   "ids": {
    "repo": "nv-tlabs/3dgrut"
   },
   "license": "Apache-2.0",
   "extra": {
    "stars": 2517,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2026-11-06T19:31:45Z",
    "language": "Python",
    "homepage": null,
    "license_name": "Apache License 2.0"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/nv-tlabs/3dgrut",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/nv-tlabs/3dgrut",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/nv-tlabs/3dgrut",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/nv-tlabs/3dgrut",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/nv-tlabs/3dgrut",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/nv-tlabs/3dgrut",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "nvtlabs2025tlabs"
  }
 ],
 "presets": [
  {
   "id": "3d-gaussian-ray-tracing-live",
   "title": "3DGRT — rasterized pinhole splats (left) vs ray-traced 3D Gaussians with mirror reflections & fisheye (right)",
   "runtime": "glsl-fragment",
   "params": {
    "P_FISHEYE": 0.32,
    "P_SPLAT_R": 0.16,
    "P_ROT_SPEED": 0.65,
    "P_SPLIT": 0.46
   },
   "basis": "original",
   "license_note": "MIT — written for this index.",
   "code": "const float P_FISHEYE = 0.32; // P Lens Distortion [0.0, 0.8, 0.02]\nconst float P_SPLAT_R = 0.16; // P Gaussian Radius [0.08, 0.28, 0.01]\nconst float P_ROT_SPEED = 0.65; // P Orbit Speed [0.0, 2.2, 0.05]\nconst float P_SPLIT = 0.46; // P Raster / 3DGRT 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// Trace a ray through an orbital ring of 16 colored 3D Gaussian particles (exact ray-Gaussian max response)\nvec4 traceGaussianCloud(vec3 ro, vec3 rd, float spin, float rad) {\n  vec3 acc = vec3(0.0);\n  float T = 1.0;\n  float invR2 = 1.0 / max(rad * rad, 1e-4);\n  for (int i = 0; i < 16; i++) {\n    float fi = float(i);\n    float ang = fi * 6.2831853 / 16.0 + spin * 0.6;\n    float ringR = 0.92 + 0.14 * sin(fi * 3.0);\n    vec3 c = vec3(cos(ang) * ringR, 0.22 * sin(fi * 2.0 + spin), sin(ang) * ringR);\n    vec3 oc = c - ro;\n    float tMax = dot(oc, rd);\n    if (tMax > 0.05) {\n      vec3 perp = oc - rd * tMax;\n      // Anisotropic stretch tangent to orbital ring\n      vec3 tang = normalize(vec3(-sin(ang), 0.15, cos(ang)));\n      float dTang = dot(perp, tang);\n      vec3 dNorm = perp - tang * dTang;\n      float m2 = (dot(dNorm, dNorm) * 1.45 + dTang * dTang * 0.42) * invR2;\n      float g = exp(-m2 * 1.6);\n      if (g > 0.01) {\n        float a = clamp(g * 0.85, 0.0, 0.94);\n        vec3 gCol = 0.52 + 0.48 * cos(fi * 0.42 + vec3(0.0, 2.1, 4.2));\n        gCol *= (0.85 + 0.45 * g);\n        acc += T * a * gCol;\n        T *= (1.0 - a);\n        if (T < 0.02) break;\n      }\n    }\n  }\n  return vec4(acc, 1.0 - T);\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 isGRT = screenX >= split;\n  float fish = clamp(P_FISHEYE, 0.0, 0.9);\n  float rad = clamp(P_SPLAT_R, 0.06, 0.30);\n  float spin = iTime * max(P_ROT_SPEED, 0.0);\n\n  vec3 ro = vec3(0.0, 0.35, 2.55);\n  // 3DGRT natively traces curved fisheye camera rays; pinhole rasterization assumes linear projection\n  vec2 pUV = uv;\n  if (isGRT) {\n    float r2 = dot(uv, uv);\n    pUV = uv * (1.0 + fish * r2 * 0.85);\n  }\n  vec3 rd = normalize(vec3(pUV - vec2(0.0, 0.06), -1.48));\n\n  vec3 bg = mix(vec3(0.022, 0.030, 0.052), vec3(0.068, 0.095, 0.155), smoothstep(-0.55, 0.55, rd.y));\n  // Checkerboard studio floor at y = -0.58\n  float tFloor = 1e5;\n  if (rd.y < -0.01) {\n    float tf = (-0.58 - ro.y) / rd.y;\n    if (tf > 0.1 && tf < 16.0) tFloor = tf;\n  }\n\n  // Central mirror-chrome sphere at origin (R = 0.44)\n  float b = dot(ro, rd);\n  float c = dot(ro, ro) - 0.44 * 0.44;\n  float disc = b * b - c;\n  float tSph = (disc > 0.0 && (-b - sqrt(disc)) > 0.05) ? (-b - sqrt(disc)) : 1e5;\n\n  // Background scene (floor or sky)\n  vec3 sceneCol = bg;\n  if (tFloor < tSph && tFloor < 1e4) {\n    vec3 fp = ro + rd * tFloor;\n    vec2 chk = floor(fp.xz * 2.2);\n    float pat = mod(chk.x + chk.y, 2.0);\n    vec3 fAlb = mix(vec3(0.08, 0.10, 0.15), vec3(0.18, 0.22, 0.30), pat);\n    // Secondary reflected Gaussian glow on floor in 3DGRT mode\n    if (isGRT) {\n      vec3 reflD = reflect(rd, vec3(0.0, 1.0, 0.0));\n      vec4 rGauss = traceGaussianCloud(fp + vec3(0.0, 0.02, 0.0), reflD, spin, rad * 1.15);\n      fAlb += rGauss.rgb * 0.48;\n    }\n    sceneCol = mix(fAlb, bg, 1.0 - exp(-tFloor * 0.12));\n  }\n\n  if (tSph < tFloor && tSph < 1e4) {\n    vec3 hp = ro + rd * tSph;\n    vec3 n = normalize(hp);\n    vec3 lDir = normalize(vec3(0.55, 0.85, 0.45));\n    float spec = pow(max(dot(n, normalize(lDir - rd)), 0.0), 64.0);\n    float fres = 0.15 + 0.85 * pow(1.0 - max(dot(n, -rd), 0.0), 3.0);\n    if (isGRT) {\n      // Exact secondary ray reflection through the 3D Gaussian BVH!\n      vec3 reflD = reflect(rd, n);\n      vec4 reflG = traceGaussianCloud(hp + n * 0.01, reflD, spin, rad);\n      vec3 env = mix(vec3(0.05, 0.08, 0.14), vec3(0.24, 0.32, 0.46), smoothstep(-0.3, 0.6, reflD.y));\n      sceneCol = mix(env, reflG.rgb, reflG.a) * (0.45 + 0.55 * fres) + vec3(1.0) * spec * 0.9;\n    } else {\n      // Pinhole rasterizer cannot trace secondary rays into the 3DGS splat buffer\n      float diff = max(dot(n, lDir), 0.0);\n      sceneCol = vec3(0.16, 0.20, 0.28) * (0.35 + 0.65 * diff) + vec3(0.8) * spec * 0.55;\n    }\n  }\n\n  // Primary ray 3D Gaussian particles composited over scene\n  vec4 primG = traceGaussianCloud(ro, rd, spin, rad);\n  vec3 col = primG.rgb + (1.0 - primG.a) * sceneCol;\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": "3d-gaussian-ray-tracing",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-30T20:35:43.000Z",
     "renderer": "Headless EGL Tesla T4/PCIe/SSE2, OpenGL 3.30 Core, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.4325,
      "std": 0.1523,
      "min": 0.2257,
      "max": 0.9095
     },
     "image": "/specimens/3d-gaussian-ray-tracing-live.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "gaussian-splatting-3dgs",
  "3dgut",
  "stopthepop",
  "path-tracing"
 ],
 "extends": [
  "gaussian-splatting-3dgs"
 ],
 "supersedes": [],
 "combines_with": [
  {
   "id": "3dgut",
   "why": "3DGUT shares the 3dgrut codebase and gives a rasterisation path for distorted cameras that complements the traced one."
  }
 ],
 "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/3d-gaussian-ray-tracing.json"
 },
 "solves": [
  "splats need a fisheye or distorted camera",
  "want reflections and refraction on gaussian splat scenes",
  "rolling shutter camera model for splat rendering",
  "render splats without sorting and popping"
 ],
 "authority": "Moenne-Loccoz et al., 2024",
 "url": "https://texelatlas.vercel.app/t/3d-gaussian-ray-tracing/",
 "execution_fidelity": "conceptual-diagram",
 "fidelity_label": "Visual Diagram",
 "benchmark_eligible": false,
 "gpu_weight": {
  "weight_x": 15.98,
  "tier": "moderate",
  "p50_ms": 0.5256,
  "p95_ms": 0.543,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 32,
  "preset_id": "3d-gaussian-ray-tracing-live",
  "execution_fidelity": "conceptual-diagram",
  "fidelity_label": "Visual Diagram",
  "benchmark_eligible": false,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 13.6,
   "tier": "moderate",
   "p50_ms": 0.2163,
   "p95_ms": 0.2165,
   "speedup_x": 2.43,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 10.43,
   "tier": "moderate",
   "p50_ms": 0.3005,
   "p95_ms": 0.3035,
   "speedup_x": 1.75,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}