Changeset 1609 for GTP/trunk/App/Demos
- Timestamp:
- 10/11/06 05:35:05 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.cpp
r1607 r1609 1386 1386 mUseItemBuffer = !mUseItemBuffer; 1387 1387 break; 1388 1388 case KC_Z: 1389 mCamNode->resetOrientation(); 1390 break; 1391 case KC_U: 1392 mCamNode->resetOrientation(); 1393 mCamNode->setPosition(mApplication->mInitialPosition); 1394 break; 1389 1395 case KC_C: 1390 1396 if (mItemBufferMode != GtpVisibility::QueryManager::GEOMETRY_VISIBILITY) … … 1551 1557 const frame_info old_frame = mFrameInfo[mCurrentFrame - 1]; 1552 1558 1559 ///////////// 1553 1560 //-- interpolate frames 1554 1561 Real factor = 1; … … 1614 1621 if (mInputDevice->isKeyDown(KC_RIGHT)) 1615 1622 { 1616 mCamNode->yaw(-mRotScale );1623 mCamNode->yaw(-mRotScale, Ogre::Node::TS_WORLD); 1617 1624 cursorPressed = true; 1618 1625 } -
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrainApplication.cpp
r1607 r1609 202 202 } 203 203 204 Vector3 v= Vector3::UNIT_SCALE;204 mInitialPosition = Vector3::UNIT_SCALE; 205 205 206 206 val = config.getSetting("ViewX"); 207 207 208 208 if (!val.empty()) 209 v.x = atof( val.c_str() );209 mInitialPosition.x = atof( val.c_str() ); 210 210 211 211 val = config.getSetting("ViewY"); 212 212 213 213 if (!val.empty()) 214 v.y = atof(val.c_str());214 mInitialPosition.y = atof(val.c_str()); 215 215 216 216 val = config.getSetting("ViewZ"); 217 217 218 218 if (!val.empty()) 219 v.z = atof( val.c_str());219 mInitialPosition.z = atof( val.c_str()); 220 220 221 221 … … 256 256 257 257 // set camera position accordingly 258 mCamNode->setPosition( v);258 mCamNode->setPosition(mInitialPosition); 259 259 } 260 260 //----------------------------------------------------------------------- -
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrainApplication.h
r1607 r1609 150 150 int mAlgorithm; 151 151 152 Vector3 mInitialPosition; 152 153 153 154 protected: 154 155 156 //////////////// 155 157 //-- inherited from ExampleApplication 158 156 159 bool setup(); 157 160 void createScene();
Note: See TracChangeset
for help on using the changeset viewer.