Neuralangelo
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.
In the family Capture, reconstruction & splatting, neural surface reconstruction
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | None found | |
| Babylon.js 9.38.0 | None found | |
| Godot 4.7 | Not applicable | Offline reconstruction/generative method, not an engine feature. |
| Unity | None found | |
| Unreal 5.7 | None found | |
| Blender 5.2 | None found | |
| WebGPU W3C | None found | |
| Metal | None found |
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 choose it
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
Choose it when you need detailed meshes of large real scenes and have GPU hours to spare. Prefer NeuS for small objects with simpler setup, 2D Gaussian Splatting when optimisation time matters, and Multi-View Stereo (PatchMatch, COLMAP) for a quick classical baseline.
Field marks
- 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
Presets
Neuralangelo — coarse analytical SDF (left) vs fine numerical-gradient hash-grid relief (right)
{
"P_FINE_DETAIL": 0.9,
"P_HASH_SCALE": 9,
"P_ROT_SPEED": 0.52,
"P_SPLIT": 0.48
}Show GLSL (112 lines)
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.
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| neuralangelo-live | Tesla T4 1920x1080 | 21.4× baseline (heavy) · 0.702 ms / 0.729 ms | opengl-timer-query · 32 frames · GPU Weight Atlas · Colab T4 sweep |
| neuralangelo-live | NVIDIA L4 1920x1080 | 18.2× baseline (moderate) · 0.290 ms / 0.295 ms · 2.4× faster on L4 | opengl-timer-query · Cross-architecture validation |
| neuralangelo-live | NVIDIA A100-SXM4-40GB 1920x1080 | 13.5× baseline (moderate) · 0.389 ms / 0.400 ms · 1.8× faster on A100 | opengl-timer-query · Cross-architecture validation |
Lineage
From the citation graph (Crossref reference lists): its primary source cites Instant NGP (Multiresolution Hash Encoding), Neural Radiance Fields (NeRF), Structure-from-Motion (COLMAP), Screened Poisson Surface Reconstruction, Poisson Surface Reconstruction, Visual Hull (Shape from Silhouette); cited by DreamGaussian.
Crosses
- Scanned objects as SDF primitives: Real objects captured as distance fields become primitives in a shader modeller: smooth-blend a scanned statue into procedural rock, carve it with booleans, bend or repeat it, and ray-march the result in real time.
- Instant NGP (Multiresolution Hash Encoding): Reuses the hash-grid encoding as the SDF feature backbone.
Sources
- primaryZhaoshuo Li, Thomas Müller, Alex Evans, Russell H. Taylor, Mathias Unberath, Ming-Yu Liu et al. (2023). Neuralangelo: High-Fidelity Neural Surface Reconstruction. arXiv preprint (cs.CV).Verified via arxiv · 2026-11-29arXiv:2306.03092
- implementationNVlabs (2023). NVlabs/neuralangelo. Official implementation of "Neuralangelo: High-Fidelity Neural Surface Reconstruction" (CVPR 2023)GitHub API · license NOASSERTION · 2026-11-29