Changeset 2171 for GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE
- Timestamp:
- 02/27/07 10:25:01 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.cpp
r2168 r2171 570 570 bool relativeVisibility, 571 571 bool useItemBuffer) 572 { Ogre::LogManager::getSingleton().logMessage("here225");572 { 573 573 int itemBufferMode = useItemBuffer ? mItemBufferMode : 0; 574 574 … … 579 579 580 580 // no visibility manager available => no visibility scene manager, return 581 GtpVisibility::VisibilityManager *visManager = NULL; 582 581 GtpVisibility::VisibilityManager *visManager = NULL; 583 582 if (!mSceneMgr->getOption("VisibilityManager", &visManager)) 584 583 { … … 586 585 return; 587 586 } 587 588 588 GtpVisibility::HierarchyInterface *hierarchyInterface = NULL; 589 589 if (!mSceneMgr->getOption("HierarchyInterface", &hierarchyInterface)) … … 592 592 return; 593 593 } 594 Ogre::LogManager::getSingleton().logMessage("here663"); 594 595 595 mQueryManager = new OcclusionQueriesQueryManager(hierarchyInterface, 596 mWindow->getViewport(0), queryModes, itemBufferMode); 597 Ogre::LogManager::getSingleton().logMessage("here6699"); 596 mWindow->getViewport(0), 597 queryModes, 598 itemBufferMode); 599 598 600 //mQueryManager = new PlatformQueryManager(sm->GetHierarchyInterface(), mWindow->getViewport(0), false); 599 600 601 601 602 visManager->SetQueryManager(mQueryManager); … … 604 605 GtpVisibility::MeshInfoContainer visibleGeometry; 605 606 GtpVisibility::PatchInfoContainer visiblePatches; 606 Ogre::LogManager::getSingleton().logMessage("here999");607 607 608 608 if (fromPoint) 609 {Ogre::LogManager::getSingleton().logMessage("her11e5"); 610 mQueryManager-> 611 ComputeFromPointVisibility(mCamNode->getPosition(), &visibleNodes, 612 &visibleGeometry, &visiblePatches, relativeVisibility); 609 { 610 mQueryManager->ComputeFromPointVisibility(mCamNode->getPosition(), 611 &visibleNodes, 612 &visibleGeometry, 613 &visiblePatches, 614 relativeVisibility); 613 615 } 614 616 else 615 617 { 616 Ogre::LogManager::getSingleton().logMessage("here995");617 618 mQueryManager->ComputeCameraVisibility(*mCamera, 618 &visibleNodes, &visibleGeometry, &visiblePatches, relativeVisibility); 619 &visibleNodes, 620 &visibleGeometry, 621 &visiblePatches, 622 relativeVisibility); 619 623 } 620 624 … … 630 634 int geomSize = 0, nodesSize = 0, patchSize = 0; 631 635 632 ///////////////// //////////////////////////////////////////////////////////636 ///////////////// 633 637 //-- apply queries on geometry level 634 638 … … 654 658 655 659 656 657 /////////////////////////////////////////////////////////////////////////// 660 //////////////// 658 661 //-- apply queries on node level 659 660 662 661 663 GtpVisibility::NodeInfoContainer::iterator nodesIt, nodesIt_end = visibleNodes.end(); … … 678 680 679 681 680 //////////////// ///////////////////////////////////////////////////////////682 //////////////// 681 683 //-- apply queries on patch level 682 684 … … 1249 1251 void TerrainFrameListener::toggleShowViewCells() 1250 1252 { 1251 mShowViewCells = !mShowViewCells; 1252 mSceneMgr->setOption("ShowViewCells", &mShowViewCells); 1253 if (0) // tmp matt 1254 { 1255 mShowViewCells = !mShowViewCells; 1256 mSceneMgr->setOption("ShowViewCells", &mShowViewCells); 1257 } 1258 else 1259 { 1260 unsigned int numObjects; 1261 mSceneMgr->getOption("VisibleObjects", &numObjects); 1262 } 1253 1263 } 1254 1264 //----------------------------------------------------------------------- -
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrain.vcproj
r2168 r2171 98 98 LinkIncremental="1" 99 99 AdditionalLibraryDirectories=""$(OGRE_PATH)\Dependencies\Lib\$(ConfigurationName)";"$(OGRE_PATH)\OgreMain\Lib\$(ConfigurationName)";"$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)";"$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib";"..\..\..\..\..\Lib\Vis\OnlineCullingCHC\lib\$(ConfigurationName)";"..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\lib\$(ConfigurationName)";"..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)";..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;"..\..\..\..\..\Lib\Vis\Preprocessing\lib\$(ConfigurationName)"" 100 GenerateDebugInformation=" TRUE"100 GenerateDebugInformation="FALSE" 101 101 SubSystem="2" 102 102 OptimizeReferences="2"
Note: See TracChangeset
for help on using the changeset viewer.