Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4607 in orxonox.OLD for orxonox/trunk/src/story_entities


Ignore:
Timestamp:
Jun 12, 2005, 7:12:40 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: loading Terrain via XML

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r4600 r4607  
    396396          if( element->Value() != NULL && !strcmp( element->Value(), "Player")) localPlayer = (Player*) created;
    397397          if( element->Value() != NULL && !strcmp( element->Value(), "SkyBox")) sky = (SkyBox*) created;
     398          if( element->Value() != NULL && !strcmp( element->Value(), "Terrain")) terrain = (Terrain*) created;
    398399          element = element->NextSiblingElement();
    399400          glmis->step(); //! \todo temporary
     
    444445  //  lightMan->setDiffuseColor(0,0,0);
    445446  //lightMan->debug();
    446   lightMan->setPosition(-5.0, 10.0, -40.0);
     447  lightMan->setPosition(-5.0, 50.0, -40.0);
     448  lightMan->addLight();
     449  lightMan->setPosition(100, 80, 60);
    447450
    448451  //        trackManager->setBindSlave(env);
     
    467470  //trackManager->debug(2);
    468471  glEndList();
    469 
    470   terrain = new Terrain("worlds/newGround.obj");
    471   terrain->setRelCoor(Vector(0,-10,0));
    472   this->spawn(terrain);
    473472
    474473  SoundEngine::getInstance()->setListener(this->localCamera);
Note: See TracChangeset for help on using the changeset viewer.