{
 "id": "neus",
 "title": "NeuS",
 "aliases": [
  "NeuS: neural implicit surfaces"
 ],
 "domain": "capture",
 "subdomain": "neural surface reconstruction",
 "stage": "capture",
 "realtime": "offline",
 "platforms": [
  "cuda",
  "python"
 ],
 "year_introduced": 2021,
 "inputs": [
  "photos",
  "camera-poses"
 ],
 "outputs": [
  "sdf",
  "mesh"
 ],
 "style": "photoreal",
 "dynamic": "static",
 "summary": "Reconstructs surfaces as the zero level set of a signed distance network trained with an unbiased, occlusion-aware volume rendering formulation, giving cleaner geometry than density-based NeRF.",
 "how_it_works": "A network represents a signed distance function and a second network gives colour. For rendering, the SDF is converted to a volume weight along each ray through a logistic density of the signed distance, whose sharpness is a learned parameter. The key observation is that naive conversions bias the rendered surface away from the zero crossing; NeuS derives weights whose peak lies exactly at the first zero crossing and which respect occlusion. Training minimises photometric loss, optional mask loss and an Eikonal regulariser that keeps the field a true distance function. The mesh is extracted afterwards with marching cubes. The sharpness parameter anneals so early training is smooth and later training concentrates on the surface.",
 "when_to_use": "Choose it for watertight object-scale surfaces from posed photos, particularly thin or textureless parts that photo-consistency matching misses. Prefer `neuralangelo` for large scenes and fine detail, `2d-gaussian-splatting` for far faster optimisation, and `multi-view-stereo-patchmatch` when fast classical reconstruction suffices.",
 "cost": {
  "class": "offline",
  "notes": "Hours of training per object on one GPU in the reference implementation."
 },
 "failure_modes": [
  "Smooth over-regularised geometry loses fine detail",
  "Struggles with unbounded backgrounds unless a separate background model or masks are used",
  "Specular surfaces confuse the colour network and distort SDF",
  "Needs good masks or foreground priors to avoid spurious surfaces"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "arxiv:2106.10689",
   "type": "paper",
   "title": "NeuS: Learning Neural Implicit Surfaces by Volume Rendering for Multi-view Reconstruction",
   "authors": [
    "Peng Wang",
    "Lingjie Liu",
    "Yuan Liu",
    "Christian Theobalt",
    "Taku Komura",
    "Wenping Wang"
   ],
   "year": 2021,
   "venue": "arXiv preprint (cs.CV)",
   "url": "https://arxiv.org/abs/2106.10689",
   "ids": {
    "arxiv": "2106.10689"
   },
   "license": null,
   "extra": {
    "arxiv_version": "3",
    "category": "cs.CV"
   },
   "provenance": {
    "title": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2106.10689",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2106.10689",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2106.10689",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2106.10689",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2106.10689",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "wang2021neus"
  },
  {
   "role": "implementation",
   "key": "gh:totoro97/neus",
   "type": "code",
   "title": "Totoro97/NeuS",
   "description": "Code release for NeuS",
   "authors": [
    "Totoro97"
   ],
   "year": 2021,
   "venue": "GitHub",
   "url": "https://github.com/Totoro97/NeuS",
   "ids": {
    "repo": "Totoro97/NeuS"
   },
   "license": "MIT",
   "extra": {
    "stars": 1775,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2024-02-28T08:17:37Z",
    "language": "Python",
    "homepage": null,
    "license_name": "MIT License"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/Totoro97/NeuS",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/Totoro97/NeuS",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/Totoro97/NeuS",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/Totoro97/NeuS",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/Totoro97/NeuS",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/Totoro97/NeuS",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "totoro2021totoro97"
  }
 ],
 "presets": [
  {
   "id": "neus-live",
   "title": "NeuS Neural Surface — early low-s logistic cloud (left) vs high-s unbiased SDF surface (right)",
   "runtime": "glsl-fragment",
   "params": {
    "P_INV_STD": 42,
    "P_NORMAL_VIS": 0.35,
    "P_ROT_SPEED": 0.65,
    "P_SPLIT": 0.48
   },
   "basis": "original",
   "license_note": "MIT — written for this index.",
   "code": "const float P_INV_STD = 42.0; // P Sharpness s [8.0, 90.0, 2.0]\nconst float P_NORMAL_VIS = 0.35; // P Normal Tint [0.0, 1.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 Soft / Sharp s 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\nfloat smin(float a, float b, float k) {\n  float h = clamp(0.5 + 0.5 * (b - a) / max(k, 1e-4), 0.0, 1.0);\n  return mix(b, a, h) - k * h * (1.0 - h);\n}\n\n// Neural SDF network f(x) representing a sculpted multi-handle ceramic vase\nfloat sdfField(vec3 p) {\n  float body = length(vec3(p.x, (p.y + 0.05) * 0.78, p.z)) - 0.46;\n  float waist = 0.08 * sin(p.y * 5.2 + 0.4);\n  float dBody = body + waist;\n  vec2 hL = vec2(length(p.xy - vec2(-0.42, 0.08)) - 0.18, p.z);\n  vec2 hR = vec2(length(p.xy - vec2(0.42, 0.08)) - 0.18, p.z);\n  float dHandles = min(length(hL) - 0.075, length(hR) - 0.075);\n  return smin(dBody, dHandles, 0.10);\n}\n\nvec3 sdfNormal(vec3 p) {\n  vec2 e = vec2(0.003, 0.0);\n  return normalize(vec3(\n    sdfField(p + e.xyy) - sdfField(p - e.xyy),\n    sdfField(p + e.yxy) - sdfField(p - e.yxy),\n    sdfField(p + e.yyx) - sdfField(p - e.yyx)\n  ));\n}\n\n// Logistic sigmoid Phi_s(f) = 1 / (1 + exp(-s * f)) used by NeuS unbiased volume rendering\nfloat logisticPhi(float f, float s) {\n  return 1.0 / (1.0 + exp(clamp(-s * f, -30.0, 30.0)));\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 isConverged = screenX >= split;\n  float invS = isConverged ? clamp(P_INV_STD, 8.0, 95.0) : 7.5;\n  float normTint = clamp(P_NORMAL_VIS, 0.0, 1.0);\n  float spin = iTime * max(P_ROT_SPEED, 0.0);\n\n  vec3 ro = vec3(0.0, 0.14, 2.25);\n  vec3 rd = normalize(vec3(uv, -1.52));\n  ro.xz = rot2(spin * 0.58) * ro.xz;\n  rd.xz = rot2(spin * 0.58) * rd.xz;\n\n  vec3 bg = mix(vec3(0.025, 0.034, 0.056), vec3(0.070, 0.092, 0.142), smoothstep(-0.55, 0.55, uv.y));\n\n  // Bounding sphere R = 0.98\n  float b = dot(ro, rd);\n  float c = dot(ro, ro) - 0.98 * 0.98;\n  float disc = b * b - c;\n\n  vec3 accum = vec3(0.0);\n  float T = 1.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 = 56;\n    float dt = (tFar - tNear) / float(steps);\n\n    float prevF = sdfField(ro + rd * tNear);\n    float prevPhi = logisticPhi(prevF, invS);\n\n    vec3 l1 = normalize(vec3(0.58, 0.82, 0.55));\n    vec3 l2 = normalize(vec3(-0.68, -0.22, 0.52));\n\n    for (int i = 0; i < 56; i++) {\n      float tNext = tNear + float(i + 1) * dt;\n      vec3 pMid = ro + rd * (tNext - 0.5 * dt);\n      float nextF = sdfField(ro + rd * tNext);\n      float nextPhi = logisticPhi(nextF, invS);\n\n      // Exact NeuS unbiased discrete opacity formula:\n      // alpha_i = max((Phi_s(f(t_i)) - Phi_s(f(t_{i+1}))) / Phi_s(f(t_i)), 0)\n      float alpha = clamp((prevPhi - nextPhi) / max(prevPhi, 1e-5), 0.0, 1.0);\n\n      if (alpha > 0.002) {\n        vec3 n = sdfNormal(pMid);\n        float diff = max(dot(n, l1), 0.0) * 0.86 + max(dot(n, l2), 0.0) * 0.24;\n        float spec = pow(max(dot(n, normalize(l1 - rd)), 0.0), 48.0);\n        float rim = pow(1.0 - max(dot(n, -rd), 0.0), 3.0);\n\n        vec3 ceramic = isConverged ? vec3(0.84, 0.78, 0.72) : vec3(0.28, 0.76, 0.94);\n        vec3 shaded = ceramic * (0.26 + 0.84 * diff) + vec3(0.98) * spec * 0.52 + vec3(0.36, 0.76, 1.0) * rim * 0.30;\n        vec3 nCol = n * 0.5 + 0.5;\n        vec3 sampleCol = mix(shaded, nCol, normTint * (isConverged ? 0.55 : 0.25));\n\n        accum += T * alpha * sampleCol;\n        T *= (1.0 - alpha);\n        if (T < 0.008) break;\n      }\n      prevF = nextF;\n      prevPhi = nextPhi;\n    }\n  }\n\n  vec3 col = accum + T * bg;\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": "neus",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-30T19:53:32.000Z",
     "renderer": "Headless EGL Tesla T4/PCIe/SSE2, OpenGL 3.30 Core, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.6196,
      "std": 0.1957,
      "min": 0.1825,
      "max": 0.9185
     },
     "image": "/specimens/neus-live.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "neuralangelo",
  "nerf",
  "multi-view-stereo-patchmatch",
  "2d-gaussian-splatting"
 ],
 "extends": [],
 "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/neus.json"
 },
 "solves": [
  "nerf geometry is noisy and not a real surface",
  "need watertight surface from posed photos",
  "thin or textureless parts fail in photogrammetry",
  "want signed distance geometry instead of density fog"
 ],
 "authority": "Wang et al., 2021",
 "url": "https://texelatlas.vercel.app/t/neus/",
 "execution_fidelity": "conceptual-diagram",
 "fidelity_label": "Visual Diagram",
 "benchmark_eligible": false,
 "gpu_weight": {
  "weight_x": 91.94,
  "tier": "extreme",
  "p50_ms": 2.85,
  "p95_ms": 3.0332,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 36,
  "preset_id": "neus-live",
  "execution_fidelity": "conceptual-diagram",
  "fidelity_label": "Visual Diagram",
  "benchmark_eligible": false,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 87.3,
   "tier": "extreme",
   "p50_ms": 1.388,
   "p95_ms": 1.4025,
   "speedup_x": 2.05,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 64.13,
   "tier": "extreme",
   "p50_ms": 1.847,
   "p95_ms": 1.8628,
   "speedup_x": 1.54,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}