Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Dynamic Character Shadows

Hey guys!

So this has probably been asked more than you'd care to think about,
but I appear to be having an issue.

All of my static lighting works exactly as I had imagined, and I always spend a lot of time making sure that my lightmaps are a reasonable even green.

For the most part, I have mainly been working off of the basic directional light, but now that I'm tweaking post process, etc, for dark and dank scenes, I've been noticing issues with Stationary Point Lights.

Here is the scene I am working on: alt text

As you can see on the right, everything is nice and even, except the blue CSG in the background,
and the higher res floor. (An attempt to fix the issue)

The only light affecting this scene is the Stationary point light on the left.

And here is the annoying result: alt text

I actually don't even know what is happening.
Depending on the closeness to the light, or the rotation of the actor, the shadows appear, flicker in and out, or just disappear altogether.

(Also the feet never look like they're on the floor because the shadows are accurate!)

Any ideas on what the issue could be?

Thanks again guys!


Product Version: Not Selected
scene_vis.jpg (449.6 kB)
dynamicshadows.png (423.2 kB)
more ▼

asked Aug 16 '14 at 05:53 AM in Rendering

avatar image

47 7 7 11

avatar image Matt_Cooke Aug 16 '14 at 01:59 PM

I'm not sure about the flickering, but have you tried adjusting the shadow bias of the light source to correct the position of the shadow in relation to the character model? Best wishes,


avatar image Loken01 Aug 16 '14 at 10:02 PM

Hey Matt!

The shadow bias has fixed the issues with the shadows not starting at the contact position!
alt text

However, I'm still having the issue of shadows disappearing depending on my rotation. (How is that even possible??)
alt text

Thanks again for helping me out!


avatar image Matt_Cooke Aug 16 '14 at 11:07 PM

That's great. I'm glad that worked at least. Unfortunately I'm not sure about the other problem. Is your character definitely set to 'moveable' as opposed to 'static'?

avatar image Loken01 Aug 16 '14 at 11:12 PM

Hey Matt!

Its using the base content from the sidescroller C++ template. I've double checked all the settings, and it's definitely movable!

I don't know what the problem is :/


(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

See if the skeletal mesh has a physics asset assigned to it. Physical assets are used to optimize dynamic shadows for skeletal meshes.

more ▼

answered Aug 17 '14 at 08:30 AM

avatar image

1.1k 29 35 71

avatar image Loken01 Aug 17 '14 at 11:33 AM

Hey Denny!

You are actually a godsend!

Since I was using the Mesh from a UE Template, I didn't even consider it not having a physics asset!

For the most part, the issues are gone now, especially with tweaks to the shadow bias.

I still get the odd shadow disappearance, but that may just be due to being too close to the light.

Thank you so much!


(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question