Page 1 of 1

Problem whith the shadow

Posted: Tue Oct 09, 2007 5:51 am
by ledgarl
Hi.
I donĀ“t speak English.

I am creating a game.
I have a problem with the shadow. The shadow going beyond of the wall and create more shadows.

is this a bug?

please help me!

Thanks.
Image
Image

Posted: Thu Jun 12, 2008 3:29 am
by ledgarl
How I solve this problem?

Posted: Thu Jun 12, 2008 7:59 am
by hybrid
Wow, you're very patient :) However, this is a problem with the way shadow volumes work, it's not easily avoidable. It should be possible to add a user clip plane to cut off stuff at a certain range. Or you add scissors to the screen before rendering the shadow. In all cases you'll have to calculate the correct places where shadows ought occur, though, and do your placement of culling planes or scissors carefully.
Another way is to limit the shadow volume to a certain depth. Again, you have to calculate that depth carefully to avoid missing shadows.
Or you use shadowmaps which avoid this problem completely.

Posted: Thu Jun 12, 2008 1:48 pm
by BlindSide
Check out my sig (XEffects) for an easy to use shadow mapping wrapper. Best of luck with your project, this is the first time I've seen someone wait 10 months for a forum reply. :P

Posted: Thu Jun 12, 2008 4:28 pm
by Dorth
Yeah, gotta admit I'm VERY impressed with that level of patience... Don't hesitate to ask for help, I think you've well earned the effort :P

Posted: Thu Jun 26, 2008 3:15 am
by wuallen
give my respect to the creator of this thread.

Posted: Thu Jul 17, 2008 5:06 am
by ledgarl
jejeje, thanks, and I will use shadowmaps for my game, it is the best solution. Thanks :)