PDA

View Full Version : Ohh yes... Shadow volumes again!



unreal
11-30-2004, 01:54 AM
hehe.. its me again...
oh.. yes.. an other question about shadow volumes...
I was reading the eric's tutorial at gamasutra about shadow volumes.
Somewere says that for point lights we need a list of quads do calculate the shadow.
What if i have one triangle only? how i can make a list of quads from a tringle?

thanks in advance!

Relic
11-30-2004, 05:52 AM
Take the three edges and extrude them away from the point light, gives three quads.

jwatte
11-30-2004, 10:55 AM
You also need to cap the end of the volume, so you need to add another triangle at the end of that extruded volume.