Ignore:
Timestamp:
08/21/07 19:37:28 (17 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreBoundingBoxConverter.h

    r2353 r2543  
    291291                FindIntersectingObjects(box, *entryObjects); 
    292292 
     293                /*stringstream d; 
     294                d << "identified: " << entryObjects->size() << " objects \n"; 
     295                LogManager::getSingleton().logMessage(d.str()); 
     296*/ 
    293297                AddToObjects(entryObjects, objects, id); 
    294298        } 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp

    r2505 r2543  
    16861686        const bool finalizeViewCells = false; 
    16871687 
    1688         // load the view cells assigning the found objects to the pvss 
    1689         mViewCellsManager =  
    1690                 GtpVisibilityPreprocessor::ViewCellsManager:: 
     1688        ///////////// 
     1689        //-- load the view cells assigning the found objects to the pvss 
     1690 
     1691        if (!strstr(filename.c_str(), ".bn")) 
     1692        { 
     1693                LogManager::getSingleton().logMessage("*** loading xml view cells ***"); 
     1694 
     1695                mViewCellsManager = GtpVisibilityPreprocessor::ViewCellsManager:: 
    16911696                        LoadViewCells(filename, mObjects, finalizeViewCells, &bconverter); 
    1692          
    1693         LogManager::getSingleton().logMessage("******** view cells loaded *********"); 
    1694  
    1695         // objects are set to invisible initially 
    1696         //SetObjectsVisible(false); 
    1697  
    1698         if (finalizeViewCells) 
    1699                 CreateViewCellsGeometry(); 
    1700  
    1701         return (mViewCellsManager != NULL); 
     1697        } 
     1698        else 
     1699        { 
     1700                LogManager::getSingleton().logMessage("*** loading binary view cells ***"); 
     1701                mViewCellsManager = 
     1702                        LoadViewCellsBinary(filename, mObjects, finalizeViewCells, &bconverter); 
     1703        } 
     1704 
     1705        if (mViewCellsManager) 
     1706        { 
     1707                // objects are set to invisible initially 
     1708                if (0) SetObjectsVisible(false); 
     1709 
     1710                if (finalizeViewCells) 
     1711                        CreateViewCellsGeometry(); 
     1712 
     1713                LogManager::getSingleton().logMessage("******** view cells loaded *********"); 
     1714                return true; 
     1715        } 
     1716        else 
     1717        { 
     1718                LogManager::getSingleton().logMessage("******** loading view cells failed! *********"); 
     1719                return false; 
     1720        } 
    17021721} 
    17031722//------------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.