Shadow Volume Artifacts

Started by
1 comment, last by Unreal 20 years, 2 months ago
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?
Advertisement
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
do unto others... and then run like hell.
FReY: You understood the problem.
THis is exectly the problem I have. I will try to groop shadows into one.
If I upload any screenshots i will put them here. But you told me the solution.
Thanks Guys!

This topic is closed to new replies.

Advertisement