Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Culling objects that are behind objects?

  1. #1
    Intern Newbie
    Join Date
    Mar 2012
    Location
    Devon, England
    Posts
    39

    Culling objects that are behind objects?

    Is there a name for culling objects that are hidden by other objects? And how is it done?
    Help Me [img]<<GRAEMLIN_URL>>/smile.gif[/img]

  2. #2
    Junior Member Regular Contributor
    Join Date
    Mar 2012
    Posts
    115
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •