- Timestamp:
- Dec 17, 2007, 5:44:18 PM (17 years ago)
- Location:
- code/branches/FICN
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/bin/levels/sample.oxw
r582 r584 24 24 <world> 25 25 <SceneNode name="OgreHeadNode" pos="0,0,0" /> 26 <Camera name="Camera" pos="0, 0,-150" lookat="0,0,0" node="OgreHeadNode" />26 <Camera name="Camera" pos="0,50,-150" lookat="0,20,0" node="OgreHeadNode" /> 27 27 <Ambient colourvalue="1,1,1" /> 28 28 <Skybox src="Orxonox/StarfieldSkyBox" /> … … 31 31 <BaseEntity name="TheShip" src="assf2.mesh" node="ShipNode" /> 32 32 33 <SceneNode name="node1" pos="0,200,0" /> 33 <SceneNode name="ShipNode2" pos="200,0,500" scale="10,10,10" yaw="-90" pitch="-90" /> 34 <BaseEntity name="TheShip2" src="assf2.mesh" node="ShipNode2" /> 35 36 <SceneNode name="ShipNode3" pos="-200,0,500" scale="10,10,10" yaw="-90" pitch="-90" /> 37 <BaseEntity name="TheShip3" src="assf2.mesh" node="ShipNode3" /> 38 39 40 <SceneNode name="node1" pos="0,2000,0" scale="40,40,40" /> 34 41 <Entity name="asteroid1" src="ast1.mesh" node="node1" /> 35 42 36 <SceneNode name="node2" pos="200 ,0,0"/>43 <SceneNode name="node2" pos="2000,0,0" scale="20,20,20"/> 37 44 <Entity name="asteroid2" src="ast2.mesh" node="node2" /> 38 45 39 <SceneNode name="node3" pos="0,0,200 "/>40 <Entity name="aststeroid3" src="ast3.mesh" node="node3" 46 <SceneNode name="node3" pos="0,0,2000" scale="20,20,20"/> 47 <Entity name="aststeroid3" src="ast3.mesh" node="node3"/> 41 48 42 <SceneNode name="node4" pos="0,-200 ,0"/>49 <SceneNode name="node4" pos="0,-2000,0" scale="20,20,20"/> 43 50 <Entity name="asteroid4" src="ast4.mesh" node="node4" /> 44 51 45 <SceneNode name="node5" pos="-200 ,0,0"/>52 <SceneNode name="node5" pos="-2000,0,0" scale="20,20,20"/> 46 53 <Entity name="asteroid5" src="ast5.mesh" node="node5" /> 47 54 48 <SceneNode name="node6" pos="0,0,-200 "/>55 <SceneNode name="node6" pos="0,0,-2000" scale="20,20,20"/> 49 56 <Entity name="asteroid6" src="ast6.mesh" node="node6" /> 50 57 </world> -
code/branches/FICN/src/loader/LevelLoader.cc
r560 r584 39 39 #include "orxonox/core/Error.h" 40 40 #include "orxonox/objects/BaseObject.h" 41 #include "audio/AudioManager.h" 42 #include "orxonox/orxonox.h" 41 43 42 44 using namespace std; … … 100 102 { 101 103 TiXmlElement* loadElem; 104 TiXmlElement* audioElem; 102 105 TiXmlElement* worldElem; 103 106 TiXmlElement* tElem; … … 140 143 141 144 // Load audio 142 // TODO 143 144 // Load scripts 145 // TODO 146 145 audio::AudioManager* auMan = orxonox::Orxonox::getSingleton()->getAudioManagerPointer(); 146 audioElem = rootElement->FirstChildElement("audio"); 147 if (audioElem) 148 { 149 audioElem = audioElem->FirstChildElement("ambient"); 150 if (audioElem) 151 { 152 tNode = 0; 153 while( tNode = audioElem->IterateChildren( tNode ) ) 154 { 155 tElem = tNode->ToElement(); 156 std::string elemVal = tElem->Value(); 157 if (elemVal == "ogg") 158 { 159 auMan->ambientAdd(tElem->Attribute("src")); 160 } 161 } 162 } 163 } 164 147 165 // Load world 148 166 worldElem = rootElement->FirstChildElement("world"); -
code/branches/FICN/src/orxonox/orxonox.cc
r576 r584 430 430 loader_->loadLevel(); 431 431 432 /*433 auMan_->ambientAdd("a1");434 auMan_->ambientAdd("a2");435 auMan_->ambientAdd("a3");436 //auMan->ambientAdd("ambient1");437 432 auMan_->ambientStart(); 438 */439 433 } 440 434 … … 455 449 steering_->addNode(node); 456 450 457 451 /* 458 452 particle::ParticleInterface *e = new particle::ParticleInterface(mgr,"engine","Orxonox/strahl"); 459 453 e->particleSystem_->setParameter("local_space","true"); … … 461 455 e->setDirection(Vector3(0,0,-1)); 462 456 e->addToSceneNode(node); 457 */ 463 458 464 459 particle::ParticleInterface *w = new particle::ParticleInterface(mgr,"schuss","Orxonox/schuss"); … … 469 464 w->setPositionOfEmitter(1, Vector3(-10,10,0)); 470 465 w->addToSceneNode(node); 466 467 particle::ParticleInterface *tt = new particle::ParticleInterface(mgr,"thrusters","Orxonox/treibwerk"); 468 tt->particleSystem_->setParameter("local_space","true"); 469 tt->newEmitter(); 470 tt->setDirection(Vector3(0,0,1)); 471 tt->setPositionOfEmitter(0, Vector3(15,0,-60)); 472 tt->setPositionOfEmitter(1, Vector3(-15,0,-60)); 473 tt->addToSceneNode(node); 474 475 471 476 } 472 477 -
code/branches/FICN/src/orxonox/orxonox.h
r568 r584 43 43 inline GraphicsEngine* getOgrePointer() { return ogre_; }; 44 44 inline SpaceshipSteering* getSteeringPointer() { return steering_; }; 45 inline audio::AudioManager* getAudioManagerPointer() { return auMan_; }; 45 46 private: 46 47 Orxonox();
Note: See TracChangeset
for help on using the changeset viewer.