greg2

10-23-2003, 11:18 AM

I have posted a question about shadow volume (ZFAIL) some times ago: http://www.opengl.org/discussion_boards/ubb/Forum3/HTML/010323.html

I think i have found the source of my problem with shadow volume, but i don't know how to solve it.

I think the problem comes from:

_ When a mesh (mesh1) is inside the shadow volume of another mesh (mesh2), mesh1 is in front of the some part of the back side of the shadow volum of mesh2. And mesh1 increase the stencil buffer (because of the fail of the depht test).

I have not find any documentation which spoke about this problem.

Maybe i do not use shadow volume in the good way. But in theory, my problem comes from the algo i use and not from the way i code it.

How can i solve this problem?

Thanks.

I think i have found the source of my problem with shadow volume, but i don't know how to solve it.

I think the problem comes from:

_ When a mesh (mesh1) is inside the shadow volume of another mesh (mesh2), mesh1 is in front of the some part of the back side of the shadow volum of mesh2. And mesh1 increase the stencil buffer (because of the fail of the depht test).

I have not find any documentation which spoke about this problem.

Maybe i do not use shadow volume in the good way. But in theory, my problem comes from the algo i use and not from the way i code it.

How can i solve this problem?

Thanks.