Changeset 421 for trunk/VUT/work
- Timestamp:
- 11/18/05 14:02:49 (19 years ago)
- Location:
- trunk/VUT/work/TestCullingTerrain
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/TestCullingTerrain/TerrainFrameListener.cpp
r418 r421 646 646 { 647 647 // move node rather than camera so orientation is right in the visualization 648 mCamNode->yaw(mRotX); 648 mCamNode->yaw(mRotX, Ogre::Node::TS_WORLD); 649 //mCamNode->rotate(Vector3(0,1,0), mRotX, Ogre::Node::TS_WORLD); 649 650 mCamNode->pitch(mRotY); 651 650 652 mCamNode->translate(mCamNode->getLocalAxes(), mTranslateVector); 651 653 } … … 1131 1133 toggleUseDepthPass(); 1132 1134 break; 1133 case KC_ S:1135 case KC_H: 1134 1136 toggleShowShadows(); 1135 1137 break; … … 1218 1220 mUseDemoFps = !mUseDemoFps; 1219 1221 break; 1220 case KC_ A:1222 case KC_Q: 1221 1223 toggleUseArbQueries(); 1222 1224 break; … … 1312 1314 1313 1315 /* Move camera forward by keypress. */ 1314 if (mInputDevice->isKeyDown(KC_UP) )1316 if (mInputDevice->isKeyDown(KC_UP) || mInputDevice->isKeyDown(KC_W)) 1315 1317 { 1316 1318 mTranslateVector.z = -mMoveScale; … … 1318 1320 } 1319 1321 /* Move camera backward by keypress. */ 1320 if (mInputDevice->isKeyDown(KC_DOWN) )1322 if (mInputDevice->isKeyDown(KC_DOWN) || mInputDevice->isKeyDown(KC_S)) 1321 1323 { 1322 1324 mTranslateVector.z = mMoveScale; 1323 1325 cursorPressed = true; 1324 1326 } 1327 1328 if (mInputDevice->isKeyDown(KC_A)) 1329 { 1330 mTranslateVector.x -= mMoveScale; 1331 mTranslateVector.y += mMoveScale; 1332 1333 cursorPressed = true; 1334 } 1335 1336 if (mInputDevice->isKeyDown(KC_D)) 1337 { 1338 mTranslateVector.x += mMoveScale; 1339 mTranslateVector.y -= mMoveScale; 1340 1341 cursorPressed = true; 1342 } 1325 1343 1326 1344 if (mInputDevice->isKeyDown(KC_RIGHT)) … … 1329 1347 cursorPressed = true; 1330 1348 } 1331 1349 1332 1350 if (mInputDevice->isKeyDown(KC_LEFT)) 1333 1351 { -
trunk/VUT/work/TestCullingTerrain/TerrainFrameListener.h
r418 r421 405 405 406 406 bool mUseBufferedInputMouse; 407 Matrix4 rotMatrix; 407 408 }; 408 409
Note: See TracChangeset
for help on using the changeset viewer.