Ignore:
Timestamp:
04/30/06 15:37:38 (19 years ago)
Author:
mattausch
Message:

kicked out toggling of arb / iv queries

Location:
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.cpp

    r866 r867  
    107107mVisibilityThreshold(0), 
    108108mAssumedVisibility(0), 
    109 #if 0 
     109#if 1 
    110110mCurrentAlgorithm(GtpVisibility::VisibilityEnvironment::COHERENT_HIERARCHICAL_CULLING), 
    111111#else 
     
    154154mRecordDemo(false), 
    155155mSavePrecomputedFps(false), 
    156 mUseArbQueries(false), 
    157156mUseBufferedInputMouse(false), 
    158157mVizScale(25) 
     
    234233        mTimer = Root::getSingleton().getTimer(); 
    235234        mTimeFrameEnded = mTimeFrameStarted = mTimer->getMilliseconds(); 
    236                  
    237         //if (mSceneMgr->getSceneNode("robot Entity1Node")->getAttachedObject(0)->getMovableType() == "Entity") 
    238         //      Ogre::LogManager::getSingleton().logMessage("found entity"); 
    239          
    240         // arb or nv queries 
    241         //mSceneMgr->setOption("UseArbQueries", &mUseArbQueries); 
     235         
     236        if (0 && (mSceneMgr->getSceneNode("robot Entity1Node")->getAttachedObject(0)->getMovableType() == "Entity")) 
     237                Ogre::LogManager::getSingleton().logMessage("found entity"); 
     238         
    242239         
    243240        // reset statistics 
     
    11371134} 
    11381135//----------------------------------------------------------------------- 
    1139 void TerrainFrameListener::toggleUseArbQueries() 
    1140 { 
    1141         mUseArbQueries = !mUseArbQueries; 
    1142  
    1143         mSceneMgr->setOption("UseArbQueries", &mUseArbQueries); 
    1144          
    1145         if (mUseArbQueries) 
    1146         { 
    1147                 mUseArbQueriesInfo->setCaption(": ARB"); 
    1148         } 
    1149         else 
    1150         { 
    1151                 mUseArbQueriesInfo->setCaption(": NV"); 
    1152         } 
    1153 } 
    1154 //----------------------------------------------------------------------- 
    11551136void TerrainFrameListener::toggleShowViz() 
    11561137{ 
     
    13511332    case KC_E: // hack for recording demo using precomputed fps 
    13521333                mSavePrecomputedFps = !mSavePrecomputedFps; 
    1353                 break; 
    1354          
    1355         case KC_Q: 
    1356                 toggleUseArbQueries(); 
    13571334                break; 
    13581335        case KC_O: 
     
    17171694        initOverlayElement(&mAssumedVisibilityInfo, ext, "AssumedVisibility", top, ": 0"); top += vert_space; 
    17181695        initOverlayElement(&mCurrentObjectTypeInfo, ext, "CurrentObjectType", top, ": "); top += vert_space; 
    1719         initOverlayElement(&mUseArbQueriesInfo, ext, "UseArbQueries", top, ": NV"); top += vert_space; 
    17201696        //initOverlayElement(&mHelpInfo, ext, "Help", top, ": "); top += vert_space; 
    17211697 
  • GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.h

    r723 r867  
    184184        void updateStats(); 
    185185 
    186         /** Toggles wether help screen is shown or not. 
     186        /** Toggles whether help screen is shown or not. 
    187187        */ 
    188188        void toggleShowHelp(); 
    189189         
    190         /** Toggles wether shadows are shown or not. 
     190        /** Toggles whether shadows are shown or not. 
    191191        */ 
    192192        void toggleShowShadows(); 
     193        /** if camera stats (e.g, location, orientation, ...) should be displayed- 
     194        */ 
    193195        void toggleDisplayCameraDetails(); 
    194196        /** Takes screenshot of the current scene. 
     
    211213        */ 
    212214        void toggleShowOctree(); 
    213         /** Toggles wether we use the initial depth pass. 
     215        /** Toggles whether we use the initial depth pass. 
    214216        */ 
    215217        void toggleUseDepthPass(); 
    216         /** Toggles wether we use ARB or NV queries. 
    217         */ 
    218         void toggleUseArbQueries(); 
    219         /** Toggles wether the visualization is shown. 
     218        /** Toggles whether the visualization is shown. 
    220219        */ 
    221220        void toggleShowViz(); 
    222         /** Toggles wether the frames are recorded. 
     221        /** Toggles whether the frames are recorded. 
    223222        */ 
    224223        void toggleRecord(); 
     
    316315        OverlayElement *mTestGeometryForVisibleLeavesInfo; 
    317316        OverlayElement *mUseDepthPassInfo; 
    318         OverlayElement *mUseArbQueriesInfo; 
    319317        OverlayElement *mRenderedNodesInfo; 
    320318        OverlayElement *mObjectsCountInfo; 
     
    344342        bool mShowOctree; 
    345343        bool mUseDepthPass; 
    346         bool mUseArbQueries; 
    347344        bool mShowVisualization; 
    348345        bool mCullCamera; 
Note: See TracChangeset for help on using the changeset viewer.