Changeset 867 for GTP/trunk/App/Demos/Vis
- Timestamp:
- 04/30/06 15:37:38 (19 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
r866 r867 107 107 mVisibilityThreshold(0), 108 108 mAssumedVisibility(0), 109 #if 0109 #if 1 110 110 mCurrentAlgorithm(GtpVisibility::VisibilityEnvironment::COHERENT_HIERARCHICAL_CULLING), 111 111 #else … … 154 154 mRecordDemo(false), 155 155 mSavePrecomputedFps(false), 156 mUseArbQueries(false),157 156 mUseBufferedInputMouse(false), 158 157 mVizScale(25) … … 234 233 mTimer = Root::getSingleton().getTimer(); 235 234 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 242 239 243 240 // reset statistics … … 1137 1134 } 1138 1135 //----------------------------------------------------------------------- 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 else1150 {1151 mUseArbQueriesInfo->setCaption(": NV");1152 }1153 }1154 //-----------------------------------------------------------------------1155 1136 void TerrainFrameListener::toggleShowViz() 1156 1137 { … … 1351 1332 case KC_E: // hack for recording demo using precomputed fps 1352 1333 mSavePrecomputedFps = !mSavePrecomputedFps; 1353 break;1354 1355 case KC_Q:1356 toggleUseArbQueries();1357 1334 break; 1358 1335 case KC_O: … … 1717 1694 initOverlayElement(&mAssumedVisibilityInfo, ext, "AssumedVisibility", top, ": 0"); top += vert_space; 1718 1695 initOverlayElement(&mCurrentObjectTypeInfo, ext, "CurrentObjectType", top, ": "); top += vert_space; 1719 initOverlayElement(&mUseArbQueriesInfo, ext, "UseArbQueries", top, ": NV"); top += vert_space;1720 1696 //initOverlayElement(&mHelpInfo, ext, "Help", top, ": "); top += vert_space; 1721 1697 -
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.h
r723 r867 184 184 void updateStats(); 185 185 186 /** Toggles w ether help screen is shown or not.186 /** Toggles whether help screen is shown or not. 187 187 */ 188 188 void toggleShowHelp(); 189 189 190 /** Toggles w ether shadows are shown or not.190 /** Toggles whether shadows are shown or not. 191 191 */ 192 192 void toggleShowShadows(); 193 /** if camera stats (e.g, location, orientation, ...) should be displayed- 194 */ 193 195 void toggleDisplayCameraDetails(); 194 196 /** Takes screenshot of the current scene. … … 211 213 */ 212 214 void toggleShowOctree(); 213 /** Toggles w ether we use the initial depth pass.215 /** Toggles whether we use the initial depth pass. 214 216 */ 215 217 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. 220 219 */ 221 220 void toggleShowViz(); 222 /** Toggles w ether the frames are recorded.221 /** Toggles whether the frames are recorded. 223 222 */ 224 223 void toggleRecord(); … … 316 315 OverlayElement *mTestGeometryForVisibleLeavesInfo; 317 316 OverlayElement *mUseDepthPassInfo; 318 OverlayElement *mUseArbQueriesInfo;319 317 OverlayElement *mRenderedNodesInfo; 320 318 OverlayElement *mObjectsCountInfo; … … 344 342 bool mShowOctree; 345 343 bool mUseDepthPass; 346 bool mUseArbQueries;347 344 bool mShowVisualization; 348 345 bool mCullCamera;
Note: See TracChangeset
for help on using the changeset viewer.