Difference between revisions of "Occlusion Query"

From OpenGL Wiki
Jump to navigation Jump to search
 
m (Adjusted redirect.)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
== How do I perform occlusion or visibility testing? ==
+
#REDIRECT [[Query Object#Occlusion queries]]
 
 
This is wrong!
 
 
 
OpenGL provides no direct support for determining whether a given primitive will be visible in a scene for a given viewpoint. At worst, an application will need to perform these tests manually.  The previous question contains information on how to do this.
 
 
 
The code example from question 10.010 was combined with Nate Robins' excellent viewing tutorial to produce this [http://lynx.inertiagames.com/~michael/OPENGLTUTORS.zip view culling example code].
 
 
 
Higher-level APIs, such as Fahernheit Large Model, may provide this feature.
 
 
 
HP OpenGL platforms support an Occlusion Culling extension. To use this extension, enable the occlusion test, render some bounding geometry, and call glGetBooleanv() to obtain the visibility status of the geometry.
 

Latest revision as of 15:15, 18 August 2012