Changeset 1215 for GTP/trunk/App/Demos/Vis/KdTreeDemo
- Timestamp:
- 08/17/06 21:42:25 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/include/TestKdTreeAppListener.h
r1211 r1215 91 91 Options(): 92 92 mDemoMode(false), 93 mEnhancedVisibility(false), 93 94 mRotateSpeed(36.0f), 94 95 mMoveSpeed(100.0f), … … 107 108 String mDemoLogfileName; 108 109 bool mDemoMode; 110 bool mEnhancedVisibility; 109 111 Degree mRotateSpeed; 110 112 Real mMoveSpeed; … … 163 165 164 166 const static String NA; 167 const static Real DEMO_WAIT; 165 168 protected: 166 169 // basic -
GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/src/TestKdTree.cpp
r1205 r1215 34 34 .addOpt("","ki", ARGUMENT_REQUIRED) 35 35 .addOpt("r","rendermode", ARGUMENT_REQUIRED) 36 .addOpt("s","scenemgr", ARGUMENT_REQUIRED); 36 .addOpt("s","scenemgr", ARGUMENT_REQUIRED) 37 .addOpt("","comment", ARGUMENT_REQUIRED) 38 .addOpt("e","enhancevis", ARGUMENT_NONE); 37 39 38 40 … … 40 42 cmdparser.getOpt("o", options.mDemoOutfileName); 41 43 cmdparser.getOpt("l", options.mDemoLogfileName); 44 cmdparser.getOpt("comment", options.mComment); 42 45 options.mDemoMode = cmdparser.getOpt("d"); 46 options.mEnhancedVisibility = cmdparser.getOpt("e"); 43 47 44 48 std::string tmp; … … 248 252 // don't load the other stuff 249 253 loadScene(mSceneFiles); 250 //mCamera->setPosition(Vector3(830, 300, -540)); 251 //mCamera->setOrientation(Quaternion(-0.3486, 0.0122, 0.9365, 0.0329)); 252 // total view 253 //mCamera->setPosition(Vector3(688, 866, 944)); 254 //mCamera->setOrientation(Quaternion(-0.979419, 0.201128, 0.0165594, 0.00340038)); 254 // top view 255 255 mTopCam->setPosition(Vector3(1232, 3990, -1477)); 256 256 // walkthrough view 257 mCamNode->setPosition(Vector3( 1102.56, 181.845, -350.305));258 //mCamNode->setOrientation(Quaternion(-0.977321, -0.117497, -0.174903, 0.0210273));257 mCamNode->setPosition(Vector3(827.885, 184.435, -524.984)); 258 mCamNode->setOrientation(Quaternion(0.98935, 0.0348082, -0.141246, 0.00496945)); 259 259 260 260 mSceneMgr->setSkyBox(true, "Examples/CloudyNoonSkyBox", 5000, true); … … 422 422 mSceneMgr->setOption("KI", &mOptions.mKI); 423 423 mSceneMgr->setOption("RenderMethod", &mOptions.mRenderMethod); 424 mSceneMgr->setOption("EnhancedVisibility", &mOptions.mEnhancedVisibility); 424 425 } 425 426 -
GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/src/TestKdTreeAppListener.cpp
r1211 r1215 7 7 8 8 const String KdTreeAppListener::NA = ": N/A"; 9 const Real KdTreeAppListener::DEMO_WAIT = 5.0; 9 10 10 11 void KdTreeAppListener::updateStats(void) … … 154 155 if (!mOptions.mDemoInfileName.empty() && mOptions.mDemoMode) 155 156 { 156 // force 3second wait when in demo mode - avoids initial low framerate due to loading delays157 mWaitBeforeDemoStart = 3.0;157 // force X second wait when in demo mode - avoids initial low framerate due to loading delays 158 mWaitBeforeDemoStart = DEMO_WAIT; 158 159 // set playback icon 159 160 togglePlayback(); … … 894 895 mTimeUntilNextToggle = 0.5; 895 896 if (!displayCameraDetails) 897 { 896 898 mWindow->setDebugText(""); 899 } 900 else 901 { 902 LogManager::getSingleton().logMessage("############## Camera Position:"); 903 LogManager::getSingleton().logMessage("############## " + StringConverter::toString(mCamera->getDerivedPosition())); 904 LogManager::getSingleton().logMessage("############## " + StringConverter::toString(mCamera->getDerivedOrientation())); 905 LogManager::getSingleton().logMessage("############## Cull Camera Position:"); 906 LogManager::getSingleton().logMessage("############## " + StringConverter::toString(mTopCam->getPosition())); 907 LogManager::getSingleton().logMessage("############## " + StringConverter::toString(mTopCam->getOrientation())); 908 } 897 909 } 898 910 if (displayCameraDetails) … … 1036 1048 mWaitBeforeDemoStart -= evt.timeSinceLastFrame; 1037 1049 if (mWaitBeforeDemoStart > 0.0) 1050 { 1051 // do full turn to preload geometry 1052 static Real dps = (360 / DEMO_WAIT); 1053 mCamNode->yaw(Radian(Degree(dps * evt.timeSinceLastFrame)), Ogre::Node::TS_WORLD); 1038 1054 return true; 1055 } 1039 1056 1040 1057 // demo playback - replace position with stored one
Note: See TracChangeset
for help on using the changeset viewer.