Changeset 1813 for GTP/trunk/App/Demos/Geom/Demo_LodTrees
- Timestamp:
- 11/28/06 10:57:59 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Geom/Demo_LodTrees
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Geom/Demo_LodTrees/main.cpp
r1812 r1813 36 36 OverlayElement* mHelp; 37 37 38 char HelpString[]="(F1) Help\n"38 char HelpString[]="(F1) Quit Help\n" 39 39 "This demo shows an example of the LodTree model in action. The scene is composed of\n" 40 40 "several tree groups which are associated to a LodTree object that manage the level\n" … … 49 49 "maintaining pressed F2."; 50 50 51 char NoHelpString[]="(F1) Help\n"; 51 char NoHelpString[]="\n\n\n\n\n\n\n\n\n\n\n\n\n(F1) Help\n"; 52 52 53 53 54 … … 84 85 } 85 86 86 Vector3 dist;87 int inc2=0,d;88 unsigned int nlod,diflods;89 90 87 // Move upto 80 units/second 91 88 Real MoveFactor = 120.0 * evt.timeSinceLastFrame; … … 116 113 for (int i=0; i<num_tree_types; i++) 117 114 { 118 dist = centers[i] - mCamera->getPosition();115 Vector3 dist = centers[i] - mCamera->getPosition(); 119 116 int distance = dist.length(); 120 117 … … 210 207 if (itr != rayRes.end() && itr->worldFragment) 211 208 mCamera->setPosition(itr->worldFragment->singleIntersection+Ogre::Vector3(0.0f,15.0f,0.0f)); 209 210 211 char cadena[256]; 212 const RenderTarget::FrameStats& stats = mWindow->getStatistics(); 213 sprintf(cadena,"Current FPS: %f\n",stats.lastFPS); 214 mInfo2->setCaption(cadena); 212 215 213 216 return true; … … 338 341 pOver->show(); 339 342 340 mInfo->setCaption(" Maintain F2 to disable LOD");343 mInfo->setCaption("\nMaintain F2 to disable LOD"); 341 344 342 345 // create the shadow texture
Note: See TracChangeset
for help on using the changeset viewer.