Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 12, 2007, 11:34:58 PM (18 years ago)
Author:
nicolape
Message:
  • Skybox and ambient light load now from level file sample.oxw. Added objects to and methods to parse this tags. Added a tokenizer function to split strings into smaller strings (for reading out the light colours for examle). Moved Tokenizer and String2number into misc directory. deleted old unised xml class
Location:
code/branches/FICN/src/orxonox
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/objects/CMakeLists.txt

    r496 r507  
    77  test2.cc
    88  test3.cc
     9  Ambient.cc
     10  Skybox.cc
    911)
    1012
  • code/branches/FICN/src/orxonox/objects/test1.cc

    r482 r507  
    7272    void Test1::loadParams(TiXmlElement* xmlElem)
    7373    {
    74         Ogre::SceneManager* mgr = orxonox::Orxonox::getSingleton()->getSceneManager();
    75        
    76         mgr->setAmbientLight(ColourValue(1,0,0));
    77        
    78        
    79        
    80         std::cout<< xmlElem->GetText()<<std::endl;
     74
    8175       
    8276       
  • code/branches/FICN/src/orxonox/orxonox.cc

    r505 r507  
    5656#include "core/Factory.h"
    5757
    58 #include "../xml/xmlParser.h"
    5958#include "../loader/LevelLoader.h"
    6059#include "../audio/AudioManager.h"
     
    360359  {
    361360    SceneManager *mgr = ogre_->getSceneManager();
     361   
    362362    Camera *cam = mgr->createCamera("Camera");
    363363    cam->setPosition(Vector3(0,0,-250));
     
    370370    node->attachObject(head);
    371371    node->attachObject(cam);
    372     mgr->setSkyBox(true, "Examples/SceneSkyBox2");
     372   
     373   
    373374
    374375    Entity* head1 = mgr->createEntity("head1", "ogrehead.mesh");
Note: See TracChangeset for help on using the changeset viewer.