---
id: "neuralangelo"
title: "Neuralangelo"
domain: "capture"
stage: "capture"
realtime: "offline"
platforms: [cuda, python]
year_introduced: 2023
inputs: [photos, camera-poses]
outputs: [sdf, mesh]
style: "photoreal"
dynamic: "static"
cost: "offline"
authority: "Li et al., 2023"
url: "https://texelatlas.vercel.app/t/neuralangelo/"
sources_verified_at: "2026-11-29"
---
# Neuralangelo (Li et al., 2023)

> High-fidelity neural SDF reconstruction from posed photos using a hash-grid representation, numerical gradients for the Eikonal and normal terms, and coarse-to-fine resolution scheduling.

## Reach for it when

- photogrammetry meshes are noisy and lack fine detail
- reconstruct high fidelity surfaces from video
- need detailed geometry from multi-view images
- implicit surface reconstruction loses small details

## How it works

It builds on NeuS-style SDF volume rendering but swaps the MLP for a multiresolution hash encoding to hold detail. The surface normals needed for regularisation are computed by finite differences with a step size tied to the grid cell, instead of analytic gradients through the hash lookup. Big steps smooth the loss, so early training updates many cells together and recovers coarse shape, while the step shrinks over training to reveal finer levels, which are progressively unlocked. This coarse-to-fine schedule prevents the high-frequency hash levels from fitting noise before the base shape exists. A mesh is extracted with marching cubes and can capture details like leaves, fabric and signage on building-scale scenes.

## When to use it

Choose it when you need detailed meshes of large real scenes and have GPU hours to spare. Prefer [NeuS](https://texelatlas.vercel.app/t/neus.md) for small objects with simpler setup, [2D Gaussian Splatting](https://texelatlas.vercel.app/t/2d-gaussian-splatting.md) when optimisation time matters, and [Multi-View Stereo (PatchMatch, COLMAP)](https://texelatlas.vercel.app/t/multi-view-stereo-patchmatch.md) for a quick classical baseline.

## Cost

offline — Many hours per scene on a high-memory GPU, per the reference setup; far above splat-based methods.
Measured GPU Weight: 21.35× baseline (heavy) — 0.7023 ms median / 0.7294 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 18.23× baseline (moderate) — 0.2898 ms median (2.42× faster on L4).
Ampere A100 scaling: 13.5× baseline (moderate) — 0.3889 ms median (1.81× faster on A100).

## Failure modes

- Long training times and large memory footprint
- Reflective and transparent surfaces create holes or bulges in the SDF
- Poor pose accuracy produces doubled surfaces, since photometric fitting trusts the cameras
- Reference code licence is non-commercial, limiting production use

## Dataflow

- Inputs: photos, camera-poses
- Outputs: sdf, mesh
- Platforms: cuda, python

## Presets

### Neuralangelo — coarse analytical SDF (left) vs fine numerical-gradient hash-grid relief (right) (glsl-fragment; rendered 2026-11-30)

```json
{
  "P_FINE_DETAIL": 0.9,
  "P_HASH_SCALE": 9,
  "P_ROT_SPEED": 0.52,
  "P_SPLIT": 0.48
}
```

```glsl
const float P_FINE_DETAIL = 0.90; // P Fine Hash Detail [0.1, 1.2, 0.04]
const float P_HASH_SCALE = 9.0; // P Relief Freq [4.0, 16.0, 0.5]
const float P_ROT_SPEED = 0.52; // P Orbit Speed [0.0, 2.2, 0.05]
const float P_SPLIT = 0.48; // P Coarse / Neuralangelo [0.0, 1.0, 0.02]

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

// Coarse base sculpture (classical marble fluted column & capital)
float mapCoarse(vec3 q) {
  float rXZ = length(q.xz);
  float shaft = max(rXZ - (0.40 - 0.04 * q.y), abs(q.y) - 0.66);
  float cap = max(max(abs(q.x), abs(q.z)) - 0.50, abs(q.y - 0.62) - 0.10);
  float base = max(max(abs(q.x), abs(q.z)) - 0.52, abs(q.y + 0.62) - 0.10);
  return min(shaft, min(cap, base)) * 0.85;
}

// Fine Neuralangelo SDF with progressive high-frequency hash-grid carvings (flutes, volutes, rosettes)
float mapFine(vec3 q, float detail, float freq) {
  float d = mapCoarse(q);
  float ang = atan(q.z, q.x);
  // Classical concave vertical fluting along the shaft
  float inShaft = smoothstep(0.55, 0.45, abs(q.y));
  float flutes = -0.024 * abs(sin(ang * 8.0)) * inShaft;
  // Intricate carved frieze bands on capital & base
  float frieze = 0.016 * sin(q.x * freq * 2.2) * cos(q.z * freq * 2.2) * smoothstep(0.45, 0.55, abs(q.y));
  // Fine stone chisel relief across surface
  float chisel = 0.008 * sin(q.y * freq * 2.5 + ang * 6.0) * cos(q.x * freq * 1.8);
  return d + (flutes + frieze + chisel) * detail;
}

// Numerical finite-difference gradient with progressive step size eps (core Neuralangelo technique!)
vec3 calcNumericalNormal(vec3 q, float detail, float freq, float eps, bool fine) {
  vec2 e = vec2(eps, 0.0);
  if (fine) {
    return normalize(vec3(
      mapFine(q + e.xyy, detail, freq) - mapFine(q - e.xyy, detail, freq),
      mapFine(q + e.yxy, detail, freq) - mapFine(q - e.yxy, detail, freq),
      mapFine(q + e.yyx, detail, freq) - mapFine(q - e.yyx, detail, freq)
    ));
  }
  return normalize(vec3(
    mapCoarse(q + e.xyy) - mapCoarse(q - e.xyy),
    mapCoarse(q + e.yxy) - mapCoarse(q - e.yxy),
    mapCoarse(q + e.yyx) - mapCoarse(q - e.yyx)
  ));
}

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 isFine = screenX >= split;
  float detail = clamp(P_FINE_DETAIL, 0.05, 1.4);
  float freq = clamp(P_HASH_SCALE, 3.0, 18.0);
  float spin = iTime * max(P_ROT_SPEED, 0.0) * 0.48;

  vec3 ro = vec3(0.0, 0.12, 2.28);
  vec3 rd = normalize(vec3(uv - vec2(0.0, 0.02), -1.52));
  ro.xz = rot2(spin) * ro.xz;
  rd.xz = rot2(spin) * rd.xz;

  vec3 col = mix(vec3(0.025, 0.030, 0.048), vec3(0.068, 0.078, 0.116), smoothstep(-0.55, 0.55, uv.y));

  float t = 0.0;
  bool hit = false;
  for (int i = 0; i < 60; i++) {
    vec3 p = ro + rd * t;
    float d = isFine ? mapFine(p, detail, freq) : mapCoarse(p);
    if (d < 0.002) { hit = true; break; }
    t += max(d * 0.78, 0.004);
    if (t > 5.0) break;
  }

  if (hit) {
    vec3 p = ro + rd * t;
    // Left uses large coarse eps (smooth early training stage); right uses fine eps (converged Neuralangelo)
    float eps = isFine ? 0.003 : 0.035;
    vec3 n = calcNumericalNormal(p, detail, freq, eps, isFine);
    // Curvature proxy from difference between fine & coarse normals highlights carved stone relief!
    vec3 nCoarse = calcNumericalNormal(p, detail, freq, 0.04, false);
    float curv = clamp(length(n - nCoarse) * 2.2, 0.0, 1.0);

    vec3 l1 = normalize(vec3(0.65, 0.72, 0.52));
    vec3 l2 = normalize(vec3(-0.68, -0.15, -0.55));
    float diff1 = max(dot(n, l1), 0.0);
    float diff2 = max(dot(n, l2), 0.0);
    float spec = pow(max(dot(n, normalize(l1 - rd)), 0.0), 36.0);
    float ao = clamp(0.45 + 0.55 * (isFine ? mapFine(p + n * 0.08, detail, freq) : mapCoarse(p + n * 0.08)) / 0.08, 0.25, 1.0);

    // Carrara marble sculpture shading
    vec3 marble = mix(vec3(0.76, 0.74, 0.72), vec3(0.95, 0.92, 0.88), 0.5 + 0.5 * sin(p.x * 6.0 + p.y * 4.0));
    if (!isFine) {
      // Subtle coarse hash-level wireframe on left
      vec3 cg = abs(fract(p * 4.0) - 0.5);
      float cw = smoothstep(0.04, 0.01, min(cg.x, min(cg.y, cg.z)));
      marble = mix(marble * 0.85, vec3(0.24, 0.76, 0.96), cw * 0.32);
    } else {
      marble = mix(marble, vec3(0.98, 0.86, 0.68), curv * 0.28);
    }
    col = marble * (0.24 + 0.82 * diff1 + 0.24 * diff2) * ao + vec3(1.0, 0.97, 0.92) * spec * 0.36;
  }

  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

- extends [NeuS](https://texelatlas.vercel.app/t/neus.md)

## Combines with

- [Instant NGP (Multiresolution Hash Encoding)](https://texelatlas.vercel.app/t/instant-ngp.md): Reuses the hash-grid encoding as the SDF feature backbone.

## Combination ideas

- [Scanned objects as SDF primitives](https://texelatlas.vercel.app/ideas/captured-sdf-sculpting/)

## Sources

1. [primary] Zhaoshuo Li, Thomas Müller, Alex Evans, Russell H. Taylor, Mathias Unberath, Ming-Yu Liu, Chen-Hsuan Lin (2023) Neuralangelo: High-Fidelity Neural Surface Reconstruction. arXiv preprint (cs.CV). https://arxiv.org/abs/2306.03092 (verified via arxiv on 2026-11-29)
2. [implementation] NVlabs (2023) NVlabs/neuralangelo. https://github.com/NVlabs/neuralangelo License: NOASSERTION. (verified via github on 2026-11-29)

## Cite this entry

Texel. "Neuralangelo." https://texelatlas.vercel.app/t/neuralangelo/ (accessed 2026-12-01).
