Page 1 of 1
Weird lighting/shadow on billboard
Posted: Mon Dec 05, 2022 12:58 am
by numidium3rd
Re: Weird lighting/shadow on billboard
Posted: Sat Mar 04, 2023 8:12 pm
by thenameisthegame
If I had to guess, I'd say maybe the light source is set on the same centered axis of the billboard, and as it both spawns and fades, causes shadows to be cast on - or ''through'' - the billboard for the parts behind it where light projects.
If environmental light is equal or greater than the light caused by the explosion, the issue is invisible/much less noticeable.
I don't know if a good work around could be to have the explosion have 2 light sources, one slightly in front and one slightly behind the center timed identically?
Re: Weird lighting/shadow on billboard
Posted: Thu Mar 09, 2023 1:19 pm
by pango
For enemies glow, I used several tricks, mainly put the light slightly in front on the billboard. Details:
https://github.com/Interkarma/daggerfal ... my.cs#L143
Re: Weird lighting/shadow on billboard
Posted: Sat Mar 11, 2023 5:17 pm
by numidium3rd
Thanks for resurrecting this post. I'll try putting it slightly in front. I'm guessing the issue is that the there's some z-fighting going on when the light source is at the exact position of the billboard.