Changeset 175 for trunk/VUT/GtpVisibility
- Timestamp:
- 07/14/05 20:54:07 (19 years ago)
- Location:
- trunk/VUT/GtpVisibility
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibility/include/HierarchyInterface.h
r174 r175 47 47 @returns occlusion query for this node 48 48 */ 49 virtual OcclusionQuery *Issue OcclusionQuery(HierarchyNode *node,49 virtual OcclusionQuery *IssueNodeOcclusionQuery(HierarchyNode *node, 50 50 const bool wasVisible = false) = 0; 51 51 /** Sets the root of the scene hierarchy. … … 124 124 CullingType type) = NULL; 125 125 126 /** Returns vector of previously rendered hierarchy nodes.126 /** Returns vector of visible hierarchy nodes from previous render. 127 127 */ 128 128 std::vector<HierarchyNode *> *GetVisibleNodes(); … … 130 130 */ 131 131 132 /** Issue a occlusion query for this mesh.133 @param node the current mesh134 @returns occlusion query for this node135 */136 virtual GtpVisibility::OcclusionQuery *IssueOcclusionQuery(GtpVisibility::Mesh *mesh) = 0;137 138 132 /** Returns the geometry of a given hierarchy node. 139 133 @param node the hierarchy node containing the geometry … … 144 138 GeometryList *geometryList, 145 139 bool includeChildren) = 0; 146 147 148 /** Renders the given geometry.149 */150 virtual void RenderGeometry(GtpVisibility::Mesh *geom) = 0;151 140 152 141 … … 159 148 */ 160 149 void TestGeometryForVisibleLeaves(bool testGeometry); 161 162 150 163 151 -
trunk/VUT/GtpVisibility/include/VisibilityEnvironment.h
r74 r175 13 13 /** Different types of occlusion culling algorithms 14 14 */ 15 enum CullingManagerType {FRUSTUM_CULLING, 15 enum CullingManagerType { 16 COHERENT_HIERARCHICAL_CULLING, 17 FRUSTUM_CULLING, 16 18 STOP_AND_WAIT_CULLING, 17 COHERENT_HIERARCHICAL_CULLING,18 19 NUM_CULLING_MANAGERS}; 19 20 -
trunk/VUT/GtpVisibility/src/CoherentHierarchicalCullingManager.cpp
r158 r175 25 25 unsigned int visiblePixels = 0; 26 26 bool isAvailable = false; 27 27 //Ogre::LogManager::getSingleton().logMessage("Coherent Hierarchical Culling"); 28 28 29 //-- PART 1: process finished occlusion queries 29 30 while (!mHierarchyInterface->GetQueue()->empty() || !queryQueue.empty()) … … 105 106 106 107 queryQueue.push(QueryPair(node, mHierarchyInterface-> 107 Issue OcclusionQuery(node, wasVisible)));108 IssueNodeOcclusionQuery(node, wasVisible))); 108 109 } 109 110 -
trunk/VUT/GtpVisibility/src/FrustumCullingManager.cpp
r158 r175 7 7 void FrustumCullingManager::RenderScene() 8 8 { 9 //Ogre::LogManager::getSingleton().logMessage("Frustum Culling"); 9 10 while (!mHierarchyInterface->GetQueue()->empty()) 10 11 { -
trunk/VUT/GtpVisibility/src/StopAndWaitCullingManager.cpp
r158 r175 7 7 void StopAndWaitCullingManager::RenderScene() 8 8 { 9 //Ogre::LogManager::getSingleton().logMessage("Stop and Wait Culling"); 9 10 while (!mHierarchyInterface->GetQueue()->empty()) 10 11 { … … 40 41 unsigned int visiblePixels = 0; 41 42 42 mHierarchyInterface->Issue OcclusionQuery(node)->GetQueryResult(visiblePixels, true);43 mHierarchyInterface->IssueNodeOcclusionQuery(node)->GetQueryResult(visiblePixels, true); 43 44 44 45 // node visible
Note: See TracChangeset
for help on using the changeset viewer.