Changeset 127 for code/branches/main_reto/src
- Timestamp:
- Oct 30, 2007, 10:41:04 PM (17 years ago)
- Location:
- code/branches/main_reto/src
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/main_reto/src/RunManager.cpp
r126 r127 8 8 mTranslateVector(Vector3::ZERO), mStatsOn(true), mNumScreenShots(0), 9 9 mMoveScale(0.0f), mRotScale(0.0f), mTimeUntilNextToggle(0), mFiltering(TFO_BILINEAR), 10 mAniso(1), mSceneDetailIndex(0), mMoveSpeed( 100), mRotateSpeed(36), mDebugOverlay(0),10 mAniso(1), mSceneDetailIndex(0), mMoveSpeed(300), mRotateSpeed(36), mDebugOverlay(0), 11 11 mInputManager(0), mMouse(0), mKeyboard(0), mJoy(0) 12 12 { … … 18 18 // background scene 19 19 mScene = new OrxonoxScene(mSceneMgr); 20 21 // create a steerable SceneNode for the spaceship to be attached to 22 mShipNode = mSceneMgr->getRootSceneNode()->createChildSceneNode("ShipNode", Vector3(20, 20, 20)); 23 24 // spaceship 25 mShip = new OrxonoxShip(mSceneMgr, mShipNode); 26 27 // load all resources and create the entities 28 mScene->initialise(); 29 mShip->initialise(); 30 20 31 // create camera and viewport 21 32 createCamera(); 22 33 createViewports(); 23 mScene->initialise(); 24 25 // create a steerable SceneNode for the spaceship to be attached to 26 /*mShipNode = new SteerableNode(mSceneMgr, "shipNode"); 27 mShipNode->setPosition(Vector3(20, 20, 20)); 28 mSceneMgr->getRootSceneNode()->addChild(mShipNode);*/ 29 30 // spaceship 31 /*mShip = static_cast<OrxonoxShip*>(mSceneMgr->createEntity("ship", "ninja.mesh")); 32 mShipNode->attachObject(mShip);*/ 33 34 35 // Set default mipmap level (NB some APIs ignore this) 36 TextureManager::getSingleton().setDefaultNumMipmaps(5); 34 37 35 38 using namespace OIS; … … 76 79 if (mScene) 77 80 delete mScene; 78 79 /*if (mShipNode)80 delete mShipNode;81 82 if (mShip)83 delete mShip;*/84 81 } 85 82 … … 369 366 { 370 367 mCamera = mSceneMgr->createCamera("PlayerCam"); 368 mShipNode->attachObject(mCamera); 371 369 mCamera->setNearClipDistance(5); 372 370 mCamera->setPosition(Vector3(0,10,500)); … … 384 382 mCamera->setAspectRatio( 385 383 Real(vp->getActualWidth()) / Real(vp->getActualHeight())); 386 387 // Set default mipmap level (NB some APIs ignore this) 388 TextureManager::getSingleton().setDefaultNumMipmaps(5); 389 } 390 391 384 } 385 386
Note: See TracChangeset
for help on using the changeset viewer.