NeXEkho
07-28-2010, 01:28 PM
Most of the examples I can find of occlusion queries check the occlusion of each object each frame and then act on that the next to prevent stalling the pipeline (I can understand this; if you ask for the number of pixels you have to wait for the number to be generated) but when they are occluded, the object is replaced by its bounding box (with the colour and depth masks preventing rendering) and if any of that is visible the object is rendered.
This, to me, presents a problem; if the object becomes occluded, but its bounding box (by nature, filling more volume) is not, does this not mean that it will become visible and invisible every frame as it is made visible, occluded, invisible, bounding box not occluded, made visible, occluded, invisible, bounding box not occluded, and so on, which would lead to an uneven and unstable framerate?
This, to me, presents a problem; if the object becomes occluded, but its bounding box (by nature, filling more volume) is not, does this not mean that it will become visible and invisible every frame as it is made visible, occluded, invisible, bounding box not occluded, made visible, occluded, invisible, bounding box not occluded, and so on, which would lead to an uneven and unstable framerate?