Changeset 2253 for GTP/trunk/Lib/Vis
- Timestamp:
- 03/15/07 18:49:25 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp
r2206 r2253 401 401 LogManager::getSingleton().logMessage("****** Finished OcclusionCullingSceneManager Options ********"); 402 402 } 403 404 403 //----------------------------------------------------------------------- 405 404 void OcclusionCullingSceneManager::MailPvsObjects() 406 405 { … … 451 450 }*/ 452 451 } 453 454 452 //----------------------------------------------------------------------- 455 453 void OcclusionCullingSceneManager::RenderPvsEntry(GtpVisibilityPreprocessor::Intersectable *obj) 456 454 { … … 608 606 if (mNormalExecution) 609 607 { 610 return SceneManager::_setPass(pass);608 return TerrainSceneManager::_setPass(pass); 611 609 } 612 610 … … 717 715 mNormalExecution) 718 716 { 719 OctreeSceneManager::_findVisibleObjects(cam, onlyShadowCasters);717 TerrainSceneManager::_findVisibleObjects(cam, onlyShadowCasters); 720 718 } 721 719 else if (mUseDepthPass) … … 768 766 TerrainSceneManager::_renderVisibleObjects(); 769 767 770 //LogManager::getSingleton().logMessage("x");771 768 mIlluminationStage = savedStage; 772 769 } 773 770 else //-- the hierarchical culling algorithm 774 { //LogManager::getSingleton().logMessage("y");771 { 775 772 // note matt: this is also called in TerrainSceneManager: really necessary? 776 773 mDestRenderSystem->setLightingEnabled(false); … … 862 859 if (0) WriteLog(); // write out stats 863 860 } 864 865 861 //----------------------------------------------------------------------- 866 862 void OcclusionCullingSceneManager::_updateSceneGraph(Camera* cam) … … 1040 1036 if (key == "VisibilityManager") 1041 1037 { 1042 //Ogre::LogManager::getSingleton().logMessage("here77");1043 1038 * static_cast<GtpVisibility::VisibilityManager **>(val) = mVisibilityManager; 1044 1039 return true; … … 1143 1138 QueuedRenderableCollection::OrganisationMode om) 1144 1139 { 1140 if (mNormalExecution) 1141 { 1142 return TerrainSceneManager::renderBasicQueueGroupObjects(pGroup, om); 1143 } 1145 1144 // Basic render loop 1146 1145 // Iterate through priorities … … 1166 1165 QueuedRenderableCollection::OM_SORT_DESCENDING, true); 1167 1166 } 1168 1169 1170 1167 } // for each priority 1171 1168 } … … 1176 1173 if (mNormalExecution) 1177 1174 { 1178 return SceneManager::validatePassForRendering(pass);1175 return TerrainSceneManager::validatePassForRendering(pass); 1179 1176 } 1180 1177 … … 1429 1426 { 1430 1427 // only render solid passes during hierarchical culling 1431 if (m IsHierarchicalCulling)1428 if (mNormalExecution || mIsHierarchicalCulling) 1432 1429 { 1433 1430 RenderQueueGroup::PriorityMapIterator groupIt = pGroup->getIterator(); … … 1470 1467 RenderQueueGroup* pGroup, QueuedRenderableCollection::OrganisationMode om) 1471 1468 { 1472 if (m IsHierarchicalCulling)1469 if (mNormalExecution || mIsHierarchicalCulling) 1473 1470 { 1474 1471 // Iterate through priorities … … 1487 1484 else 1488 1485 { 1489 OctreeSceneManager::renderModulativeStencilShadowedQueueGroupObjects(pGroup, om);1486 TerrainSceneManager::renderModulativeStencilShadowedQueueGroupObjects(pGroup, om); 1490 1487 } 1491 1488 } … … 1910 1907 bool includeOverlays) 1911 1908 { 1912 if ( 1&& mNormalExecution)1909 if (0 && mNormalExecution) 1913 1910 { 1914 1911 TerrainSceneManager::_renderScene(camera, vp, includeOverlays); … … 2362 2359 bool onlyShadowCasters) 2363 2360 { 2364 if ( 1 ||mNormalExecution)2361 if (mNormalExecution) 2365 2362 { 2366 2363 TerrainSceneManager::_findVisibleObjects(cam, onlyShadowCasters); -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/Plugin_VisibilitySceneManager.vcproj
r2229 r2253 322 322 AdditionalLibraryDirectories=""$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\Release";"$(OGRE_PATH)\OgreMain\lib\Release";"$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib";..\..\GtpVisibility\lib\Release;..\..\lib\Release;..\lib\Release;"$(OGRE_PATH)\Dependencies\lib\Release";..\..\..\Preprocessing\lib\Release;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\Preprocessing\src\GL;"$(CG_LIB_PATH)";..\..\..\..\..\..\..\NonGTP\Zlib\lib;..\..\..\..\..\Lib\Vis\Preprocessing\MultiLevelRayTracing\RTWorld\Release;..\..\..\..\..\Lib\Vis\Preprocessing\MultiLevelRayTracing\RTScene\Release;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\Release;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\ObjReader\lib\Release" 323 323 ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def" 324 GenerateDebugInformation=" FALSE"324 GenerateDebugInformation="TRUE" 325 325 SubSystem="2" 326 326 OptimizeReferences="2"
Note: See TracChangeset
for help on using the changeset viewer.