Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: Dionysius on July 18, 2008, 03:57:23 PM

Title: Shadows over an actor
Post by: Dionysius on July 18, 2008, 03:57:23 PM
How to draw shadows from scene entities when the actor stay behind them? If the shadow simply draws (with alpha) over the actor, it seems unnatural. Because it must be like stancil shadow.
Title: Re: Shadows over an actor
Post by: Dionysius on July 25, 2008, 09:44:36 AM
Here is demonstration: http://img167.imageshack.us/img167/97/screenshadowto9.jpg

There is the shadow is a sprite entiry, which is drawn over the actor. It seems unnatural. Can anybody give me solution with this topic?
Title: Re: Shadows over an actor
Post by: odnorf on July 25, 2008, 10:20:18 AM
Change the sprite base (hot spot in SpriteEdit) and place it higher.
Title: Re: Shadows over an actor
Post by: Dionysius on July 25, 2008, 11:54:24 AM
I'm afraid you didn't unterstand the problem. I think that the shadow of the street light must be refracted when the actor is staying under it.
Title: Re: Shadows over an actor
Post by: odnorf on July 25, 2008, 12:01:09 PM
You want an entity to cast a stencil shadow over a character? That's not possible.
Title: Re: Shadows over an actor
Post by: Dionysius on July 25, 2008, 01:56:37 PM
And how do you custom shadows in your scenes? Is actor walk over them or is he covered by them?
Title: Re: Shadows over an actor
Post by: odnorf on July 25, 2008, 02:21:59 PM
I think that the best option is the actor walking over the shadow. That's how all 2.5D commercial adventures work (always as far as I know, but I really don't remember to have seen this feature anywhere).