Semi-Sharp Creases
Gives each subdivision edge a real-valued sharpness: for that many levels it follows sharp (crease) rules, then switches to smooth rules. Lets a coarse cage carry bevels and hard-to-soft transitions without extra edge loops.
In the family Geometry, meshing & signed distance fields, subdivision surfaces
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 | None found | Godot does not ship Catmull-Clark subdivision surfaces with semi-sharp creases. |
| Unity | None found | |
| Unreal 5.7 | None found | |
| Blender 5.2 | Built in | Edit Mode > Edge > Edge Crease (Shift-E); Subdivision Surface modifier honours it docs |
| WebGPU W3C | None found | |
| Metal | None found |
How it works
Tag edges with a sharpness s >= 0. At each subdivision level, edges with s > 0 use the crease rules (new edge point on the edge midpoint; vertices on two creases follow a cubic B-spline curve along the crease) and their children receive s-1. Edges with s <= 0 use the standard smooth rule. A fractional s blends between the sharp and smooth outcomes, giving a continuum from soft bevel to hard line. A crease vertex touched by three or more creases is a corner. Integer sharpness ties the visual result to the number of subdivision levels used for display, so renderers evaluate the limit surface with the same sharpness semantics. The rules are defined on top of Catmull-Clark and extend to Loop.
When to choose it
Reach for it when
- subdivision surface rounds off hard edges
- need partially sharp edges on a smooth model
- control edge sharpness on subdivided mesh
- hard-surface models look blobby when subdivided
Choose it when modelling hard-surface or mechanical forms on a subdivision cage and you want crisp edges that stay editable by a single number. Prefer extra support loops when the DCC pipeline or target engine does not support crease tags, and Catmull-Clark Subdivision alone for organic shapes.
Field marks
- Results differ if a viewer uses fewer subdivision levels than the sharpness value
- Creases ending inside a smooth region leave a visible dart-shaped pinch
- Fractional sharpness varies between implementations unless they follow the same blending rule
- Exports to formats without crease support silently turn them into smooth edges
Presets
Semi-Sharp Creases — smooth C^2 fillet s=0 (left) vs tunable sharpness weight s (right)
{
"P_SHARPNESS": 3.5,
"P_ZEBRA_VIS": 0.7,
"P_ROT_SPEED": 0.7,
"P_SPLIT": 0.48
}Show GLSL (108 lines)
const float P_SHARPNESS = 3.5; // P Crease Weight s [0.0, 6.0, 0.1]
const float P_ZEBRA_VIS = 0.70; // P Zebra Curvature [0.0, 1.0, 0.05]
const float P_ROT_SPEED = 0.70; // P Spin Speed [0.0, 2.2, 0.05]
const float P_SPLIT = 0.48; // P Smooth / Crease 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 sdRoundBox(vec3 p, vec3 b, float r) {
vec3 q = abs(p) - b + vec3(r);
return length(max(q, 0.0)) + min(max(q.x, max(q.y, q.z)), 0.0) - r;
}
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);
}
// Mechanical cross-block with semi-sharp crease edges whose bevel radius decays as 2^(-s)
float mapCreaseObj(vec3 p, float sharpness, float spin, out float creaseDist) {
vec3 q = p;
q.xz = rot2(spin * 0.55) * q.xz;
q.yz = rot2(0.45) * q.yz;
// Semi-sharp subdivision rule: sharpness s delays smooth averaging for s levels => fillet radius ~ r0 * 2^(-s)
float rCrease = 0.24 * pow(0.5, clamp(sharpness, 0.0, 6.0)) + 0.004;
float dMain = sdRoundBox(q, vec3(0.56, 0.56, 0.56), rCrease);
float dRib = sdRoundBox(q, vec3(0.76, 0.24, 0.24), rCrease * 0.85);
float dRib2 = sdRoundBox(q, vec3(0.24, 0.76, 0.24), rCrease * 0.85);
float d = smin(dMain, min(dRib, dRib2), rCrease * 0.9);
// Measure proximity to the tagged crease lines on the cube boundary
vec3 aq = abs(q);
float eXY = length(aq.xy - vec2(0.56));
float eYZ = length(aq.yz - vec2(0.56));
float eXZ = length(aq.xz - vec2(0.56));
creaseDist = min(eXY, min(eYZ, eXZ));
return d;
}
vec3 calcNormal(vec3 p, float sharpness, float spin) {
vec2 e = vec2(0.0018, 0.0);
float tmp;
return normalize(vec3(
mapCreaseObj(p + e.xyy, sharpness, spin, tmp) - mapCreaseObj(p - e.xyy, sharpness, spin, tmp),
mapCreaseObj(p + e.yxy, sharpness, spin, tmp) - mapCreaseObj(p - e.yxy, sharpness, spin, tmp),
mapCreaseObj(p + e.yyx, sharpness, spin, tmp) - mapCreaseObj(p - e.yyx, sharpness, spin, tmp)
));
}
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 isCrease = screenX >= split;
float sharp = isCrease ? clamp(P_SHARPNESS, 0.0, 6.0) : 0.0;
float zebraAmt = clamp(P_ZEBRA_VIS, 0.0, 1.0);
float spin = iTime * max(P_ROT_SPEED, 0.0);
vec3 ro = vec3(0.0, 0.04, 2.55);
vec3 rd = normalize(vec3(uv, -1.55));
vec3 col = mix(vec3(0.025, 0.035, 0.055), vec3(0.072, 0.092, 0.138), smoothstep(-0.55, 0.55, uv.y));
float t = 0.0;
bool hit = false;
float cDist = 1.0;
for (int i = 0; i < 64; i++) {
float d = mapCreaseObj(ro + rd * t, sharp, spin, cDist);
if (d < 0.0018) { hit = true; break; }
t += d * 0.85;
if (t > 8.0) break;
}
if (hit) {
vec3 p = ro + rd * t;
vec3 n = calcNormal(p, sharp, spin);
vec3 rDir = reflect(rd, n);
// Studio zebra reflection stripes reveal exact G1/G2 continuity across the semi-sharp crease!
float zebra = smoothstep(-0.12, 0.12, sin(rDir.y * 26.0 + rDir.x * 10.0));
vec3 zebraCol = mix(vec3(0.10, 0.14, 0.22), vec3(0.92, 0.96, 1.0), zebra);
vec3 l1 = normalize(vec3(0.58, 0.82, 0.55));
float diff = max(dot(n, l1), 0.0);
float spec = pow(max(dot(n, normalize(l1 - rd)), 0.0), 64.0);
float fres = 0.10 + 0.90 * pow(1.0 - max(dot(n, -rd), 0.0), 4.0);
vec3 baseAlb = isCrease ? vec3(0.20, 0.68, 0.82) : vec3(0.76, 0.54, 0.36);
vec3 litCol = baseAlb * (0.28 + 0.82 * diff) + vec3(1.0) * spec * 0.65;
col = mix(litCol, zebraCol * (0.72 + 0.28 * baseAlb), zebraAmt * (0.45 + 0.45 * fres));
// Tag semi-sharp crease edges with crisp amber line on right side
if (isCrease && sharp > 0.2) {
float tagLine = smoothstep(0.038, 0.008, cDist);
col = mix(col, vec3(1.0, 0.78, 0.20), tagLine * 0.82 * clamp(sharp / 2.5, 0.0, 1.0));
}
}
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 |
|---|---|---|---|
| semi-sharp-creases-live | Tesla T4 1920x1080 | 21.5× baseline (heavy) · 0.667 ms / 0.693 ms | opengl-timer-query · 36 frames · GPU Weight Atlas · Colab T4 sweep |
| semi-sharp-creases-live | NVIDIA L4 1920x1080 | 17.5× baseline (moderate) · 0.279 ms / 0.299 ms · 2.4× faster on L4 | opengl-timer-query · Cross-architecture validation |
| semi-sharp-creases-live | NVIDIA A100-SXM4-40GB 1920x1080 | 14.1× baseline (moderate) · 0.407 ms / 0.414 ms · 1.6× faster on A100 | opengl-timer-query · Cross-architecture validation |
Lineage
From the citation graph (Crossref reference lists): cited by Instant Field-Aligned Meshes.
Crosses
- Crease sharpness steers generated wear: Sharpness values an artist sets on a subdivision cage become a control channel for a texture generator. Baked SDF occlusion and curvature tell it where grime and edge wear belong, so generated detail agrees with the geometry.
- Triangle-native Loop subdivision with continuous semi-sharp creases: Bringing DeRose-style continuous sharpness weights to pure triangle Loop subdivision surfaces lets triangle-first game meshes and sculpted assets hold crisp mechanical bevels and tapered ridges without converting to quad Catmull-Clark topology.
- Catmull-Clark Subdivision: Edge sharpness tags modify the refinement rules at each level.
Sources
- primaryTony DeRose, Michael Kass, Tien Truong (1998). Subdivision surfaces in character animation. Proceedings of the 25th annual conference on Computer graphics and interactive techniques - SIGGRAPH '98.Verified via crossref · 2026-11-29doi:10.1145/280814.280826
- implementationPixarAnimationStudios (2012). PixarAnimationStudios/OpenSubdiv. An Open-Source subdivision surface library.GitHub API · license NOASSERTION · 2026-11-29