Changeset 1268 for GTP/trunk/App/Demos/Vis
- Timestamp:
- 08/23/06 20:35:46 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.cpp
r1256 r1268 1184 1184 //----------------------------------------------------------------------- 1185 1185 void TerrainFrameListener::toggleUseViewCells() 1186 { 1186 {LogManager::getSingleton().logMessage("here52"); 1187 1187 // HACK: no view cells for hilly terrain 1188 1188 if (mApplication->msShowHillyTerrain) 1189 1189 return; 1190 1190 LogManager::getSingleton().logMessage("here533"); 1191 1191 mUseViewCells = !mUseViewCells; 1192 1192 … … 1198 1198 // call once to load view cell loading overlay 1199 1199 mWindow->update(); 1200 1200 LogManager::getSingleton().logMessage("here5"); 1201 1201 mViewCellsLoaded = mApplication->LoadViewCells(mApplication->mViewCellsFilename); 1202 1202 … … 1205 1205 std::stringstream d; 1206 1206 d << "loading view cells failed"; 1207 LogManager::getSingleton().logMessage("here7"); 1207 1208 LogManager::getSingleton().logMessage(d.str()); 1208 1209 } 1209 1210 1211 LogManager::getSingleton().logMessage("here82"); 1210 1212 mLoadingOverlay->hide(); 1211 1213 } -
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrainApplication.cpp
r1265 r1268 226 226 227 227 //-- load the scene from specified file 228 228 LogManager::getSingleton().logMessage("here5112"); 229 229 if (!LoadScene(mFilename)) 230 230 LogManager::getSingleton().logMessage("error loading scene"); 231 231 232 232 LogManager::getSingleton().logMessage("here6"); 233 233 GtpVisibility::VisibilityManager *mVisManager = NULL; 234 234 … … 236 236 if (mSceneMgr->getOption("VisibilityManager", &mVisManager)) 237 237 { 238 LogManager::getSingleton().logMessage("here7"); 238 239 GtpVisibility::VisibilityEnvironment *visEnv = mVisManager->GetVisibilityEnvironment(); 239 240 LogManager::getSingleton().logMessage("here7.04"); 240 241 if (!visEnv->LoadEnvironment(mEnvironmentFilename)) 241 { 242 {LogManager::getSingleton().logMessage("here7.l2"); 242 243 std::stringstream d; d << "failed loading environment from " << mEnvironmentFilename; 243 244 LogManager::getSingleton().logMessage(d.str()); 244 245 } 245 246 else //-- load environment options 246 { 247 {LogManager::getSingleton().logMessage("here8"); 247 248 //-- get view cells file name, load view cells only on demand 248 249 mViewCellsFilename = visEnv->getViewCellsFileName(); … … 256 257 LogManager::getSingleton().logMessage("error: no visibility scenemanager available"); 257 258 } 258 259 LogManager::getSingleton().logMessage("here9"); 259 260 // set camera position accordingly 260 261 mCamNode->setPosition(v); … … 774 775 LogManager::getSingleton().logMessage("error loading scene. loading terrain instead"); 775 776 } 777 LogManager::getSingleton().logMessage("here521"); 776 778 } 777 779 else if (strstr(filename.c_str(), ".dae"))
Note: See TracChangeset
for help on using the changeset viewer.