My dynamic shadows are broken :(

Hello everyone, this is my first post here. I’m working on my first UE4 game, I started a couple months ago. I’m having trouble with dynamic lighting from instanced foliage. It seems to just stop working half way through the scene. I posted more images on imgur to explain my settings. Can anyone help?

Hey there!

Are you sure that’s dynamic and not baked? You’ve checked your light source is dynamic?

They are all dynamic. Here’s a video to show what’s going on. I’m basically just spawning trees randomly in a spiral, using the blueprint shown in the image link

I just changed my light source to movable and it seems to fix the problem. I had my light source set to stationary before, and the tooltip says that should work for dynamic shadows. Sorry for the trouble, I guess I dont understand the lighting system fully yet.

Stationary lighting bakes the lighting into lightmaps, but they also allow you to use dynamic shadows with them. For example directional lights have cascaded shadow maps inside a set radius that you can change.

I got my lighting fixed. Here’s the results :slight_smile:

I figured it was probably the light source. Glad to see it’s resolved. =)

Hm, pretty cool terrain deformation you got there @mgumley

Any tips on how you’re doing it? Are you using the in-editor terrain or imported terrain?

Are you using some ‘polygonized’ voxel system?

Code or blueprints?

Thanks Gmi. Check out my discussion in the youtube comments. PolyVox is the main tool here, which transforms a 3d array of density values into a smooth mesh.

I had a similar issue a couple of days ago and setting the light to movable fixed it, too.