Distance Field Flow Map

I should add that this method (doing a dot product) is almost the same as the divergence thingy. The standard way of calculating these things is just to offset in x,y and z axis to get the sample offsets. The difference in what I’ve done is that I am using the gradient as the sample offset.

Here is an example of the ‘curvature’ laplacian operation to get the general nooks and crannies…

small sample offset width = smaller details
ddcac5c4d15ecbee19c0297e2d595c5384610fa9.jpeg

larger sample offset width = bigger features.
6ed95c6f8d8185f25e087a65a9e9dcbe72add6e0.jpeg

Remember to clamp those before using them as well because there are negative values which are the ‘open’ areas. You could reverse those values to get an ‘exposed’ mask.