Changeset 2168 for GTP/trunk/App/Demos/Vis
- Timestamp:
- 02/26/07 18:49:46 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.cpp
r2145 r2168 570 570 bool relativeVisibility, 571 571 bool useItemBuffer) 572 { 572 {Ogre::LogManager::getSingleton().logMessage("here225"); 573 573 int itemBufferMode = useItemBuffer ? mItemBufferMode : 0; 574 574 … … 581 581 GtpVisibility::VisibilityManager *visManager = NULL; 582 582 583 if (!mSceneMgr->getOption("VisibilityManager", visManager)) 583 if (!mSceneMgr->getOption("VisibilityManager", &visManager)) 584 { 585 Ogre::LogManager::getSingleton().logMessage("no vismanager found"); 584 586 return; 585 587 } 586 588 GtpVisibility::HierarchyInterface *hierarchyInterface = NULL; 587 if (!mSceneMgr->getOption("HierarchyInterface", hierarchyInterface)) 589 if (!mSceneMgr->getOption("HierarchyInterface", &hierarchyInterface)) 590 { 591 Ogre::LogManager::getSingleton().logMessage("no hierarchy interface found"); 588 592 return; 589 593 } 594 Ogre::LogManager::getSingleton().logMessage("here663"); 590 595 mQueryManager = new OcclusionQueriesQueryManager(hierarchyInterface, 591 596 mWindow->getViewport(0), queryModes, itemBufferMode); 592 597 Ogre::LogManager::getSingleton().logMessage("here6699"); 593 598 //mQueryManager = new PlatformQueryManager(sm->GetHierarchyInterface(), mWindow->getViewport(0), false); 594 599 … … 599 604 GtpVisibility::MeshInfoContainer visibleGeometry; 600 605 GtpVisibility::PatchInfoContainer visiblePatches; 601 606 Ogre::LogManager::getSingleton().logMessage("here999"); 602 607 603 608 if (fromPoint) 604 { 609 {Ogre::LogManager::getSingleton().logMessage("her11e5"); 605 610 mQueryManager-> 606 611 ComputeFromPointVisibility(mCamNode->getPosition(), &visibleNodes, … … 609 614 else 610 615 { 616 Ogre::LogManager::getSingleton().logMessage("here995"); 611 617 mQueryManager->ComputeCameraVisibility(*mCamera, 612 618 &visibleNodes, &visibleGeometry, &visiblePatches, relativeVisibility); … … 1520 1526 1521 1527 case KC_F5: 1522 applyVisibilityQuery(false, mShiftPressed, mUseItemBuffer); 1523 break; 1528 { 1529 const bool fromPoint = false; 1530 applyVisibilityQuery(fromPoint, mShiftPressed, mUseItemBuffer); 1531 break; 1532 } 1524 1533 1525 1534 case KC_F6: 1526 applyVisibilityQuery(true, mShiftPressed, mUseItemBuffer); 1527 break; 1528 1535 { 1536 const bool fromPoint = true; 1537 applyVisibilityQuery(fromPoint, mShiftPressed, mUseItemBuffer); 1538 break; 1539 } 1529 1540 case KC_F7: 1530 1541 ++ mCurrentObjectType; … … 1534 1545 1535 1546 case KC_F8: 1536 { // generate new objects 1547 { 1548 // generate new objects 1537 1549 const int objNum = 500; 1538 1550 mApplication->generateScene(objNum, mCurrentObjectType); … … 1550 1562 break; 1551 1563 1552 1564 case KC_F12: 1565 break; 1553 1566 //KEY_PRESSED(KC_F3, 0.3, writeFrames()); 1554 1567 //KEY_PRESSED(KC_F4, 0.3, loadFrames()); -
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.h
r2145 r2168 373 373 bool mStatsOn; 374 374 bool mLMouseDown; 375 bool mRMouseDown; // True if the mouse buttons are down 375 // True if the mouse buttons are down 376 bool mRMouseDown; 376 377 bool mShutdownRequested; 377 378 bool mDisplayCameraDetails; -
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrain.vcproj
r2130 r2168 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=" FALSE"100 GenerateDebugInformation="TRUE" 101 101 SubSystem="2" 102 102 OptimizeReferences="2" -
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrainApplication.cpp
r2130 r2168 530 530 mTerrainContentGenerator = new TerrainContentGenerator(mSceneMgr); 531 531 532 if (!msShowHillyTerrain)533 return;534 535 532 // if no objects in file, we generate new objects 536 if ( !mTerrainContentGenerator->LoadObjects("objects.out"))533 if (msShowHillyTerrain && !mTerrainContentGenerator->LoadObjects("objects.out")) 537 534 { 538 535 // the objects are generated randomly distributed over the terrain
Note: See TracChangeset
for help on using the changeset viewer.