Changeset 2278 for GTP/trunk/Lib/Vis/OnlineCullingCHC/src
- Timestamp:
- 03/22/07 11:48:21 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/OnlineCullingCHC/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/GtpVisibility.vcproj
r2258 r2278 71 71 OptimizeForProcessor="3" 72 72 OptimizeForWindowsApplication="TRUE" 73 AdditionalIncludeDirectories="..\include;"$(OGRE_PATH)\OgreMain\include" ;..\..\Preprocessing\src"74 PreprocessorDefinitions="WIN32;NDEBUG;_LIB "73 AdditionalIncludeDirectories="..\include;"$(OGRE_PATH)\OgreMain\include"" 74 PreprocessorDefinitions="WIN32;NDEBUG;_LIB;GTP_VISIBILITY_MODIFIED_OGRE;GAMETOOLS_ILLUMINATION_MODULE" 75 75 StringPooling="TRUE" 76 76 RuntimeLibrary="2" -
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/RandomUpdateCullingManager.cpp
r2259 r2278 106 106 continue; 107 107 } 108 108 if (mHierarchyInterface->IsLeaf(node)) 109 { 110 if (mHierarchyInterface->IsNodeVisible(node)) 111 Ogre::LogManager::getSingleton().logMessage("u"); 112 else 113 Ogre::LogManager::getSingleton().logMessage("g"); 114 } 115 109 116 if (mHierarchyInterface->IsNodeFullyVisible(node)) 110 { 117 {Ogre::LogManager::getSingleton().logMessage("here8"); 111 118 // node fully visible => test only random leaves 112 119 for (int i = 0; i < mRandomCandidates; ++ i) 113 120 { 121 Ogre::LogManager::getSingleton().logMessage("z"); 114 122 HierarchyNode *randomLeaf = mHierarchyInterface->GetRandomLeaf(node); 115 123 -
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/VisibilityEnvironment.cpp
r2183 r2278 1 1 #include "VisibilityEnvironment.h" 2 #include "common.h"3 #include "Environment.h"2 //#include "common.h" 3 //#include "Environment.h" 4 4 5 5 … … 10 10 { 11 11 // HACK: loading debug stream should not happen here 12 GtpVisibilityPreprocessor::Debug.open("debug.log"); 13 // load environment 14 //Environment::GetSingleton() = new GtpVisibilityPreprocessor::Environment::GetSingleton(); 12 //GtpVisibilityPreprocessor::Debug.open("debug.log"); 15 13 } 16 14 //----------------------------------------------------------------------- 17 15 VisibilityEnvironment::~VisibilityEnvironment() 18 16 { 19 GtpVisibilityPreprocessor::Environment::DelSingleton();17 //GtpVisibilityPreprocessor::Environment::DelSingleton(); 20 18 } 21 19 //----------------------------------------------------------------------- … … 23 21 { 24 22 //-- parse environment 25 return GtpVisibilityPreprocessor::Environment::GetSingleton()->ReadEnvFile(filename.c_str());23 return false;//GtpVisibilityPreprocessor::Environment::GetSingleton()->ReadEnvFile(filename.c_str()); 26 24 } 27 25 //----------------------------------------------------------------------- … … 29 27 { 30 28 char str[200]; 31 GtpVisibilityPreprocessor::Environment::GetSingleton()->GetStringValue("Scene.filename", str);29 //GtpVisibilityPreprocessor::Environment::GetSingleton()->GetStringValue("Scene.filename", str); 32 30 return str; 33 31 } … … 36 34 { 37 35 char str[200]; 38 GtpVisibilityPreprocessor::Environment::GetSingleton()->GetStringValue("ViewCells.filename", str);36 //GtpVisibilityPreprocessor::Environment::GetSingleton()->GetStringValue("ViewCells.filename", str); 39 37 40 38 return str; 41 39 } 42 40 //----------------------------------------------------------------------- 43 GtpVisibilityPreprocessor::Environment *VisibilityEnvironment::GetPreprocessorEnvironment()41 /*GtpVisibilityPreprocessor::Environment *VisibilityEnvironment::GetPreprocessorEnvironment() 44 42 { 45 43 return GtpVisibilityPreprocessor::Environment::GetSingleton(); 46 } 44 }*/ 45 47 46 } // namespace GtpVisibility -
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/VisibilityManager.cpp
r2066 r2278 5 5 #include "DummyPreprocessingManager.h" 6 6 #include "DummyQueryManager.h" 7 //#include "BatchedQueriesCullingManager.h"7 #include "RandomUpdateCullingManager.h" 8 8 9 9 namespace GtpVisibility { … … 53 53 case VisibilityEnvironment::STOP_AND_WAIT_CULLING: 54 54 mCullingManager = new StopAndWaitCullingManager(); 55 //new BatchedQueriesCullingManager();56 55 break; 57 56 … … 61 60 62 61 case VisibilityEnvironment::FRUSTUM_CULLING: 63 mCullingManager = new FrustumCullingManager(); 62 //mCullingManager = new FrustumCullingManager(); 63 mCullingManager = new RandomUpdateCullingManager(); 64 64 break; 65 65
Note: See TracChangeset
for help on using the changeset viewer.