Changeset 525 for code/branches/FICN/src
- Timestamp:
- Dec 13, 2007, 11:54:00 PM (17 years ago)
- Location:
- code/branches/FICN/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/loader/LevelLoader.cc
r521 r525 104 104 TiXmlNode* tNode; 105 105 106 Ogre::OverlayManager& omgr = Ogre::OverlayManager::getSingleton(); 107 Ogre::Overlay* mLoadOverlay; 106 108 107 109 // Set loading screen … … 126 128 loadingBarHeight_ = tElem->Attribute("height"); 127 129 } 128 showLoadingScreen(); 130 131 132 mLoadOverlay = (Ogre::Overlay*)omgr.getByName("Orxonox/LoadingScreenSample"); 133 mLoadOverlay->show(); 134 135 std::cout << "\n\n\nThis is Orxonox\nthe hottest 3D action shooter ever to exist\n\n\n"; 136 std::cout << "Level: " << name() << "\nDescription:" << description() << "\nImage:"<<image()<<"\n\n\n"; 137 std::cout << "Backgroundcolor: " << loadingBackgroundColor_ << "\nBackgroundimage:" << loadingBackgroundImage_ << "\n\n\n"; 138 129 139 } 130 140 … … 147 157 } 148 158 } 149 159 160 if (loadElem) 161 { 162 mLoadOverlay->hide(); 163 } 150 164 std::cout << "Loading finished!\n\n\n\n\n"; 151 165 } 152 }153 154 void LevelLoader::showLoadingScreen()155 {156 157 Ogre::OverlayManager& omgr = Ogre::OverlayManager::getSingleton();158 Ogre::Overlay* mLoadOverlay = (Ogre::Overlay*)omgr.getByName("Orxonox/LoadingScreenSample");159 mLoadOverlay->show();160 161 std::cout << "\n\n\nThis is Orxonox\nthe hottest 3D action shooter ever to exist\n\n\n";162 std::cout << "Level: " << name() << "\nDescription:" << description() << "\nImage:"<<image()<<"\n\n\n";163 std::cout << "Backgroundcolor: " << loadingBackgroundColor_ << "\nBackgroundimage:" << loadingBackgroundImage_ << "\n\n\n";164 166 } 165 167 -
code/branches/FICN/src/loader/LevelLoader.h
r507 r525 29 29 // Destructor 30 30 ~LevelLoader(); 31 // Shows a simple loading screen32 void showLoadingScreen();33 31 // Loads all level data 34 32 void loadLevel(); -
code/branches/FICN/src/orxonox/orxonox.cc
r523 r525 377 377 SceneManager *mgr = ogre_->getSceneManager(); 378 378 379 /* 380 Camera *cam = mgr->createCamera("Camera"); 381 cam->setPosition(Vector3(0,0,-250)); 382 cam->lookAt(Vector3(0,0,0)); 383 384 385 Viewport *vp = ogre_->getRoot()->getAutoCreatedWindow()->addViewport(cam); 386 387 /* 388 Entity* head = mgr->createEntity("ASSF", "assf2.mesh"); 389 SceneNode *node = mgr->getRootSceneNode()->createChildSceneNode("OgreHeadNode", Vector3(0,0,0)); 390 node->attachObject(head); 391 node->attachObject(cam); 392 393 394 395 Entity* head1 = mgr->createEntity("head1", "ogrehead.mesh"); 396 SceneNode *node1 = mgr->getRootSceneNode()->createChildSceneNode("OgreHeadNode1", Vector3(200,0,0)); 397 node1->attachObject(head1); 398 Entity* head2 = mgr->createEntity("head2", "ogrehead.mesh"); 399 SceneNode *node2 = mgr->getRootSceneNode()->createChildSceneNode("OgreHeadNode2", Vector3(200,400,-100)); 400 node2->attachObject(head2); 401 Entity* head3 = mgr->createEntity("head3", "ogrehead.mesh"); 402 SceneNode *node3 = mgr->getRootSceneNode()->createChildSceneNode("OgreHeadNode3", Vector3(0,400,200)); 403 node3->attachObject(head3); 404 Entity* head4 = mgr->createEntity("head4", "ogrehead.mesh"); 405 SceneNode *node4 = mgr->getRootSceneNode()->createChildSceneNode("OgreHeadNode4", Vector3(-400,-200,600)); 406 node4->attachObject(head4); 407 Entity* head5 = mgr->createEntity("head5", "ogrehead.mesh"); 408 SceneNode *node5 = mgr->getRootSceneNode()->createChildSceneNode("OgreHeadNode5", Vector3(0,0,-400)); 409 node5->attachObject(head5); 410 411 steering = new SpaceshipSteering(500, 200, 200, 200); 412 steering->addNode(node); 413 */ 379 380 SceneNode* node = (SceneNode*)mgr->getRootSceneNode()->getChild("OgreHeadNode"); 381 382 383 steering_ = new SpaceshipSteering(500, 200, 200, 200); 384 steering_->addNode(node); 414 385 415 386 }
Note: See TracChangeset
for help on using the changeset viewer.