Sign in to follow this  
Sambori

Stencil Shadow Problem

Recommended Posts

I have a basic stencil shadows working for a relatively complex model; however, when I look at the model from a point closer to the light source, from above, then I see another copy of the shadow (actually the occluder) casted as a shadow. What's this visual artifact called? What causes it? Thanks.

Share this post


Link to post
Share on other sites
Actually I'm using depth-fail method. I dont have the back(dark) caps set as I have the shadow volume planes extended to very far away using a large value. I set the far clipping plane of the view frustum to a very large number as well so that it does not clip the extended shadow volume planes. I have the light caps set properly however.
I don't setup perspective matrix neither the w to handle infinite shadow volumes cause I'm not sure how :)


Share this post


Link to post
Share on other sites
Not enough info?

I tried to use infinity shadow volume using an infinite projection matrix. That solved the problem but another problem arises which is depth/z buffer fighting.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this