- Timestamp:
- 08/24/06 18:01:42 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreOcclusionCullingSceneManager.h
r1251 r1276 207 207 208 208 bool mDeleteQueueAfterRendering; 209 210 // normal terrain rendering 211 bool mNormalExecution; 209 212 }; 210 213 -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp
r1267 r1276 21 21 #include "OgreBoundingBoxConverter.h" 22 22 23 // normal terrain rendering24 const static NORMAL_RENDER_HACK = false;25 23 26 24 namespace Ogre { … … 52 50 mCurrentViewCell(NULL), 53 51 mElementaryViewCell(NULL), 54 mDeleteQueueAfterRendering(true) 52 mDeleteQueueAfterRendering(true), 53 mNormalExecution(false) 55 54 { 56 55 Ogre::LogManager::getSingleton().logMessage("creating occlusion culling scene manager"); … … 210 209 const Pass *OcclusionCullingSceneManager::_setPass(const Pass* pass, bool evenIfSuppressed) 211 210 { 212 if ( NORMAL_RENDER_HACK)211 if (mNormalExecution) 213 212 { 214 213 return SceneManager::_setPass(pass); … … 287 286 bool onlyShadowCasters) 288 287 { 289 if ( NORMAL_RENDER_HACK)288 if (mNormalExecution) 290 289 { 291 290 OctreeSceneManager::_findVisibleObjects(cam, onlyShadowCasters); … … 328 327 void OcclusionCullingSceneManager::_renderVisibleObjects() 329 328 { 330 if ( NORMAL_RENDER_HACK)329 if (mNormalExecution) 331 330 { 332 331 OctreeSceneManager::_renderVisibleObjects(); … … 462 461 void OcclusionCullingSceneManager::_updateSceneGraph(Camera* cam) 463 462 { 464 if ( NORMAL_RENDER_HACK)463 if (mNormalExecution) 465 464 { 466 465 OctreeSceneManager::_updateSceneGraph(cam); … … 574 573 } 575 574 575 return true; 576 } 577 if (key == "NormalExecution") 578 { 579 mNormalExecution = *static_cast<const bool *>(val); 576 580 return true; 577 581 } … … 675 679 676 680 // Do transparents (always descending) 677 if ( NORMAL_RENDER_HACK|| !mSkipTransparents)681 if (mNormalExecution || !mSkipTransparents) 678 682 { 679 683 renderObjects(pPriorityGrp->getTransparents(), … … 688 692 bool OcclusionCullingSceneManager::validatePassForRendering(Pass* pass) 689 693 { 690 if ( NORMAL_RENDER_HACK)694 if (mNormalExecution) 691 695 { 692 696 return SceneManager::validatePassForRendering(pass); … … 710 714 QueuedRenderableCollection::OrganisationMode om) 711 715 { 712 if ( NORMAL_RENDER_HACK|| !mIsItemBufferPhase)716 if (mNormalExecution || !mIsItemBufferPhase) 713 717 { 714 718 TerrainSceneManager::_renderQueueGroupObjects(pGroup, om); -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/Plugin_VisibilitySceneManager.vcproj
r1273 r1276 87 87 OmitFramePointers="TRUE" 88 88 EnableFiberSafeOptimizations="TRUE" 89 OptimizeForProcessor="2" 89 OptimizeForProcessor="3" 90 OptimizeForWindowsApplication="TRUE" 90 91 AdditionalIncludeDirectories=""$(OGRE_PATH)\PlugIns\OctreeSceneManager\include";"$(OGRE_PATH)\Samples\Common\include";"$(OGRE_PATH)\Dependencies\include\CEGUI";"$(OGRE_PATH)\Samples\Common\CEGUIRenderer\include";"$(OGRE_PATH)\OgreMain\include";"$(OGRE_PATH)\Dependencies\include";..\include;..\..\..\OnlineCullingCHC\include;..\..\..\Preprocessing\src" 91 92 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PLUGIN_KD_TERRAIN_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE" … … 111 112 AdditionalLibraryDirectories=""$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)";"$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)";"$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib";"$(OGRE_PATH)\Dependencies\lib\$(ConfigurationName)";"..\..\..\Preprocessing\lib\$(ConfigurationName)";..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\Preprocessing\src\GL;..\..\..\..\..\..\..\NonGTP\Zlib\lib;"..\..\lib\$(ConfigurationName)"" 112 113 ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def" 113 GenerateDebugInformation=" TRUE"114 GenerateDebugInformation="FALSE" 114 115 SubSystem="2" 115 116 OptimizeReferences="2"
Note: See TracChangeset
for help on using the changeset viewer.