- Timestamp:
- 05/10/06 18:33:35 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp
r938 r944 168 168 } 169 169 // add bounding boxes of rendered objects 170 if ( 1)170 if (0) 171 171 for (BoxList::iterator it = mBoxes.begin(); it != mBoxes.end(); ++it) 172 172 { … … 561 561 if (mViewCellsLoaded) 562 562 { 563 LogManager::getSingleton().logMessage("here3");564 563 mUseViewCells = *static_cast<const bool *>(val); 565 564 … … 1014 1013 OgreMeshInstance *omi = static_cast<OgreMeshInstance *>(*it); 1015 1014 Entity *ent = omi->GetMesh(); 1016 LogManager::getSingleton().logMessage("here999");1015 1017 1016 ent->setVisible(visible); 1018 1017 } … … 1036 1035 // load the view cells assigning the found objects to the pvss 1037 1036 mViewCellsManager = 1038 GtpVisibilityPreprocessor::ViewCellsManager::LoadViewCells(filename, &mObjects, env, &bconverter);1037 GtpVisibilityPreprocessor::ViewCellsManager::LoadViewCells(filename, &mObjects, env, false, &bconverter); 1039 1038 1040 1039 if (!mViewCellsManager) … … 1055 1054 // set everything visible for savety 1056 1055 SetObjectsVisible(true); 1057 LogManager::getSingleton().logMessage("here7"); 1056 1058 1057 return; 1059 1058 } 1060 LogManager::getSingleton().logMessage("here8");1059 1061 1060 GtpVisibilityPreprocessor::ObjectPvsMap::const_iterator oit, 1062 1061 oit_end = vc->GetPvs().mEntries.end(); … … 1069 1068 OgreMeshInstance *omi = dynamic_cast<OgreMeshInstance*>((*oit).first); 1070 1069 omi->GetMesh()->setVisible(load); 1071 GtpVisibilityPreprocessor::Debug << "here45" << omi->GetId() << endl;1070 //GtpVisibilityPreprocessor::Debug << "assigned id " << omi->GetId() << endl; 1072 1071 } 1073 1072 } … … 1089 1088 1090 1089 mElementaryViewCell = newElementary; 1091 LogManager::getSingleton().logMessage("unloading");1090 //LogManager::getSingleton().logMessage("unloading"); 1092 1091 //-- unload old pvs 1093 1092 applyViewCellPvs(mCurrentViewCell, false); … … 1110 1109 viewCell = newElementary; 1111 1110 } 1112 LogManager::getSingleton().logMessage("loading");1111 //LogManager::getSingleton().logMessage("loading"); 1113 1112 //-- load new pvs 1114 if (0)applyViewCellPvs(viewCell, true);1113 applyViewCellPvs(viewCell, true); 1115 1114 1116 1115 // store pvs
Note: See TracChangeset
for help on using the changeset viewer.