Self-shadowing with stencils

hi guys,

I’m using stencil shadows on some new character figures in my game, and I was wondering if there is a good technique to eliminate the shadow from the polygon (tri) that is actually casting the shadow. I want the shadow to cast onto everything, but just not the polygon that is actually casting the shadow.

Maybe when I see the results, I won’t want it, but I was wondering if there is a standard way to get this done.

Thanks.

Draw the character after applying the shadow-volumes?

… with stencil test off.

Thanks for the replies.

I’m not sure what you mean by stencil-test-off. I want a shadow from the character’s arm to cast onto his body, etc. I haven’t had time try your suggestions yet, but soon.

you said you want to eliminate the shadow. so you need to draw everything shadowed with stencil test on then disable stencil test and render the non-receivers on top.