Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 31, 2008, 10:35:56 PM (16 years ago)
Author:
rgrieder
Message:
  • declared the ogre LogManager problem a linux one..
  • removed the shader hacks in Orxonox::loadScene()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/orxonox/GraphicsEngine.cc

    r1487 r1493  
    157157      myLog = logger->createLog("ogre.log", true, false, true);
    158158    else
    159           myLog = logger->createLog(this->ogreLogfile_, true, false, false);
     159      myLog = logger->createLog(this->ogreLogfile_, true, false, false);
    160160    CCOUT(4) << "Ogre Log created" << std::endl;
    161161
     
    166166    // Root will detect that we've already created a Log
    167167    CCOUT(4) << "Creating Ogre Root..." << std::endl;
    168     root_ = new Ogre::Root(plugin_filename);
     168
     169    root_ = new Ogre::Root(plugin_filename, "ogre.cfg", this->ogreLogfile_);
     170
     171#if ORXONOX_PLATFORM != ORXONOX_PLATFORM_WIN32
     172    // tame the ogre ouput so we don't get all the mess in the console
     173    Ogre::Log* defaultLog = Ogre::LogManager::getSingleton().getDefaultLog();
     174    defaultLog->setDebugOutputEnabled(false);
     175    defaultLog->setLogDetail(Ogre::LL_BOREME);
     176    defaultLog->addListener(this);
     177#endif
     178
    169179    CCOUT(4) << "Creating Ogre Root done" << std::endl;
    170180
     
    251261  bool GraphicsEngine::createNewScene()
    252262  {
    253     CCOUT(4) << "Creating new SceneManager" << std::endl;
     263    CCOUT(4) << "Creating new SceneManager..." << std::endl;
    254264    if (scene_)
    255265    {
Note: See TracChangeset for help on using the changeset viewer.