Shadow Volume Artifacts
hello people!
I have a problem with Shadow Volumes.
I use the z Fail Algorithm.
When I daw the shadow volume of one polygon everything is ok!
but if i draw the shadowvolume of a lot of polygon I get artifacts at the place that the two shadow volumes "contact".
why?
I think I can take a bash at the problem from his description.
Although in future a screenshot can help us to help you better.
You have 2 coplanar polygons and you''re doing depth testing on them - due to numerical inaccuracies in the zbuffer you''re probably getting what is called z-fighting.
Your solution is going to have to deal with that by grouping shadow volumes with coplanar polygons. Instead of extruding 2 shadows from 2 polygons, group the polygons (if they share an edge) and create a single volume.
Hope this helped,
FReY
Although in future a screenshot can help us to help you better.
You have 2 coplanar polygons and you''re doing depth testing on them - due to numerical inaccuracies in the zbuffer you''re probably getting what is called z-fighting.
Your solution is going to have to deal with that by grouping shadow volumes with coplanar polygons. Instead of extruding 2 shadows from 2 polygons, group the polygons (if they share an edge) and create a single volume.
Hope this helped,
FReY
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement