opengl_enquirer
10-01-2003, 06:02 PM
i'm slightly irritated, and am hoping some contributor might be able to offer a creative solution to this dilemma of mine.
the thing is i'm rendering axially symmetric geometry. naturally it is apropriate to divide the geometry in symmetrical halves so not to duplicate the memory overhead redundantly.
an issue arises with rendering shadow volumes. and i believe the issue only pertains to doing so with a double sided stencil buffer. you see when the geometry is divided the polygons that would be inside the geometry are discarded leaving open edges. now i don't think the open edges in themselves are the problem because after both sides are rendered they are essentially closed in the buffer. but there is a slight ovelap along the seem which reverses the stencil value projected from the seam about 1 pixel or less thick. creating runs in the final stencil image.
i tried offsetting the geometry slightly to so that the halves do not overlap to no prevail. i'm not really sure if the effect is due to the openness that is if the halves were closed, capped, i wonder if that would eleviate the problem.
are there no stencil function parameters which might alleviate this?
any advice would be greatly apreciated.
michael
the thing is i'm rendering axially symmetric geometry. naturally it is apropriate to divide the geometry in symmetrical halves so not to duplicate the memory overhead redundantly.
an issue arises with rendering shadow volumes. and i believe the issue only pertains to doing so with a double sided stencil buffer. you see when the geometry is divided the polygons that would be inside the geometry are discarded leaving open edges. now i don't think the open edges in themselves are the problem because after both sides are rendered they are essentially closed in the buffer. but there is a slight ovelap along the seem which reverses the stencil value projected from the seam about 1 pixel or less thick. creating runs in the final stencil image.
i tried offsetting the geometry slightly to so that the halves do not overlap to no prevail. i'm not really sure if the effect is due to the openness that is if the halves were closed, capped, i wonder if that would eleviate the problem.
are there no stencil function parameters which might alleviate this?
any advice would be greatly apreciated.
michael