View Full Version : Culling objects that are behind objects?
08-18-2012, 02:17 PM
Is there a name for culling objects that are hidden by other objects? And how is it done?
08-18-2012, 04:30 PM
Occlusion culling. The easiest way is to use the extension GL_ARB_occlusion_query. With this, you render your scene front to back. You group objects into bounding volumes, and before rendering the objects, you render the bounding volume while an occlusion query is active. It then counts the number of fragments that passed the depth test. If this amount is 0, it is occluded.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.