Changeset 971 for GTP/trunk/Lib/Vis/OnlineCullingCHC
- Timestamp:
- 05/22/06 07:53:18 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis/OnlineCullingCHC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp
r955 r971 1033 1033 mVisibilityManager->GetVisibilityEnvironment()->GetPreprocessorEnvironment(); 1034 1034 1035 if (!env) 1036 { 1037 std::stringstream d; 1038 d << "here454 error loading view cells: no view cells environment " << endl; 1039 LogManager::getSingleton().logMessage(d.str()); 1040 } 1041 1042 std::stringstream d; 1043 d << "filename999: " << filename.c_str(); 1044 LogManager::getSingleton().logMessage(d.str()); 1045 1035 1046 // load the view cells assigning the found objects to the pvss 1036 1047 mViewCellsManager = … … 1040 1051 { 1041 1052 std::stringstream d; 1042 d << " error loading view cells" << endl;1053 d << "here344 error loading view cells: no view cells manager " << endl; 1043 1054 LogManager::getSingleton().logMessage(d.str()); 1044 1055 } -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreVisibilitySceneManagerDll.cpp
r938 r971 49 49 // load visibility environment 50 50 visEnv = new GtpVisibility::VisibilityEnvironment(); 51 //visEnv->LoadEnvironment("simple.env");52 51 visManager = new GtpVisibility::VisibilityManager(visEnv); 53 52 -
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/VisibilityEnvironment.cpp
r944 r971 9 9 VisibilityEnvironment::VisibilityEnvironment() 10 10 { 11 // load debug stream11 // HACK: loading debug stream should not happen here 12 12 GtpVisibilityPreprocessor::Debug.open("debug.log"); 13 14 13 // load environment 15 14 mEnvironment = new GtpVisibilityPreprocessor::Environment(); … … 22 21 //----------------------------------------------------------------------- 23 22 bool VisibilityEnvironment::LoadEnvironment(string filename) 24 { 25 //-- parse filename into c-style argument list 26 /*char argc = 2; 27 char *argv[2]; 28 argv[0] = ""; 29 30 char fname[200]; 31 sprintf(fname, "%s", filename.c_str()); 32 argv[1] = fname; 33 34 GtpVisibilityPreprocessor::Debug << "loading environment from: " << argv[1] << endl; 35 return GtpVisibilityPreprocessor::environment->Parse(argc, argv, false); 36 */ 23 { 37 24 //-- parse environment 38 25 return mEnvironment->ReadEnvFile(filename.c_str());
Note: See TracChangeset
for help on using the changeset viewer.