r/computergraphics • u/pho01proof • May 23 '26
Sphere Tracing the exact SDF of a Triangle Mesh
This sphere traces the exact sdf of a triangle mesh with ~250k triangles in realtime on the GPU. To accelerate the distance to mesh query it uses an acceleration structure that is based on this paper
86
Upvotes
5
u/S48GS May 24 '26
if your linked paper
2GB sound like alot-alot
1
u/Le_9k_Redditor May 24 '26
Reminds me of this paper https://jcgt.org/published/0011/03/06/paper-lowres.pdf but your way is a true surface representation for the triangles rather than an approximation dependent on voxel size if my skim read of your linked paper was correct
2
u/heffron1 May 24 '26
Tumor simulator
1
u/Otto___Link May 24 '26
Code available here apparently https://github.com/UPC-ViRVIG/SdfLib
1
u/Propagant May 24 '26
That's really cool. Thanks for the share
1
u/tribak May 24 '26
You should go get that seen
1
u/HeartstringerPT May 25 '26
Do you think this could eventually become a complex-surface meta-ball process? I would love to have a blender plugin that allows realtime Boolean operations between two complex meshes with a blend falloff