Ignore:
Timestamp:
05/10/06 18:33:35 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r938 r944  
    168168    } 
    169169        // add bounding boxes of rendered objects 
    170         if (1) 
     170        if (0) 
    171171        for (BoxList::iterator it = mBoxes.begin(); it != mBoxes.end(); ++it) 
    172172        { 
     
    561561                if (mViewCellsLoaded) 
    562562                { 
    563                         LogManager::getSingleton().logMessage("here3"); 
    564563                        mUseViewCells = *static_cast<const bool *>(val); 
    565564 
     
    10141013                OgreMeshInstance *omi = static_cast<OgreMeshInstance *>(*it); 
    10151014                Entity *ent = omi->GetMesh(); 
    1016                 LogManager::getSingleton().logMessage("here999"); 
     1015                 
    10171016                ent->setVisible(visible); 
    10181017        } 
     
    10361035        // load the view cells assigning the found objects to the pvss 
    10371036        mViewCellsManager =  
    1038                 GtpVisibilityPreprocessor::ViewCellsManager::LoadViewCells(filename, &mObjects, env, &bconverter); 
     1037                GtpVisibilityPreprocessor::ViewCellsManager::LoadViewCells(filename, &mObjects, env, false, &bconverter); 
    10391038 
    10401039        if (!mViewCellsManager) 
     
    10551054                // set everything visible for savety 
    10561055                SetObjectsVisible(true); 
    1057 LogManager::getSingleton().logMessage("here7"); 
     1056 
    10581057                return; 
    10591058        } 
    1060                   LogManager::getSingleton().logMessage("here8"); 
     1059                 
    10611060        GtpVisibilityPreprocessor::ObjectPvsMap::const_iterator oit, 
    10621061                        oit_end = vc->GetPvs().mEntries.end(); 
     
    10691068                OgreMeshInstance *omi = dynamic_cast<OgreMeshInstance*>((*oit).first); 
    10701069                omi->GetMesh()->setVisible(load); 
    1071                 GtpVisibilityPreprocessor::Debug << "here45 " << omi->GetId() << endl; 
     1070                //GtpVisibilityPreprocessor::Debug << "assigned id " << omi->GetId() << endl; 
    10721071        } 
    10731072} 
     
    10891088 
    10901089        mElementaryViewCell = newElementary; 
    1091         LogManager::getSingleton().logMessage("unloading"); 
     1090        //LogManager::getSingleton().logMessage("unloading"); 
    10921091        //-- unload old pvs 
    10931092        applyViewCellPvs(mCurrentViewCell, false); 
     
    11101109                viewCell = newElementary; 
    11111110        } 
    1112         LogManager::getSingleton().logMessage("loading"); 
     1111        //LogManager::getSingleton().logMessage("loading"); 
    11131112        //-- load new pvs 
    1114         if (0)applyViewCellPvs(viewCell, true); 
     1113        applyViewCellPvs(viewCell, true); 
    11151114 
    11161115        // store pvs 
Note: See TracChangeset for help on using the changeset viewer.