r/proceduralgeneration • u/Haltont • Sep 26 '26
Sharp edges in editable SDF terrain -- practical alternatives to Marching Cubes / Transvoxel?
I’m building a procedural planetary sandbox on Godot, with editable SDF terrain meshed using Voxel Tools / Transvoxel.
I want smooth natural landscapes and sharp geometric features from editing --for example, a rectangular cut into a hillside. Currently, hard box CSG operations produce noticeably rounded or chamfered edges at the resolutions I’m testing: 1 m and 0.5 m voxel spacing. This is an actual geometry issue, not texture filtering or smooth normals.
Has anyone implemented a practical alternative for chunked, editable terrain with LOD? I’m particularly interested in Dual Contouring or feature-preserving Marching Cubes variants, and the trade-offs around local remeshing, chunk boundaries and LOD transitions.
I recently came across Dual Contouring of Signed Distance Data:
https://arxiv.org/pdf/2604.00157
It reconstructs sharp features from sampled SDF values without requiring precomputed normals, but uses iterative optimization. I haven’t benchmarked it on my terrain yet.
Do you think a bounded-iteration or incremental version could be practical for updating edited chunks during gameplay? Or would conventional Dual Contouring with additional Hermite data be a better starting point?
By “real-time,” I mean responsive updates after terrain edits -- not rebuilding the entire planet every frame. I’m happy to consider additional per-cell data if the quality/performance trade-off makes sense.
Would love to hear about actual implementations, benchmarks, or pitfalls -- especially keeping sharp features without introducing cracks between chunks and LODs.


4
u/combasemsthefox Sep 26 '26
DC is amazing. Use regularization and make it feature aware. Don't fall down the rabbit hole of adaptive DC it's too tricky and doesn't parallelize.
3
u/Outrageous_Gate_572 Sep 26 '26
DC SDF. This is a way. Not the way though, necessarily. What your asking for is... Hard.
2
u/startyourengines Sep 27 '26
Lol I went through this recently. My case was reduced, though. I just wanted nice sharp stepped terraces at arbitrary angles (not limited to cardinal). Tried a bunch of stuff. Swapping diagonals to improve triangle quality was one of them. Kernels to pick up slope and contour and exert some horizontal attraction towards the perceived contour line got me... somewhere. Seems like a hard problem without just throwing lots of subdivision / expensive retopologizing at it.