Archived

This topic is now archived and is closed to further replies.

Unreal

Shadow Volume Artifacts

Recommended Posts

Unreal    124
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?

Share this post


Link to post
Share on other sites
FReY    424
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

Share this post


Link to post
Share on other sites
Unreal    124
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!

Share this post


Link to post
Share on other sites