Jump to content

  • Log In with Google      Sign In   
  • Create Account


Shadow volumes calculation


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Odiseo   Members   -  Reputation: 122

Like
Likes
Like

Posted 08 December 1999 - 03:38 AM

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?


Sponsor:

#2 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 08 December 1999 - 03:38 AM

Hi,

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





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS