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 4 of 4

Thread: Occlusion test for occtrees

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2003
    Location
    Spain, Madrid
    Posts
    3

    Occlusion test for occtrees

    Hi.
    I'm working on a 3d engine for outdoor enviroments, but also for caverns and closed places. I don't want static solutions (Like BSP), because the engine must handle massive world changes( Quakes, craters, explosions and more destruction effects). I`ve tried with octtrees. Frustum culling works well, but with dense landscapes i get low FPS (4-6). However, I've observed that many objects can be occluded by closed places on average scenes. Perhaps, with an occlusion test the engine would avoid render many fancy objects (like Plants, sharp rocks, peaks etc. ) that are not visible; currently in montain landscapes .
    I've thought that testing the visibility of each node of the octtree, by passing the node sphere to the depth buffer ,the engine can avoid render many bounded children by such nodes. So I need to read a feedback buffer for checking what sphere was rendered successfully. Is possible to test node visibility by rendering in FeedbackBuffer mode? How the use of feedbacks affects the performance?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    2,704

    Re: Occlusion test for occtrees

    In an outdoors engine, you need to optimize for the worst case, because the worst case WILL happen. Users aren't very likely to like your outdoors scene if it runs at 30 fps down in valleys, but 4 fps as they cross ridges, and dive into sub-1 fps as they climb into an aeroplane and take off :-)

    Trust me: the worst case WILL happen. Thus, you need to optimize for that.
    "If you can't afford to do something right,
    you'd better make sure you can afford to do it wrong!"

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Dec 2000
    Location
    Reutlingen, Germany
    Posts
    2,052

    Re: Occlusion test for occtrees

    You won´t get happy using the feedback buffer, since it is implemented in software, so everytime you use the feedback buffer you can forget any hardware acceleration.

    You should check the extension "nv_occlusion_query".
    And there are good algorithms for testing occlusion. Search the web for it.

    Jan.
    GLIM - Immediate Mode Emulation for GL3

  4. #4
    Advanced Member Frequent Contributor
    Join Date
    Dec 2002
    Location
    Espoo, Finland
    Posts
    599

    Re: Occlusion test for occtrees

    But before that, make sure you're using LOD. That'll make a bigger difference, is arguably easier to implement and does optimize for the worst case too.

    -Ilkka

Posting Permissions

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