Changeset 2543 for GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src
- Timestamp:
- 08/21/07 19:37:28 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp
r2505 r2543 1686 1686 const bool finalizeViewCells = false; 1687 1687 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:: 1691 1696 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 } 1702 1721 } 1703 1722 //-------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.