Jump to content
  • Advertisement
Sign in to follow this  
webjeff

DirectX Stencil Shadows w/ screenie

This topic is 5055 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!