“generate mesh distance fields” setting not working.

I want to enable distance fields for my material, but it doesnt work at all. Nothing happens in visualize mode and in dont work in material. I just want to check how “distanceToNearSurface” node work. So i did something like this:


And this is result i wanted:
image
But i got this:

I enabled “generate mesh distance fields”. Also i tried turning on and off “affect distance field lightning” in mesh settings. I did this in new and clean project.
Btw i asked a friend to do the same material on his PC and everything worked fine. So i thought that the reason is in graphics card (I have gtx760, my friend has rtx2070).

2 Likes

Your material seems fine.
Try to check whether your objects generate a distance field:

i tried this thing but it shows nothing but skybox

Global DistanceField:

Mesh DistanceFields:

“All Mesh Distance Field features have been disabled on Intel cards because the HD 4000 hangs in the RHICreateTexture3D call to allocate the large atlas.” are you using this graphics card on a notebook eventually? Also try to update your graphics card driver.

1 Like

No, I’m using a desktop computer and it has a gtx760 in it. Also I have the latest drivers for my graphics card installed.

1 Like

having same problem here, hope someone could answer this

1 Like

Having the same issue in 5.3, can’t get distance fields on anything currently

Having this issue as well, Happen to find anything?
Originally I thought it was being caused by substrate but after disabling that and testing it doesn’t seem like that’s the case.
I’ve double checked just about every setting related to Distance Fields but nothing is working.

I discovered that distance fields are working for me, the visualization is just broken.

1 Like

I’m not having any luck with the DistanceToSurface function. Trying to get a test material working but its just not picking up anything. Any Volume Materials using DF are also not working. Seriously have no clue whats causing it.

same problem, the distance field is not working.
But when I change the RHI to Vulkan it started working, its not working in DirectX 11 or 12

hi, there, had the same problem - no distance field generates, enabling/ disabling in project settings helps nothing, directX switching do nothing too…
solved this problem for me: increased scalability to high and after that depth starts generating and starts works visualization

1 Like

So i have the same problem and i just changed rhi to vulkan…
AND EVERY THING BECOME PERFECT.

Not just distance fields start to work normally, global illumination and emission lightning start to work perfectly too.