no shadows from meshes off screen

Ok so for a while I have been wondering why my shadows come on and off and I have realised that whatever is drawing the shadows ISN’T casting shadows from meshes that are off the screen, but their shadows SHOULD be drawn.

I think this is occuring because the meshes are placed their procedurally from a blueprint

Hey rodstone -

A quick question about your placement of the meshes, are you placing them as static meshes or are you placing them as Instanced Static Meshes? Also can you post a screenshot your the issue, it will help me narrow down the issue.

Thank You

Eric Ketchum

I use “Add static mesh component”

I don’t know if a screenshot would help much (included anyway) because you don’t notice they’re missing until they appear while you’re playing on my backdrop

A bit like meshes popping in at distance, but shadows from meshes that are off the screen that ShOULD be casting shadows on my level and don’t until you ar closer to the mesh

Hey rodstone -

This is perhaps a bounds issue as the player’s camera frustum determine the rendered shadows and if an objects bounds are out of the frustum it will not render its shadows. You can go into the Blueprint and adjust the spawned Mesh’s Bound Scale (default =1.0) upwards. Realize that this will decrease performance as you increase the bounds higher.

Thank You

Eric Ketchum

That does sound like a solution. My meshes are pretty simple so perfomance drop might not be big. Now I just gotta find out where that setting is :wink: Thanks

Hey rodstone -

It should be in the details of the panel of the mesh components in your blueprint under Rendering, advanced drop down

Thank You

Eric Ketchum

I found it, but can I access this setting when I add the components from within the construction script? I’d have to be able to access it from the BP graph (which I can’t find a node). Maybe I will need to apply it to the root component and hope it’s inherited. :slight_smile:

Which I just checked, and I can’t do, because ALL my meshes are added in the construction script, so there is no parent component with that parameter/setting.

Hopefully this can be added to BP in the future so my shadows in my game will look ok.