{
 "id": "nerf",
 "title": "Neural Radiance Fields (NeRF)",
 "aliases": [
  "NeRF"
 ],
 "domain": "capture",
 "subdomain": "neural scene representation",
 "stage": "capture",
 "realtime": "offline",
 "platforms": [
  "cuda",
  "python"
 ],
 "year_introduced": 2020,
 "inputs": [
  "photos",
  "camera-poses"
 ],
 "outputs": [
  "radiance-field"
 ],
 "style": "photoreal",
 "dynamic": "static",
 "summary": "Represents a scene as an MLP mapping position and view direction to density and colour, trained by differentiable volume rendering to reproduce posed input photos.",
 "how_it_works": "An MLP takes a 3D point (after sinusoidal positional encoding) and viewing direction and outputs volume density and view-dependent RGB. To render a pixel, rays are cast through the camera, points are sampled along each ray (coarse then importance-sampled fine), and colours are alpha-composited using the densities. The loss is simply the photometric error against the training image, and gradients flow through the compositing into the network. Density depends only on position and colour on position plus direction, which encourages consistent geometry with specular effects. Training needs camera poses, typically from `structure-from-motion-colmap`. The original takes hours per scene and seconds per frame, which later work cut by orders of magnitude.",
 "when_to_use": "Choose it as a conceptual baseline or when you need an implicit volumetric representation to experiment with. Prefer `instant-ngp` for the same model trained in seconds, `gaussian-splatting-3dgs` for real-time rendering, and `neus` or `neuralangelo` when you need a clean surface rather than a density field.",
 "cost": {
  "class": "offline",
  "notes": "Original formulation: hours of training and several seconds per rendered frame on a single GPU, per the paper's reported setup."
 },
 "failure_modes": [
  "Floaters and fog in empty space when views are sparse or poses are noisy",
  "Blurry or aliased renders at differing zoom levels because rays are treated as infinitely thin",
  "Extracted geometry from density is bumpy and not watertight",
  "Unbounded scenes and distant backgrounds need special parameterisation or they collapse"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "arxiv:2003.08934",
   "type": "paper",
   "title": "NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis",
   "authors": [
    "Ben Mildenhall",
    "Pratul P. Srinivasan",
    "Matthew Tancik",
    "Jonathan T. Barron",
    "Ravi Ramamoorthi",
    "Ren Ng"
   ],
   "year": 2020,
   "venue": "arXiv preprint (cs.CV)",
   "url": "https://arxiv.org/abs/2003.08934",
   "ids": {
    "arxiv": "2003.08934"
   },
   "license": null,
   "extra": {
    "arxiv_version": "2",
    "category": "cs.CV"
   },
   "provenance": {
    "title": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2003.08934",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2003.08934",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2003.08934",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2003.08934",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2003.08934",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "mildenhall2020nerf"
  },
  {
   "role": "implementation",
   "key": "gh:bmild/nerf",
   "type": "code",
   "title": "bmild/nerf",
   "description": "Code release for NeRF (Neural Radiance Fields)",
   "authors": [
    "bmild"
   ],
   "year": 2020,
   "venue": "GitHub",
   "url": "https://github.com/bmild/nerf",
   "ids": {
    "repo": "bmild/nerf"
   },
   "license": "MIT",
   "extra": {
    "stars": 10956,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2025-04-12T16:26:12Z",
    "language": "Jupyter Notebook",
    "homepage": "http://tancik.com/nerf",
    "license_name": "MIT License"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/bmild/nerf",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/bmild/nerf",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/bmild/nerf",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/bmild/nerf",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/bmild/nerf",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/bmild/nerf",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "bmild2020bmild"
  },
  {
   "role": "implementation",
   "key": "gh:nerfstudio-project/nerfstudio",
   "type": "code",
   "title": "nerfstudio-project/nerfstudio",
   "description": "A collaboration friendly studio for NeRFs",
   "authors": [
    "nerfstudio-project"
   ],
   "year": 2022,
   "venue": "GitHub",
   "url": "https://github.com/nerfstudio-project/nerfstudio",
   "ids": {
    "repo": "nerfstudio-project/nerfstudio"
   },
   "license": "Apache-2.0",
   "extra": {
    "stars": 12274,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2025-07-29T02:30:55Z",
    "language": "Python",
    "homepage": "https://docs.nerf.studio",
    "license_name": "Apache License 2.0"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/nerfstudio-project/nerfstudio",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/nerfstudio-project/nerfstudio",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/nerfstudio-project/nerfstudio",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/nerfstudio-project/nerfstudio",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/nerfstudio-project/nerfstudio",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/nerfstudio-project/nerfstudio",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "nerfstudioproject2022nerfstudio"
  },
  {
   "role": "tutorial",
   "key": "url:https://docs.nerf.studio/",
   "type": "tutorial",
   "title": "Nerfstudio documentation",
   "authors": [
    "Nerfstudio team"
   ],
   "year": null,
   "venue": "docs.nerf.studio",
   "url": "https://docs.nerf.studio/",
   "ids": {},
   "license": null,
   "extra": {
    "http_status": 200,
    "live": true,
    "archive": {
     "url": "http://web.archive.org/web/20261030113602/https://docs.nerf.studio/",
     "timestamp": "20261030113602"
    },
    "page_title": "Contents",
    "host": "docs.nerf.studio",
    "title_confirmed_by_page": false,
    "title_unconfirmed": true
   },
   "provenance": {
    "title": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "http",
     "endpoint": "GET https://docs.nerf.studio/ → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "http",
     "endpoint": "GET https://docs.nerf.studio/ → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 0,
   "__bib": "teamnerfstudio"
  }
 ],
 "presets": [
  {
   "id": "nerf-live",
   "title": "NeRF Volumetric Raymarching — transmittance & density field (left) vs view-dependent radiance (right)",
   "runtime": "glsl-fragment",
   "params": {
    "P_SIGMA_SCALE": 4.5,
    "P_VIEW_DEP": 1,
    "P_ROT_SPEED": 0.65,
    "P_SPLIT": 0.48
   },
   "basis": "original",
   "license_note": "MIT — written for this index.",
   "code": "const float P_SIGMA_SCALE = 4.5; // P Density Sigma [1.0, 10.0, 0.25]\nconst float P_VIEW_DEP = 1.0; // P View-Dep Spec [0.0, 2.0, 0.05]\nconst float P_ROT_SPEED = 0.65; // P Orbit Speed [0.0, 2.2, 0.05]\nconst float P_SPLIT = 0.48; // P Density / NeRF 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// Continuous neural radiance field F_theta(x, d) -> (sigma, rgb)\n// Encodes a translucent iridescent botanical lotus-torus with nested glowing filaments\nvoid evalNeRF(vec3 p, vec3 rd, float sigmaGain, float viewGain, out float sigma, out vec3 rad) {\n  float r = length(p);\n  // Outer translucent shell + nested twisted rings\n  vec2 qTor = vec2(length(p.xz) - 0.48, p.y);\n  float dRing = length(qTor) - 0.16;\n  float ang = atan(p.z, p.x);\n  float petals = 0.075 * sin(ang * 5.0 + p.y * 6.0) * cos(r * 8.0);\n\n  float dCore = length(p) - 0.30 + petals * 0.6;\n  float dHalo = abs(length(p) - 0.64) - 0.045;\n\n  // Soft continuous volume density sigma(x) >= 0 (ReLU-like softplus around implicit shells)\n  float sCore = exp(-max(dCore, 0.0) * 18.0) * smoothstep(0.18, -0.05, dCore);\n  float sRing = exp(-max(dRing, 0.0) * 20.0) * smoothstep(0.14, -0.04, dRing);\n  float sHalo = exp(-abs(dHalo) * 32.0) * 0.42;\n\n  // Fine high-frequency positional-encoding gamma(x) volumetric veins\n  float peVeins = 0.55 + 0.45 * sin(p.x * 14.0 + p.y * 11.0) * cos(p.z * 14.0);\n  sigma = (sCore * 1.15 + sRing * 0.95 + sHalo * peVeins) * sigmaGain;\n\n  // Gradient proxy for view-dependent radiance c(x, d)\n  vec3 nEst = normalize(p + vec3(0.001));\n  float ndv = clamp(dot(nEst, -rd), 0.0, 1.0);\n  float fres = pow(1.0 - ndv, 2.5);\n\n  vec3 coreCol = mix(vec3(0.96, 0.42, 0.18), vec3(1.0, 0.86, 0.32), smoothstep(-0.25, 0.35, p.y));\n  vec3 ringCol = mix(vec3(0.12, 0.68, 0.96), vec3(0.68, 0.32, 0.96), 0.5 + 0.5 * sin(ang * 2.0));\n  vec3 baseC = (sCore > sRing) ? coreCol : ringCol;\n  baseC = mix(baseC, vec3(0.24, 0.96, 0.84), sHalo / max(sCore + sRing + sHalo, 1e-4));\n\n  // View-dependent directional MLP color term (iridescent Fresnel rim + anisotropic highlight)\n  vec3 lDir = normalize(vec3(0.55, 0.78, 0.45));\n  float spec = pow(max(dot(nEst, normalize(lDir - rd)), 0.0), 28.0);\n  vec3 viewShift = (vec3(0.32, 0.78, 1.0) * fres * 0.72 + vec3(1.0, 0.95, 0.88) * spec * 0.85) * viewGain;\n  rad = baseC * (0.45 + 0.65 * max(dot(nEst, lDir), 0.0)) + viewShift;\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 isRadiance = screenX >= split;\n  float sigmaGain = clamp(P_SIGMA_SCALE, 0.8, 12.0);\n  float viewGain = clamp(P_VIEW_DEP, 0.0, 2.2);\n  float spin = iTime * max(P_ROT_SPEED, 0.0);\n\n  vec3 ro = vec3(0.0, 0.24, 2.25);\n  vec3 rd = normalize(vec3(uv - vec2(0.0, 0.04), -1.52));\n\n  // Orbit camera around volume\n  ro.xz = rot2(spin * 0.55) * ro.xz;\n  rd.xz = rot2(spin * 0.55) * rd.xz;\n\n  vec3 bg = mix(vec3(0.020, 0.028, 0.048), vec3(0.056, 0.075, 0.125), smoothstep(-0.55, 0.55, uv.y));\n\n  // Bounding sphere intersection R = 1.05 for stratified NeRF quadrature\n  float b = dot(ro, rd);\n  float c = dot(ro, ro) - 1.05 * 1.05;\n  float disc = b * b - c;\n\n  vec3 accum = vec3(0.0);\n  float T = 1.0;\n  float expectedDepth = 0.0;\n  float weightSum = 0.0;\n\n  if (disc > 0.0) {\n    float tNear = max(-b - sqrt(disc), 0.1);\n    float tFar = -b + sqrt(disc);\n    int steps = 48;\n    float dt = (tFar - tNear) / float(steps);\n\n    for (int i = 0; i < 48; i++) {\n      float t = tNear + (float(i) + 0.5) * dt;\n      vec3 p = ro + rd * t;\n      float sigma;\n      vec3 rad;\n      evalNeRF(p, rd, sigmaGain, viewGain, sigma, rad);\n\n      // Exact NeRF volume rendering quadrature: alpha_i = 1 - exp(-sigma_i * dt)\n      float alpha = 1.0 - exp(-sigma * dt);\n      float w = T * alpha;\n      accum += w * rad;\n      expectedDepth += w * (t - tNear) / max(tFar - tNear, 1e-4);\n      weightSum += w;\n      T *= (1.0 - alpha);\n      if (T < 0.01) break;\n    }\n  }\n\n  vec3 col;\n  if (!isRadiance) {\n    // Left: accumulated opacity (1 - T) & expected termination depth colormap (turbo-like plasma ramp)\n    float op = 1.0 - T;\n    float dNorm = clamp(expectedDepth / max(weightSum, 1e-4), 0.0, 1.0);\n    vec3 depthCol = mix(vec3(0.12, 0.88, 0.94), vec3(0.98, 0.42, 0.16), dNorm);\n    depthCol = mix(depthCol, vec3(0.54, 0.24, 0.94), smoothstep(0.6, 1.0, dNorm));\n    // Iso-depth bands visualizing discrete raymarch quadrature samples\n    float bands = 0.78 + 0.22 * cos(dNorm * 32.0);\n    col = mix(bg, depthCol * bands * 1.15, op);\n  } else {\n    // Right: full NeRF alpha-composited view-dependent radiance\n    col = accum + T * bg;\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": "nerf",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-30T19:53:31.000Z",
     "renderer": "Headless EGL Tesla T4/PCIe/SSE2, OpenGL 3.30 Core, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.6134,
      "std": 0.1964,
      "min": 0.1665,
      "max": 0.9193
     },
     "image": "/specimens/nerf-live.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "instant-ngp",
  "mip-nerf-360",
  "gaussian-splatting-3dgs",
  "neus"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [
  {
   "id": "structure-from-motion-colmap",
   "why": "COLMAP poses are the camera input that NeRF training assumes."
  }
 ],
 "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/nerf.json"
 },
 "solves": [
  "synthesise new views from a set of photos",
  "want an implicit volumetric scene representation",
  "learn a scene's geometry and colour from images alone",
  "photo capture to view-dependent renders with a neural net",
  "baseline for neural scene reconstruction"
 ],
 "authority": "Mildenhall et al., 2020",
 "url": "https://texelatlas.vercel.app/t/nerf/",
 "execution_fidelity": "conceptual-diagram",
 "fidelity_label": "Visual Diagram",
 "benchmark_eligible": false,
 "gpu_weight": {
  "weight_x": 127.68,
  "tier": "extreme",
  "p50_ms": 3.9582,
  "p95_ms": 4.2383,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 36,
  "preset_id": "nerf-live",
  "execution_fidelity": "conceptual-diagram",
  "fidelity_label": "Visual Diagram",
  "benchmark_eligible": false,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 110.75,
   "tier": "extreme",
   "p50_ms": 1.761,
   "p95_ms": 1.7874,
   "speedup_x": 2.25,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 86.51,
   "tier": "extreme",
   "p50_ms": 2.4914,
   "p95_ms": 2.5105,
   "speedup_x": 1.59,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}