Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: Stucki on May 07, 2008, 07:24:35 AM

Title: some stencil shadow artifacts
Post by: Stucki on May 07, 2008, 07:24:35 AM
i am experiencing some stencil shadow artifacts in one of my scenes.
this happens when i have no complete walk_floor that covers the whole ground.

in this scene i have only some boards with many gaps between them as walk_floor.
it seems that parts of the shadow are projekted to some plane beneath my walk_floor. But there is no 3d object i created there ?
i have experienced this behaviour in other scenes, too.

here are some screens:
the 3ds-file:
(http://www.schach-welten.de/wire.jpg)

scene_1:
(http://www.schach-welten.de/scene.jpg)

scene_2:
(http://www.schach-welten.de/scene_1.jpg)

as you can see the strange artifacts only appear between the 3ds geometry. when there is no ground to projekt the shadow onto.
Does anybody know why these shadow artifacts appear? and would the game run even faster if these artifacts could be turned off somehow?

greets
stucki
Title: Re: some stencil shadow artifacts
Post by: Mnemonic on May 07, 2008, 03:26:17 PM
The light source for shadows is probably set in such place which causes very very long shadows. The artifact you're seeing is the end of the projected "shadow volume" (normally it shouldn't be visible, because it's off-screen). You can probably work around it by moving the light higher, to change the shadow angle.
Title: Re: some stencil shadow artifacts
Post by: Stucki on May 07, 2008, 03:45:01 PM
thanks very much it helped !!
best regards
stucki