Revision 146,
1.2 KB
checked in by mattausch, 19 years ago
(diff) |
added assumed visibility
|
Rev | Line | |
---|
[59] | 1 | #ifndef _CoherentHierarchicalCullingManager_H__
|
---|
| 2 | #define _CoherentHierarchicalCullingManager_H__
|
---|
| 3 |
|
---|
| 4 | #include "CullingManager.h"
|
---|
| 5 | #include "HierarchyInterface.h"
|
---|
| 6 |
|
---|
| 7 |
|
---|
| 8 | namespace GtpVisibility
|
---|
| 9 | {
|
---|
| 10 |
|
---|
| 11 | /** Renders the scene with the coherent hierarchical culling algorithm.
|
---|
| 12 | */
|
---|
| 13 | class CoherentHierarchicalCullingManager : public CullingManager
|
---|
| 14 | {
|
---|
| 15 | public:
|
---|
[142] | 16 | CoherentHierarchicalCullingManager();
|
---|
[59] | 17 | void RenderScene();
|
---|
[146] | 18 | /** Sets assumed visibility which is a an estimation for e
|
---|
| 19 | how many frames the visibility is considered to be valied
|
---|
| 20 | @param assumedVisibility indicates for how many frames the
|
---|
| 21 | same visibility is be assumed.
|
---|
| 22 | if 0, the visibility is tested deterministically for each frame.
|
---|
[142] | 23 | */
|
---|
[146] | 24 | void SetAssumedVisibility(unsigned int assumedVisibility);
|
---|
| 25 |
|
---|
[142] | 26 | protected:
|
---|
| 27 | /** Decides wether occlusion query should be issued depending on some
|
---|
| 28 | assumed visibility factor.
|
---|
| 29 | @returns if occlusion query should be issued
|
---|
| 30 | */
|
---|
| 31 | bool DecideQueryTest(HierarchyNode *node) const;
|
---|
[146] | 32 |
|
---|
| 33 | unsigned int mAssumedVisibility;
|
---|
| 34 | /** Threshold for rand function to return positive result with respect to
|
---|
| 35 | mAssumedVisibility.
|
---|
| 36 | */
|
---|
| 37 | unsigned int mThreshold;
|
---|
[59] | 38 | };
|
---|
| 39 |
|
---|
| 40 | } // namespace GtpVisibility
|
---|
| 41 |
|
---|
| 42 | #endif // CoherentHierarchicalCullingManager_H
|
---|
Note: See
TracBrowser
for help on using the repository browser.