Ignore:
Timestamp:
05/22/06 07:53:18 (18 years ago)
Author:
mattausch
Message:

added stuff for view cell ziping (not working yet!)

Location:
GTP/trunk/Lib/Vis/OnlineCullingCHC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp

    r955 r971  
    10331033                mVisibilityManager->GetVisibilityEnvironment()->GetPreprocessorEnvironment(); 
    10341034 
     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 
    10351046        // load the view cells assigning the found objects to the pvss 
    10361047        mViewCellsManager =  
     
    10401051        { 
    10411052                std::stringstream d; 
    1042                 d << "error loading view cells" << endl; 
     1053                d << "here344 error loading view cells: no view cells manager " << endl; 
    10431054                LogManager::getSingleton().logMessage(d.str()); 
    10441055        } 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreVisibilitySceneManagerDll.cpp

    r938 r971  
    4949        // load visibility environment 
    5050        visEnv = new GtpVisibility::VisibilityEnvironment(); 
    51         //visEnv->LoadEnvironment("simple.env"); 
    5251        visManager = new GtpVisibility::VisibilityManager(visEnv); 
    5352 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/src/VisibilityEnvironment.cpp

    r944 r971  
    99VisibilityEnvironment::VisibilityEnvironment() 
    1010{ 
    11         // load debug stream 
     11        // HACK: loading debug stream should not happen here 
    1212        GtpVisibilityPreprocessor::Debug.open("debug.log"); 
    13  
    1413        // load environment 
    1514        mEnvironment = new GtpVisibilityPreprocessor::Environment();      
     
    2221//----------------------------------------------------------------------- 
    2322bool 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{                
    3724        //-- parse environment 
    3825        return mEnvironment->ReadEnvFile(filename.c_str()); 
Note: See TracChangeset for help on using the changeset viewer.