Self Shadow in realtime?

Hello! :slight_smile:

I’m working on a project. Actually it’s just to render a character. So I was playing with the lights to see what I can do.

I have this result with a spot light :

http://www.mathieusimonprost.com/images/shared/char_original.jpg

It’s not that bad, but the cast shadow is kinda wierd.
The shadow should be more something like that (done in photoshop) :

http://www.mathieusimonprost.com/images/shared/char_photoshopped.jpg

The question is : Is there something I missed to render a better realtime self/cast shadow or should I have to bake a lightmap on my mesh?

Hi MathieuSP,

When it comes to very small areas of the mesh like nostrils you can lower the Shadow Bias to create more accurate shadows. The lower the number the closer the shadows will generate relative to the caster surface. Here is a before and after pic of default Shadow Bias vs Shadow Bias = .02

You can also increase the value of contact shadow length however, the results don’t look quite as good up close in the characters face.

Let me know if that helps,

It’s exactly what I was looking for, I will take a deeper look into the doc next time!
Thank you Ed :slight_smile: