Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5471 in orxonox.OLD for trunk/src/world_entities/weapons


Ignore:
Timestamp:
Nov 3, 2005, 11:19:58 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: nicer rendering of the rockets particles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/rocket.cc

    r5465 r5471  
    8585  if (unlikely(Rocket::trailParticles == NULL))
    8686  {
    87     Rocket::trailParticles = new ParticleSystem(1000, PARTICLE_SPRITE);
     87    Rocket::trailParticles = new ParticleSystem(2000, PARTICLE_SPRITE);
    8888    Rocket::trailParticles->setName("RocketTrailParticles");
    89     Rocket::trailParticles->setLifeSpan(.5, .3);
     89    Rocket::trailParticles->setMaterialTexture("maps/radial-trans-noise.png");
     90    Rocket::trailParticles->setLifeSpan(1.0, .3);
    9091    Rocket::trailParticles->setRadius(0.0, .5);
    9192    Rocket::trailParticles->setRadius(0.5, 2.0);
    92     Rocket::trailParticles->setRadius(1.0, 5.0);
     93    Rocket::trailParticles->setRadius(.83, .8);
     94    Rocket::trailParticles->setRadius(1.0, .8);
    9395    Rocket::trailParticles->setColor(0.0, 1,0,0,.7);
    9496    Rocket::trailParticles->setColor(0.5, .8,.8,0,.5);
    95     Rocket::trailParticles->setColor(1.0, .7,.7,.7,.0);
     97    Rocket::trailParticles->setColor(0.8, .8,.8,.8,.8);
     98    Rocket::trailParticles->setColor(1.0, .8,.8,.8,.0);
    9699  }
    97100  if (unlikely(Rocket::explosionParticles == NULL))
     
    99102    Rocket::explosionParticles = new ParticleSystem(200, PARTICLE_SPRITE);
    100103    Rocket::explosionParticles->setName("RocketExplosionParticles");
     104    Rocket::explosionParticles->setMaterialTexture("maps/radial-trans-noise.png");
    101105    Rocket::explosionParticles->setLifeSpan(.6, .3);
    102106    Rocket::explosionParticles->setRadius(0.0, 10);
     
    111115  ParticleEngine::getInstance()->addConnection(this->emitter, Rocket::trailParticles);
    112116
    113   this->emitter->setEmissionRate(20.0);
    114   this->emitter->setEmissionVelocity(3.0);
     117  this->emitter->setEmissionRate(40.0);
     118  this->emitter->setEmissionVelocity(0.0);
    115119}
    116120
Note: See TracChangeset for help on using the changeset viewer.