Changeset 84 for trunk/VUT/work
- Timestamp:
- 05/03/05 22:56:32 (20 years ago)
- Location:
- trunk/VUT/work
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/TestCulling/TestCullingApplication.cpp
r82 r84 119 119 mAlgorithmInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/AlgorithmInfo"); 120 120 mThresholdInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/ThresholdInfo"); 121 121 122 mFrustumCulledNodesInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/FrustumCulledNodesInfo"); 122 123 mQueryCulledNodesInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/QueryCulledNodesInfo"); … … 124 125 mHierarchyNodesInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/HierarchyNodesInfo"); 125 126 mRenderedNodesInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/RenderedNodesInfo"); 127 mNumObjectsInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/NumObjectsInfo"); 126 128 127 129 mAlgorithmInfo->setCaption(": " + mCurrentAlgorithmCaptions[mCurrentAlgorithm]); … … 132 134 mHierarchyNodesInfo->setCaption(": 0"); 133 135 mRenderedNodesInfo->setCaption(": 0"); 136 mNumObjectsInfo->setCaption(": 0"); 134 137 135 138 pOver->show(); … … 254 257 mSceneMgr->getOption("NumRenderedNodes", &opt); sprintf(str,": %d", opt); 255 258 mRenderedNodesInfo->setCaption(str); 259 260 sprintf(str,": %d", mTerrainContentGenerator->GetObjectCount()); 261 mNumObjectsInfo->setCaption(str); 256 262 } 257 263 //----------------------------------------------------------------------- -
trunk/VUT/work/TestCulling/TestCullingApplication.h
r79 r84 81 81 OverlayElement *mHierarchyNodesInfo; 82 82 OverlayElement *mRenderedNodesInfo; 83 OverlayElement *mNumObjectsInfo; 83 84 }; 84 85 -
trunk/VUT/work/TestCullingTerrain/TerrainContentGenerator.cpp
r82 r84 87 87 mMaxHeight = maxHeight; 88 88 } 89 //----------------------------------------------------------------------- 90 int TerrainContentGenerator::GetObjectCount() 91 { 92 return mCount; 93 } 89 94 90 95 } // namespace Ogre -
trunk/VUT/work/TestCullingTerrain/TerrainContentGenerator.h
r81 r84 34 34 35 35 void SetMaxHeight(Real maxHeight); 36 int GetObjectCount(); 36 37 37 38 protected: -
trunk/VUT/work/TestCullingTerrain/TestCullingTerrainApplication.cpp
r82 r84 97 97 mTerrainContentGenerator = new TerrainContentGenerator(mSceneMgr); 98 98 mTerrainContentGenerator->GenerateScene(300, "robot.mesh"); 99 // no limitations now: the user can set objects also on peaks 99 // no limitations needed anymore: the user can set 100 // objects also on peaks of terrain 100 101 mTerrainContentGenerator->SetMaxHeight(5000); 101 102 } … … 165 166 mAlgorithmInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/AlgorithmInfo"); 166 167 mThresholdInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/ThresholdInfo"); 168 167 169 mFrustumCulledNodesInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/FrustumCulledNodesInfo"); 168 170 mQueryCulledNodesInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/QueryCulledNodesInfo"); … … 170 172 mHierarchyNodesInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/HierarchyNodesInfo"); 171 173 mRenderedNodesInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/RenderedNodesInfo"); 174 mNumObjectsInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/NumObjectsInfo"); 172 175 173 176 mAlgorithmInfo->setCaption(": " + mCurrentAlgorithmCaptions[mCurrentAlgorithm]); … … 178 181 mHierarchyNodesInfo->setCaption(": 0"); 179 182 mRenderedNodesInfo->setCaption(": 0"); 180 183 mNumObjectsInfo->setCaption(": 0"); 184 181 185 pOver->show(); 182 186 } … … 332 336 mSceneMgr->getOption("NumRenderedNodes", &opt); sprintf(str,": %d", opt); 333 337 mRenderedNodesInfo->setCaption(str); 338 339 sprintf(str,": %d", mTerrainContentGenerator->GetObjectCount()); 340 mNumObjectsInfo->setCaption(str); 334 341 } 335 342 //----------------------------------------------------------------------- -
trunk/VUT/work/TestCullingTerrain/TestCullingTerrainApplication.h
r82 r84 79 79 OverlayElement *mTraversedNodesInfo; 80 80 OverlayElement *mHierarchyNodesInfo; 81 OverlayElement *mSceneNodesInfo;81 //OverlayElement *mSceneNodesInfo; 82 82 OverlayElement *mRenderedNodesInfo; 83 OverlayElement *mNumObjectsInfo; 83 84 84 85 SceneNode *mCurrentObject; // The newly created object
Note: See TracChangeset
for help on using the changeset viewer.