Only Main Character having shadows

Hi there,

I just realized that only my main character is throwing shadows and none of my environment does. I made some floating stones: http://ix.io/1OxM
No shadow to see.
The code that loads the parts of my track where none is showing any shadow is:
http://ix.io/1OxO
Shadowmap etc is initialized in the main part and works fine for the characters:
http://ix.io/1OxQ

Greetings

This seems to have been an angle issue only. dlights seem to perform very bad in angles close to 90°.
But this shadow on the left http://pasteall.org/pic/show.php?id=46b70e25f2997fe1918418711239bed9 still looks bad to me and it does not change no matter what the angle is.

Looking at that, I suspect that Panda takes the “draw the object inside-out” approach to shadow-mapping, and that your object doesn’t have geometry on its bottom (which would be exposed if the object were drawn inside-out). If I’m correct, simply adding a bottom-face to the block should fix it.

1 Like

Yes, this did it. Thank you

1 Like