Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 7, 2008, 11:40:50 PM (16 years ago)
Author:
landauf
Message:
  • added configurable detaillevel for particle effects to [GraphicsEngine]
  • thrusters work properly with changing gamespeed
Location:
code/trunk/src/orxonox/hud
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/hud/RadarObject.cc

    r1562 r1563  
    6565{
    6666    unsigned int RadarObject::count_s = 0;
     67    unsigned int RadarObject::materialcount_s = 0;
    6768    std::map<std::string, std::map<ColourValue, std::string> > RadarObject::materials_s;
    6869
     
    99100        if (it == colourmap.end())
    100101        {
    101             materialname = "radarmaterial" + getConvertedValue<unsigned int, std::string>(RadarObject::count_s);
     102            materialname = "radarmaterial" + getConvertedValue<unsigned int, std::string>(RadarObject::materialcount_s++);
    102103            Ogre::MaterialPtr material = (Ogre::MaterialPtr)Ogre::MaterialManager::getSingleton().create(materialname, "General");
     104            material->getTechnique(0)->getPass(0)->setSceneBlending(Ogre::SBT_TRANSPARENT_ALPHA);
    103105            Ogre::TextureUnitState* textureunitstate = material->getTechnique(0)->getPass(0)->createTextureUnitState();
    104106            textureunitstate->setTextureName(texturename);
  • code/trunk/src/orxonox/hud/RadarObject.h

    r1562 r1563  
    6464      private:
    6565        static std::map<std::string, std::map<ColourValue, std::string> > materials_s;
    66         unsigned static int count_s;
     66        static unsigned int count_s;
     67        static unsigned int materialcount_s;
    6768        Ogre::SceneNode* node_;                                 // node of object
    6869        ColourValue colour_;
Note: See TracChangeset for help on using the changeset viewer.