Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9224 in orxonox.OLD


Ignore:
Timestamp:
Jul 5, 2006, 1:25:54 PM (18 years ago)
Author:
amaechler
Message:

lalala sid er alli zwäääg? mir hei grad wieder e segfault ussegstibitzt *g*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/lib/graphics/effects/rain_effect.cc

    r9201 r9224  
    9696 */
    9797void RainEffect::init() {
     98
     99    this->rainParticles = NULL;
     100    this->emitter = NULL;
     101    this->rainBuffer = NULL;
     102    this->windBuffer = NULL;
     103    this->lightMan = NULL;
     104
    98105    //Default values
    99106    this->rainActivate = false;
     
    191198        CloudEffect::changeSkyColor(this->skyColor, 0.2);
    192199    }
    193    
     200
    194201    //lightMan->setAmbientColor(.1,.1,.1);
    195202}
     
    247254
    248255        // increase sound volume
    249         if (!this->soundSource.isPlaying())
     256        if (progress > 0.5) {
     257          if (!this->soundSource.isPlaying())
    250258            this->soundSource.play(this->rainBuffer, this->soundRainVolume, true);
    251         this->soundSource.gain(this->rainBuffer, this->soundRainVolume * progress);
     259          this->soundSource.gain(this->rainBuffer, this->soundRainVolume * progress * 2 - 0.5);
     260        }
    252261
    253262        if (progress >= 1)
    254263            this->rainFadeInActivate = false;
    255        
     264
    256265        lightMan->setAmbientColor(1-progress, 1-progress, 1-progress);
    257266    }
Note: See TracChangeset for help on using the changeset viewer.