how to know depth test result

Started by
3 comments, last by Alkiem 19 years, 8 months ago
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.
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
I believe it was GL_EXT_reme, at least that's what an NVidia article says.
GL_ARB_occlusion_query was the extension name I ment
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)

This topic is closed to new replies.

Advertisement