Changeset 973 for GTP/trunk/App/Demos/Vis
- Timestamp:
- 05/22/06 07:58:02 (19 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.cpp
r956 r973 1199 1199 mViewCellsLoaded = mApplication->LoadViewCells(mApplication->mViewCellsFilename); 1200 1200 1201 if (!mViewCellsLoaded) 1202 { 1203 std::stringstream d; 1204 d << "loading view cells failed"; 1205 LogManager::getSingleton().logMessage(d.str()); 1206 } 1207 1201 1208 mLoadingOverlay->hide(); 1202 1209 } -
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrainApplication.cpp
r945 r973 185 185 186 186 187 #if 0 188 val = config.getSetting("ViewCells"); 189 187 /*val = config.getSetting("ViewCells"); 190 188 if (!val.empty()) 191 { 192 mViewCellsFilename = val.c_str(); 193 } 194 #endif 189 { mViewCellsFilename = val.c_str();}*/ 195 190 196 191 val = config.getSetting("VisibilityEnvironment"); … … 199 194 { 200 195 mEnvironmentFilename = val.c_str(); 201 std::stringstream d; d << "loading environment from f rom file: " << mEnvironmentFilename;196 std::stringstream d; d << "loading environment from file: " << mEnvironmentFilename; 202 197 LogManager::getSingleton().logMessage(d.str()); 203 198 } … … 243 238 else //-- load environment options 244 239 { 245 //-- get view cells name. loadonly on demand240 //-- get view cells file name, load view cells only on demand 246 241 mViewCellsFilename = visEnv->getViewCellsFileName(); 247 242 … … 252 247 else 253 248 { 254 LogManager::getSingleton().logMessage("error !no visibility scenemanager available");249 LogManager::getSingleton().logMessage("error: no visibility scenemanager available"); 255 250 } 256 251 // set camera position accordingly … … 605 600 if (msShowHillyTerrain) 606 601 { 607 //mSceneMgr = mRoot->createSceneManager("VisibilityTerrainSceneManager");608 602 //mSceneMgr = mRoot->createSceneManager("TerrainSceneManager"); 609 603 mSceneMgr = mRoot->createSceneManager("OcclusionCullingSceneManager"); 610 604 } 611 605 else 612 { //mSceneMgr = mRoot->createSceneManager("VisibilityTerrainSceneManager"); 613 //mSceneMgr = mRoot->createSceneManager("VisibilityOctreeSceneManager"); 606 { 614 607 //mSceneMgr = mRoot->createSceneManager("OctreeSceneManager"); 615 608 mSceneMgr = mRoot->createSceneManager("OcclusionCullingSceneManager"); … … 756 749 757 750 //-- the actual loading happens here 758 if (mSceneMgr->setOption("LoadViewCells", filename.c_str())) 759 return true; 760 761 LogManager::getSingleton().logMessage("error loading view cells!!"); 762 763 return false; 751 return mSceneMgr->setOption("LoadViewCells", filename.c_str()); 764 752 } 765 753 -
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrainApplication.h
r937 r973 142 142 String mFilename; 143 143 String mViewCellsFilename; 144 // name of the visibility environment file144 /// name of the visibility environment file 145 145 String mEnvironmentFilename; 146 146
Note: See TracChangeset
for help on using the changeset viewer.