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.
Problem whith the shadow
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
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.
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.
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.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net