Original Post
I'm trying to implement shadows, following Nehe's tutorial #27 (shadow volumes using the stencil buffer). The model I'm using has 6000 triangles, and I'm using an invisible model of about 2000 triangles to cast the shadows. I'm getting two types of problematic artifacts: First, this method naturally causes self-shadowing, which is fine, except the line between light and shadow looks pretty bad:
Second, the shadow cast on the ground sometimes has holes, particularly around his neck:
I'm following the tutorial pretty religiously, so you can take that to be my code. Is there any way of fixing either of these problems? Thanks!
Second, the shadow cast on the ground sometimes has holes, particularly around his neck:
I'm following the tutorial pretty religiously, so you can take that to be my code. Is there any way of fixing either of these problems? Thanks!