Download

Need help with distance field resolution and shadowing artifacts

How do you change the distance field resolution on a mesh, does it need to be adjusted when creating the mesh before importing it into the engine? I have opened the mesh viewer in the engine and adjusted the distance field resolution from 1 to 100 and seen no difference in the distance field or shadow generated from the ray traced light.

e9f2a406cc415645d9504e0336e3bd8e2d7f1896.jpega221d7c0bc093112cedd3bbf0a3703c60bb552b5.jpeg

I also have a problem with a particular mesh having severe artifacting when lit using distance field shadows and I’m not sure how to fix it, Video below:

also in this video is a issue where light is penetrating terrain from beneath the map in some areas and I’m also at a loss on that one.

Any help would be appreciated.

You need to change the resolution scale and then hit the ‘Apply Changes’ button, which will rebuild the distance field at higher res. Don’t go that crazy with the values though, as build times increase quickly. Try 2, 3, 4 first.

thanx, I didn’t see the apply button lol