Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 24, 2008, 2:48:43 AM (16 years ago)
Author:
landauf
Message:

many changes, can't remember everything, but these are the most important:

  • attaching entities to other entities works
  • displaying models, lights and shadows works
  • controlling a spectator works
  • removed an update hack in PositionableEntity because I've found a much better solution

and with "works" I mean: it works on client, server and standalone

Location:
code/branches/objecthierarchy/src/orxonox/gamestates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/gamestates/GSLevel.cc

    r1962 r2006  
    5757        , radar_(0)
    5858        , startLevel_(0)
    59         , hud_(0)
    6059    {
    6160        RegisterObject(GSLevel);
     
    8382        COUT(4) << "Created SceneManager: " << sceneManager_->getName() << std::endl;
    8483
     84        this->sceneManager_->setShadowTechnique(Ogre::SHADOWTYPE_STENCIL_ADDITIVE);
     85
    8586        // temporary hack
    8687        GraphicsEngine::getInstance().setLevelSceneManager(this->sceneManager_);
     
    8889        // Start the Radar
    8990        this->radar_ = new Radar();
    90 
    91         // Load the HUD
    92         COUT(3) << "Orxonox: Loading HUD" << std::endl;
    93         hud_ = new Level(Settings::getDataPath() + "overlay/hud.oxo");
    94         Loader::load(hud_);
    9591
    9692        // reset game speed to normal
     
    113109    void GSLevel::leave()
    114110    {
    115         Loader::unload(hud_);
    116         delete this->hud_;
    117 
    118111        // this call will delete every BaseObject!
    119112        // But currently this will call methods of objects that exist no more
  • code/branches/objecthierarchy/src/orxonox/gamestates/GSLevel.h

    r1887 r2006  
    6969        Radar*                radar_;            //!< represents the Radar (not the HUD part)
    7070        Level*                startLevel_;       //!< current hard coded default level
    71         Level*                hud_;              //!< 'level' object fo the HUD
    7271
    7372        // config values
    7473        std::string           keyDetectorCallbackCode_;
    75        
     74
    7675    private:
    7776        void setConfigValues();
Note: See TracChangeset for help on using the changeset viewer.