Jump to content
  • Advertisement
Sign in to follow this  
rfterdarc

Shadow Volume

This topic is 4830 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

In the Microsoft DX SDK, theres a ShadowVolume example and on line 1057 theres a function called 'ComputeMeshScaling'. This is used to create a matrix, which is then used to shrink the objects down during rendering. If you make the scaling 1x then the shadow is rendered all over the place. Ive put the shadow volume shader in my engine, the shadows work fine but only when my 3d models are tiny. If i make them 1x scale, then the shadows are all messed up. Any way to make the shadows work with mesh objects that are not tiny?

Share this post


Link to post
Share on other sites
Advertisement
I can't really help you too much, but my shadow volume implementation was extremely similar to the DX sample one. If it's any help, I didn't have that problem at all, but then again, I completely rewrote the shaders.

If you need help rewriting them, or want to post a few screenshots and some code, I'd be glad to help.

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!