Jump to content
  • Advertisement
Sign in to follow this  
Alkiem

how to know depth test result

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

Is it possible to know the depth test result after rendering a triangle, ie: in the display ... glBegin(GL_TRIANGLES); ... glEnd(); ->i want to know at this moment if the triangle i have just rendered is visible (partially) or not (depending on the result of the depth test). Or is it possible to know the depth test result only on a vertex? Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
the occulsion test is what you'll want for that kinda of thing, i cant remember the extension name off the top of my head by its an ARB extension you want to search for

Share this post


Link to post
Share on other sites
Thanks a lot, it works fine. For those who wants an example code using it, go to http://www.g-truc.net/tuts.html#pack1 (it's a french site)

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!