• March 02, 2024, 06:28:10 PM
• Welcome, Guest

### News:

Forum rules - please read before posting, it can save you a lot of time.

Pages: [1]

0 Members and 1 Guest are viewing this topic.

#### Derrek3D

• Occasional poster
• Karma: 0
• Offline
• Posts: 82
« on: January 02, 2008, 12:06:14 PM »

I need some help in solving a problem I have with stencil shadows that is somehow hard to explain. In order to simplify the problem imagine a room with a floor and one big shadow-receiving wall. The actor steps near the wall and the shadow is correctly mapped on the floor and on the wall. Up until now everything is ok. Now place a small waist-high shadow-receiving object in front of the wall. Now when the actor steps near the wall, the shadow is mapped on the floor, on the wall (behind the object) and also on the object itself, creating a very unrealistic effect of two shadows with only one light source.

Any idea why this happens and any ways of overcoming the problem?
Logged

#### Mnemonic

• WME developer
• Karma: 41
• Offline
• Gender:
• Posts: 5683
##### Re: Problem with stencil shadows
« Reply #1 on: January 02, 2008, 01:18:14 PM »

I'm not sure I understand the problem correctly, but I'm afraid that's by design. The stencil shadows project a shadow volume from the actor, and the shadow itself is painted wherever the shadow volume hits the geometry.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum.

#### Derrek3D

• Occasional poster
• Karma: 0
• Offline
• Posts: 82
##### Re: Problem with stencil shadows
« Reply #2 on: January 02, 2008, 01:55:40 PM »

Well, I'm really not sure I managed to explain the problem very well... I'll try a different approach.

Logged

#### Mnemonic

• WME developer
• Karma: 41
• Offline
• Gender:
• Posts: 5683
##### Re: Problem with stencil shadows
« Reply #3 on: January 02, 2008, 02:12:38 PM »

Well, the shadow will be "cast through" the object, that's indeed by design. To get precise results one would have to use raycasting, to simulate the light occlusion, and that would be extremely computationally expensive.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum.
Pages: [1]

Page created in 0.016 seconds with 19 queries.