Search code examples
c++openglshadowstencil-buffer

problem with shadow volume using opengl


I cannot figure out a solution to my shadown projections using shadow volumes and stencil buffers. The problem can be viewed in: www.dt.fee.unicamp.br/~ricfow/shadowProblem.avi

In this other video: www.dt.fee.unicamp.br/~ricfow/shadowProblemAux.avi only the faces associated to the silhouettes have been draw, where blue means front face and red back face.

What could be the problem?


Solution

  • Problem solved. Some edges beloging to the silhouettes were being extruded twice. Thanks.