Sign in to follow this  

DirectX Stencil Shadows w/ screenie

This topic is 4838 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey guys, Check out this screen shot: http://webjeff.netfirms.com/newshadow.jpg I got it to work sorda, however, the shadow isn't formed properly, infact, when I try to trim the inner edges out, the whole volume shows up. Does anyone have any idea how or why this can happen? or if anyone else has seen this?? Thanks Jeff. [Edited by - Machaira on September 16, 2004 11:43:40 AM]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
check your index buffer, it looks like you are using the verticies in the wrong order when you render it.

Share this post


Link to post
Share on other sites
Maybe try getting it to work using a sphere or a cube or something more simple than the footballers for the time being - it's much easier to detect whether or not the shadows are correct (spheres are quite nice for this actually).

If your indexes are correct, then you should see a perfect sphere shadow being cast. If not, then I could do with a bit more information - such as are you using "Carmack's Reverse" algorithm? This is prone to holes appearing apparently if the shadow volumes aren't capped at both ends somehow.

Looks like you're nearly there though :) Keep going :P

-BPG

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
looks like the youre for-to-light test is bugy, prabobly light not in objet space ore something

Share this post


Link to post
Share on other sites

This topic is 4838 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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