Changeset 8480 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects
- Timestamp:
- Jun 15, 2006, 4:57:51 PM (18 years ago)
- Location:
- branches/atmospheric_engine/src/lib/graphics/effects
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.cc
r8471 r8480 39 39 40 40 /* TODO: 41 - preCaching42 41 - test multiple rain emitters 43 42 - Think about what happens with building poss. to hang movewithcam off … … 69 68 if(rainActivate) { 70 69 this->activate(); 71 RainEffect::rainParticles->precache((int)this->rainLife );70 RainEffect::rainParticles->precache((int)this->rainLife * 5); // TODO: Figure out the correct value 72 71 } 73 72 } … … 155 154 this->emitter->setSpread(this->rainWindForce / 50, 0.2); 156 155 157 this->soundSource.loop(this->rainBuffer, this->soundRainVolume); 156 this->soundSource.play(this->rainBuffer, this->soundRainVolume, true); 157 158 158 if (this->rainWindForce != 0) 159 this->soundSource. loop(this->windBuffer, 0.1f * this->rainWindForce);159 this->soundSource.play(this->windBuffer, 0.1f * this->rainWindForce, true); 160 160 161 161 if (this->rainFadeInDuration == 0) -
branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.h
r8457 r8480 82 82 private: 83 83 static SparkParticles* rainParticles; 84 ParticleEmitter* emitter;84 ParticleEmitter* emitter; 85 85 86 86 GLfloat rainFadeInDuration; 87 87 GLfloat rainFadeOutDuration; 88 float localTimer;88 float localTimer; 89 89 90 90 Vector rainCoord; … … 94 94 GLfloat rainLife; 95 95 GLfloat rainMaxParticles; 96 int rainWindForce;97 bool rainMove;98 bool rainActivate;96 int rainWindForce; 97 bool rainMove; 98 bool rainActivate; 99 99 100 100 OrxSound::SoundSource soundSource; -
branches/atmospheric_engine/src/lib/graphics/effects/snow_effect.cc
r8457 r8480 53 53 } 54 54 55 if(snowActivate) 55 if(snowActivate) { 56 56 this->activate(); 57 SnowEffect::snowParticles->precache((int) this->snowLife); 58 } 57 59 } 58 60 … … 139 141 this->emitter->setSize(snowSize); 140 142 141 SnowEffect::snowParticles->precache((int) this->snowLife); 142 143 if (this->snowWindForce > 1) 144 this->soundSource.loop(this->windBuffer); 143 if (this->snowWindForce != 0) 144 this->soundSource.play(this->windBuffer, 0.1f * this->snowWindForce, true); 145 145 146 } 146 147
Note: See TracChangeset
for help on using the changeset viewer.