How to use mesh distance fields instead of global distance fields?

Have this code, it deforms an object based on proximity to other objects.

The code itself isn’t really the matter though, it’s just an example, particularly to highlight this node:
24-07-116

It gets the distance to the nearest global distance field.

This is great, but global distance fields are very inaccurate and small objects do not generate global distance fields at all, which is a problem for me.

Is there any way to use mesh distance field instead? Which is more accurate and affects small objects?

1 Like

I tried using all these nodes:

24-07-119

But they all seem to be limited to global distance fields :frowning:

I cannot seem to find a way to do this.

I also tried setting the lumen software ray tracing method to detail trace (this uses mesh distance fields instead of global ones for something… Not sure what, I didn’t notice any difference)

24-08-41

It didn’t affect the issue either :frowning:

(post deleted by author)

Did you ever find a solution?