Textures to 2D SDF

I don’t know how to ask the right question. But generally speaking, there is a problem that is probably not easily solved by FUSE and Gamma.

If I have a black and white texture, can I turn it into a 3D SDF object? It seems that my attempts to do this with HeightMap + ExtrudeSDF are not successful. Or half successful.

I read a long time ago that there is a trick to “create an SDF texture from a regular texture”. I don’t really understand what it is and how to apply it to gamma. But it looks very much like it would make it possible to extrude textures as normal objects. Is this the case?

There are also toolkits on github that implement this algorithm.

Can you tell me if it is even worth looking into, or is there a simple way to extrude objects from a texture?

I have modified an existing patch to demonstrate what the problem is.

It looks like it need to create a node that converts the image to 2D SDF. From what I’ve read, it’s not very complicated, is it?

HowTo Use ConformToSDF_experiment.vl (61.7 KB)