Changeset 343 for trunk/VUT/work/iv
- Timestamp:
- 10/20/05 18:49:11 (19 years ago)
- Location:
- trunk/VUT/work/iv
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/iv/IVFrameListener.cpp
r316 r343 48 48 mVisibilityThreshold(0), 49 49 mAssumedVisibility(0), 50 mCurrentAlgorithm(GtpVisibility::VisibilityEnvironment::COHERENT_HIERARCHICAL_CULLING), 50 //mCurrentAlgorithm(GtpVisibility::VisibilityEnvironment::COHERENT_HIERARCHICAL_CULLING), 51 //mCurrentAlgorithm(GtpVisibility::VisibilityEnvironment::STOP_AND_WAIT_CULLING), 52 mCurrentAlgorithm(GtpVisibility::VisibilityEnvironment::FRUSTUM_CULLING), 51 53 mNodeVizMode(NODEVIZ_NONE), 52 54 mVizCameraHeight(Real(2500.0)), … … 63 65 mShowOctree(false), 64 66 mUseDepthPass(false), 67 mUseArbQueries(false), 65 68 mTestGeometryForVisibleLeaves(false), 66 69 mShowVisualization(false), … … 123 126 mSceneMgr->setOption("DelayRenderTransparents", &delayRenderTransparents); 124 127 mSceneMgr->setOption("UseDepthPass", &mUseDepthPass); 125 128 mSceneMgr->setOption("UseArbQueries", &mUseArbQueries); 129 126 130 mSceneMgr->setOption("ShowOctree", &mShowOctree); 127 131 mSceneMgr->setOption("CullCamera", &mCullCamera); … … 571 575 guiAvg->setCaption(avgFpsString + StringConverter::toString(avgFps) + " ms"); 572 576 } 577 //std::stringstream d; d << "frame rate :" << stats.lastFPS; 578 //Ogre::LogManager::getSingleton().logMessage(d.str()); 573 579 574 580 guiCurr->setCaption(currFpsString + StringConverter::toString(stats.lastFPS)); … … 646 652 647 653 mSceneMgr->setOption("ShowOctree", &mShowOctree); 654 } 655 //----------------------------------------------------------------------- 656 void IVFrameListener::toggleUseArbQueries() 657 { 658 mUseArbQueries = !mUseArbQueries; 659 660 mSceneMgr->setOption("UseArbQueries", &mUseArbQueries); 661 662 if (mUseArbQueries) 663 { 664 mUseArbQueriesInfo->setCaption(": ARB"); 665 } 666 else 667 { 668 mUseArbQueriesInfo->setCaption(": NV"); 669 } 648 670 } 649 671 //----------------------------------------------------------------------- … … 808 830 mShiftPressed = true; 809 831 break; 810 832 case KC_A: 833 toggleUseArbQueries(); 834 break; 811 835 default: 812 836 break; … … 1121 1145 initOverlayElement(&mAssumedVisibilityInfo, ext, "AssumedVisibility", top, ": 0"); top += vert_space; 1122 1146 initOverlayElement(&mCurrentObjectTypeInfo, ext, "CurrentObjectType", top, ": "); top += vert_space; 1147 initOverlayElement(&mUseArbQueriesInfo, ext, "UseArbQueries", top, ": NV"); top += vert_space; 1123 1148 //initOverlayElement(&mHelpInfo, ext, "Help", top, ": "); top += vert_space; 1124 1149 -
trunk/VUT/work/iv/IVFrameListener.h
r259 r343 115 115 void toggleShowOctree(); 116 116 void toggleUseDepthPass(); 117 void toggleUseArbQueries(); 117 118 void toggleShowViz(); 118 119 void toggleRecord(); … … 159 160 OverlayElement *mTestGeometryForVisibleLeavesInfo; 160 161 OverlayElement *mUseDepthPassInfo; 162 OverlayElement *mUseArbQueriesInfo; 161 163 OverlayElement *mRenderedNodesInfo; 162 164 OverlayElement *mObjectsCountInfo; … … 180 182 bool mShowOctree; 181 183 bool mUseDepthPass; 184 bool mUseArbQueries; 182 185 bool mShowVisualization; 183 186 bool mCullCamera; -
trunk/VUT/work/iv/TestCullingIVApplication.cpp
r259 r343 92 92 mSceneMgr->setOption("NodeVizScale", &scale); 93 93 // HACK: change this to relative path 94 String path = "D:/svn/ gtp/trunk/VUT/Ogre/resources/";94 String path = "D:/svn/trunk/VUT/Ogre/resources/"; 95 95 96 96 SceneNode *node1 = mSceneMgr->getRootSceneNode()->createChildSceneNode("Node1");
Note: See TracChangeset
for help on using the changeset viewer.