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
File:
1 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);
Note: See TracChangeset for help on using the changeset viewer.