Jump to content
  • Advertisement
Sign in to follow this  
Poons

Occlusion Query - Visibility Ratio

This topic is 4104 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

Hi, I'm trying to find out the ratio of visible fragments to total number of fragments of a triangle. Getting the number of visible pixels is straightforward with an occlusion query. But can I somehow get the total number of fragments? I googled around for a while, and some sources state that they use the visibility ratio but they don't say how this is done. Thanks! Poons

Share this post


Link to post
Share on other sites
Advertisement
ive done the following (which shows how much overdraw u have)

clear stencil buffer to 0
with each fragment that passes depth test increment stencil

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!