NeuS
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.
Also known as NeuS: neural implicit surfaces
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
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 choose it
Reach for it when
- 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
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, COLMAP) when fast classical reconstruction suffices.
Field marks
- 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
Presets
NeuS Neural Surface — early low-s logistic cloud (left) vs high-s unbiased SDF surface (right)
{
"P_INV_STD": 42,
"P_NORMAL_VIS": 0.35,
"P_ROT_SPEED": 0.65,
"P_SPLIT": 0.48
}Show GLSL (114 lines)
const float P_INV_STD = 42.0; // P Sharpness s [8.0, 90.0, 2.0]
const float P_NORMAL_VIS = 0.35; // P Normal Tint [0.0, 1.0, 0.05]
const float P_ROT_SPEED = 0.65; // P Orbit Speed [0.0, 2.2, 0.05]
const float P_SPLIT = 0.48; // P Soft / Sharp s Split [0.0, 1.0, 0.02]
mat2 rot2(float a) { float c = cos(a), s = sin(a); return mat2(c, -s, s, c); }
float smin(float a, float b, float k) {
float h = clamp(0.5 + 0.5 * (b - a) / max(k, 1e-4), 0.0, 1.0);
return mix(b, a, h) - k * h * (1.0 - h);
}
// Neural SDF network f(x) representing a sculpted multi-handle ceramic vase
float sdfField(vec3 p) {
float body = length(vec3(p.x, (p.y + 0.05) * 0.78, p.z)) - 0.46;
float waist = 0.08 * sin(p.y * 5.2 + 0.4);
float dBody = body + waist;
vec2 hL = vec2(length(p.xy - vec2(-0.42, 0.08)) - 0.18, p.z);
vec2 hR = vec2(length(p.xy - vec2(0.42, 0.08)) - 0.18, p.z);
float dHandles = min(length(hL) - 0.075, length(hR) - 0.075);
return smin(dBody, dHandles, 0.10);
}
vec3 sdfNormal(vec3 p) {
vec2 e = vec2(0.003, 0.0);
return normalize(vec3(
sdfField(p + e.xyy) - sdfField(p - e.xyy),
sdfField(p + e.yxy) - sdfField(p - e.yxy),
sdfField(p + e.yyx) - sdfField(p - e.yyx)
));
}
// Logistic sigmoid Phi_s(f) = 1 / (1 + exp(-s * f)) used by NeuS unbiased volume rendering
float logisticPhi(float f, float s) {
return 1.0 / (1.0 + exp(clamp(-s * f, -30.0, 30.0)));
}
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 isConverged = screenX >= split;
float invS = isConverged ? clamp(P_INV_STD, 8.0, 95.0) : 7.5;
float normTint = clamp(P_NORMAL_VIS, 0.0, 1.0);
float spin = iTime * max(P_ROT_SPEED, 0.0);
vec3 ro = vec3(0.0, 0.14, 2.25);
vec3 rd = normalize(vec3(uv, -1.52));
ro.xz = rot2(spin * 0.58) * ro.xz;
rd.xz = rot2(spin * 0.58) * rd.xz;
vec3 bg = mix(vec3(0.025, 0.034, 0.056), vec3(0.070, 0.092, 0.142), smoothstep(-0.55, 0.55, uv.y));
// Bounding sphere R = 0.98
float b = dot(ro, rd);
float c = dot(ro, ro) - 0.98 * 0.98;
float disc = b * b - c;
vec3 accum = vec3(0.0);
float T = 1.0;
if (disc > 0.0) {
float tNear = max(-b - sqrt(disc), 0.1);
float tFar = -b + sqrt(disc);
int steps = 56;
float dt = (tFar - tNear) / float(steps);
float prevF = sdfField(ro + rd * tNear);
float prevPhi = logisticPhi(prevF, invS);
vec3 l1 = normalize(vec3(0.58, 0.82, 0.55));
vec3 l2 = normalize(vec3(-0.68, -0.22, 0.52));
for (int i = 0; i < 56; i++) {
float tNext = tNear + float(i + 1) * dt;
vec3 pMid = ro + rd * (tNext - 0.5 * dt);
float nextF = sdfField(ro + rd * tNext);
float nextPhi = logisticPhi(nextF, invS);
// Exact NeuS unbiased discrete opacity formula:
// alpha_i = max((Phi_s(f(t_i)) - Phi_s(f(t_{i+1}))) / Phi_s(f(t_i)), 0)
float alpha = clamp((prevPhi - nextPhi) / max(prevPhi, 1e-5), 0.0, 1.0);
if (alpha > 0.002) {
vec3 n = sdfNormal(pMid);
float diff = max(dot(n, l1), 0.0) * 0.86 + max(dot(n, l2), 0.0) * 0.24;
float spec = pow(max(dot(n, normalize(l1 - rd)), 0.0), 48.0);
float rim = pow(1.0 - max(dot(n, -rd), 0.0), 3.0);
vec3 ceramic = isConverged ? vec3(0.84, 0.78, 0.72) : vec3(0.28, 0.76, 0.94);
vec3 shaded = ceramic * (0.26 + 0.84 * diff) + vec3(0.98) * spec * 0.52 + vec3(0.36, 0.76, 1.0) * rim * 0.30;
vec3 nCol = n * 0.5 + 0.5;
vec3 sampleCol = mix(shaded, nCol, normTint * (isConverged ? 0.55 : 0.25));
accum += T * alpha * sampleCol;
T *= (1.0 - alpha);
if (T < 0.008) break;
}
prevF = nextF;
prevPhi = nextPhi;
}
}
vec3 col = accum + T * bg;
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 |
|---|---|---|---|
| neus-live | Tesla T4 1920x1080 | 91.9× baseline (extreme) · 2.85 ms / 3.03 ms | opengl-timer-query · 36 frames · GPU Weight Atlas · Colab T4 sweep |
| neus-live | NVIDIA L4 1920x1080 | 87.3× baseline (extreme) · 1.39 ms / 1.40 ms · 2.0× faster on L4 | opengl-timer-query · Cross-architecture validation |
| neus-live | NVIDIA A100-SXM4-40GB 1920x1080 | 64.1× baseline (extreme) · 1.85 ms / 1.86 ms · 1.5× faster on A100 | opengl-timer-query · Cross-architecture validation |
Lineage
From the citation graph (Crossref reference lists): its primary source cites DeepSDF (neural signed distance functions), Screened Poisson Surface Reconstruction; cited by DUSt3R, MeshFlow.
Crosses
- Deformable XPBD soft bodies carved straight from NeuS captures: Objects reconstructed as watertight neural signed distance fields via NeuS become immediately squishy, tearable, or elastic XPBD soft bodies without manual retopology or hand-authored collision cages.
Sources
- primaryPeng Wang, Lingjie Liu, Yuan Liu, Christian Theobalt, Taku Komura, Wenping Wang (2021). NeuS: Learning Neural Implicit Surfaces by Volume Rendering for Multi-view Reconstruction. arXiv preprint (cs.CV).Verified via arxiv · 2026-11-29arXiv:2106.10689
- implementationTotoro97 (2021). Totoro97/NeuS. Code release for NeuSGitHub API · license MIT · 2026-11-29