Changeset 84
- Timestamp:
- 05/03/05 22:56:32 (20 years ago)
- Location:
- trunk/VUT
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/Ogre/resources/VisibilityDemo.overlay
r74 r84 87 87 top 5 88 88 width 450 89 height 9089 height 105 90 90 material Core/StatsBlockCenter 91 91 border_size 1 1 1 1 … … 230 230 colour_bottom 0.3 0.5 0.3 231 231 } 232 element TextArea(Example/Visibility/NumObjects) 233 { 234 metrics_mode pixels 235 left 5 236 top 80 237 width 180 238 height 30 239 font_name TrebuchetMSBold 240 char_height 16 241 caption Number of objects 242 colour_top 0.5 0.7 0.5 243 colour_bottom 0.3 0.5 0.3 244 } 245 element TextArea(Example/Visibility/NumObjectsInfo) 246 { 247 metrics_mode pixels 248 left 180 249 top 80 250 width 90 251 height 30 252 font_name TrebuchetMSBold 253 char_height 16 254 caption : 255 colour_top 0.5 0.7 0.5 256 colour_bottom 0.3 0.5 0.3 257 } 232 258 233 259 -
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.