Hi,
I have noticed (with a little pain) that the shadow volume demo that comes with JOGL doesn’t work with flat planes, or meshs with deleted triangles making holes in them.
A mesh could be said to have a hole if it has a face with an edge that is not shared by another face.
The demo appears to only work with objects that are solid objects, where as a plane of two triangles doesn’t cast a correct shadow.
I think this is related to the methods for drawing the end caps of the shadow volume. Since a flat plane will only have one side facing the light source, then it doesn’t have both caps on the shadow volume.
After doing all the work of including the shadow volume rendering in my engine. I find that I can’t use it.
I’m thinking I will have to use NeHe’s shadow solution, which doesn’t work if the camera moves inside the shadow volume. Where as the JOGL demo works in this case.
Can anyone confirm my problem who understands what I might be talking about?
Thanks,