PDA

View Full Version : Self shadowing for a single polygonal mesh



maximian
12-25-2003, 05:43 PM
I am working on a cad program. I would like to know what specific shadowing technique I can use that will produce the best results for self shadowing. Ie shadowing cause by surface features on the mesh. I am only dealing with one mesh, and speed is not vital. I am trying to avoid the general global illumination approaches since their overkill.

Zeno
12-26-2003, 09:14 AM
I would use the stencil shadow volume technique. It is more accurate than depth-shadow techniques and pretty simple to use, at least on closed geometry.

maximian
12-26-2003, 10:38 AM
Thanks, I did not know you could do shadows with the stencil buffer.

Zeno
12-26-2003, 11:14 AM
A search on this forum for stencil shadows will reveal tons of threads. There's also a great paper on nvidia's web site that collects a lot of this information: http://developer.nvidia.com/object/fast_shadow_volumes.html

Eric Lengyel
12-26-2003, 12:14 PM
http://www.gamasutra.com/features/20021011/lengyel_01.htm