Problem whith the shadow

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
ledgarl
Posts: 30
Joined: Wed Oct 25, 2006 1:58 pm
Location: Bogota,Colombia

Problem whith the shadow

Post 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
ledgarl
Posts: 30
Joined: Wed Oct 25, 2006 1:58 pm
Location: Bogota,Colombia

Post by ledgarl »

How I solve this problem?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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.
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post 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
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Dorth
Posts: 931
Joined: Sat May 26, 2007 11:03 pm

Post 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
wuallen
Posts: 67
Joined: Thu Jan 25, 2007 3:07 am
Location: Shanghai

Post by wuallen »

give my respect to the creator of this thread.
ledgarl
Posts: 30
Joined: Wed Oct 25, 2006 1:58 pm
Location: Bogota,Colombia

Post by ledgarl »

jejeje, thanks, and I will use shadowmaps for my game, it is the best solution. Thanks :)
Post Reply