Jump to content
  • Advertisement

Archived

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

Unreal

Shadow Volume Artifacts

This topic is 5235 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!