Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 521


Ignore:
Timestamp:
Dec 13, 2007, 11:05:27 PM (17 years ago)
Author:
nicolape
Message:

Fixed bug for assf texture, added loading overlay (its now working, used some code from the ogre forums, no error but my overlay doesnt pop up… anyone an idea (code is in levelloader.cc

Location:
code/branches/FICN
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/Media/materials/scripts/Orxonox.material

    r510 r521  
    3434        }
    3535}
     36
     37material Orxonox/LoadingScreenSample
     38{
     39   technique
     40   {
     41      pass
     42      {
     43         
     44         depth_writing off
     45
     46         texture_unit
     47         {
     48            texture sample_loading.jpg
     49         }
     50      }
     51   }
     52}
  • code/branches/FICN/Media/materials/scripts/assf2.material

    r481 r521  
    99                        texture_unit
    1010                        {
    11                                 texture human_assf.jpg
     11                                texture human_assf.png
    1212                        }
    1313                }
  • code/branches/FICN/src/loader/LevelLoader.cc

    r513 r521  
    3131#include <algorithm>
    3232#include <iterator>
     33
     34#include <OgreOverlayManager.h>
    3335
    3436#include "LevelLoader.h"
     
    152154        void LevelLoader::showLoadingScreen()
    153155        {
     156               
     157                Ogre::OverlayManager& omgr = Ogre::OverlayManager::getSingleton();
     158    Ogre::Overlay* mLoadOverlay = (Ogre::Overlay*)omgr.getByName("Orxonox/LoadingScreenSample");
     159    mLoadOverlay->show();
     160               
    154161                std::cout << "\n\n\nThis is Orxonox\nthe hottest 3D action shooter ever to exist\n\n\n";
    155162                std::cout << "Level: " << name() << "\nDescription:" << description() << "\nImage:"<<image()<<"\n\n\n";
Note: See TracChangeset for help on using the changeset viewer.