Out-facing Shadow Volume

Started by
1 comment, last by vrihai 21 years, 4 months ago
Whats the simplest way to make sure that all of the faces in my shadow volume are facing outwards. At the moment, I''m using just directional lights.
Advertisement
you have to construct you edge table the correct way,
store your edges point in the correct order so that you extruded face (2 edges points + extruded point) creates an out-facing face. Check the "Robust Shadows" Paper on Gamasutra.com, it helped me a lot for this
For each triangle, store a lookup to each of its neighbors, and from there its fairly simple. Edge-lists caused me all kinds of troubles with facing, which neighboring triangles solved simply

-----------------------
"When I have a problem on an Nvidia, I assume that it is my fault. With anyone else''s drivers, I assume it is their fault" - John Carmack
-----------------------"When I have a problem on an Nvidia, I assume that it is my fault. With anyone else's drivers, I assume it is their fault" - John Carmack

This topic is closed to new replies.

Advertisement