Hello. As you can see in a screenshot 1, light falls on the side of the box, and a line of light appears along the back wall of the box. I tried using contact shadows length, but as soon as the camera looks at objects from a different angle, a line of light appears again (as in 3 screenshots). I want the line of light not appear (as in screenshot 2). How can this be solved? Thanks.
It’s the “Preview” that you see in the shadows goober. I think changing the object to movable will get rid of it, or if you wish to keep it static, slap that “Build” and then slap “Build lighting only”
The object is moving. The construction of light does not affect a moving object. I tried your suggestions but nothing came of it. I have even more questions. The line of light becomes wider as you move the camera. I know that there are cascade shadows settings in directional light. But in local light sources, I did not find this setting. I also noticed that the farther from the light source the wider the line of light becomes. The shadow bias setting also copes with this problem, but artifacts appear at a value of 0.0.!alt text
Are you talking about the line of light on the top edge of the object? The light is accurately casting onto that edge, so to get rid of it, you’ll need to do something other than move the light or the object. Isn’t there a setting to change light scattering intensity of an object? You could potentially make a really small light importance volume that fits the edge precisely, and change its settings to basically filter out the light casting onto it.
I meant another line. Seen in the screenshot. I took a screenshot from a different angle. I also reduced the shadow map resolution for clarity.
Here’s something to try:
- Check that “Generate Mesh
Distance Fields” is enabled in
Project Settings - Rendering. If
it’s not enabled, enable it. - Select the point light being used in
the scene, as seen in the pics, and
in the Details panel scroll down to
Distance Field Shadows. Enable it
if it’s not already got a check in
it. Don’t change the distance
setting unless it’s 0. If distance
is 0, change it to at least 1000. - Go up the Details panel to where
Source Radius and Source Length are
located. Change the Source Radius
value steadily from 0, and see what
happens with the line of light that
you don’t want, and the shadowing.
Try not to intersect the scene with
the Source Radius value (distance
from the edge of source radius to
the cart object).
Here’s a link to the Distance Field Soft Shadows page of the docs, which describes briefly how distance field shadows are used with Source Radius to control specular highlights (or the unwanted line of light in this case):
It could also be the light is bouncing off the ground and casting a shadow of the object from that angle of incidence rather than strictly over the top side of it. I say that because there’s two round protrusions in the shadow inside the cart object (see screenshots 109 and 110) that appear to be the shadows of geometry below on the exterior of the cart (wheel housings or something?).
From what I read, the mesh distance field shadows are also less costly in memory and rendering speed. Interesting that it got rid of the weird protruding shadows inside the object. It may have distorted the corners, or those blocks supporting the cart interior at the base of the object, because it was calculating the occlusion wrong. Kinda like offsetting parts of the entire shadow to incorrect parts of the entire shadow. You’re welcome. I’m a beginner too, and have really become mystified by a number of lighting / shadowing features in Unreal.
You correctly thought that the problem might be in the “Generate Mesh Distance Fields”. I got a little confused in the names of the settings but was able to find the optimal values. In the screenshot, I highlighted the settings that I changed. What about the reflection from the floor, that was not the problem. Thanks for the help!