Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Shadow volumes calculation

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

Hi guys,

Do anybody know what's the best way to calculate the shadow volume of a mesh, generated by a directional light?
I looked to the DX7SDK ShadowVol2 sample but it seemed too complicated to me.
Is out there an easier way of doing this?

Share this post

Link to post
Share on other sites
Guest Anonymous Poster

I think the easiest way to do this is to first calculate the silouhette (or how do you write this) / contours of the object.
This can be done by calculating the edges which form the contours.
If you know the contour edges you can create a plane for each edge.
All these edges will setup the volume.
Everything inside this volume is inside the shadow casted by this object.
Ofcourse you can also use projection for this, by calculating the shadow texture of this object and then project it on the geometry which is visible seen from the light.

Anyway, I hope this helps you a bit in the right direction

- John vd Burg
Programmer of Oxygen3D
john@mysticgd.com http://www.mysticg.dcom

Share this post

Link to post
Share on other sites

  • 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!