Changeset 4193 in orxonox.OLD for orxonox/branches/physics
- Timestamp:
- May 16, 2005, 1:06:31 AM (20 years ago)
- Location:
- orxonox/branches/physics/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/physics/src/lib/graphics/particles/particle_system.cc
r4192 r4193 245 245 // applying Color 246 246 //! \todo better algorithm to do this \todo also implement the midColor 247 tickPart->color[0] = this->startColor[0] *(1-tickPart->lifeCycle) + tickPart->lifeCycle * this->endColor[0]; 248 tickPart->color[1] = this->startColor[1] *(1-tickPart->lifeCycle) + tickPart->lifeCycle * this->endColor[1]; 249 tickPart->color[2] = this->startColor[2] *(1-tickPart->lifeCycle) + tickPart->lifeCycle * this->endColor[2]; 250 tickPart->color[3] = this->startColor[3] *(1-tickPart->lifeCycle) + tickPart->lifeCycle * this->endColor[3]; 251 247 if (tickPart->lifeCycle < .5) 248 { 249 tickPart->color[0] = this->startColor[0] *(1.0-tickPart->lifeCycle*2.0) + this->midColor[0] *(tickPart->lifeCycle*2); 250 tickPart->color[1] = this->startColor[1] *(1.0-tickPart->lifeCycle*2.0) + this->midColor[1] *(tickPart->lifeCycle*2); 251 tickPart->color[2] = this->startColor[2] *(1.0-tickPart->lifeCycle*2.0) + this->midColor[2] *(tickPart->lifeCycle*2); 252 tickPart->color[3] = this->startColor[3] *(1.0-tickPart->lifeCycle*2.0) + this->midColor[3] *(tickPart->lifeCycle*2); 253 } 254 else 255 { 256 tickPart->color[0] = this->midColor[0] *(2.0-tickPart->lifeCycle*2.0) + this->endColor[0] *(tickPart->lifeCycle*2); 257 tickPart->color[1] = this->midColor[1] *(2.0-tickPart->lifeCycle*2.0) + this->endColor[1] *(tickPart->lifeCycle*2); 258 tickPart->color[2] = this->midColor[2] *(2.0-tickPart->lifeCycle*2.0) + this->endColor[2] *(tickPart->lifeCycle*2); 259 tickPart->color[3] = this->midColor[3] *(2.0-tickPart->lifeCycle*2.0) + this->endColor[3] *(tickPart->lifeCycle*2); 260 } 252 261 // many more to come 253 262 -
orxonox/branches/physics/src/story_entities/world.cc
r4192 r4193 496 496 system->setLifeSpan(1); 497 497 system->setConserve(.8); 498 system->setRadius(4, 0, 1, 0);499 system->setColor( 1,0,0,1, 1,1,0,1, 0,0,0,0);498 system->setRadius(4, 3, 1, 2); 499 system->setColor(.5,0,0,.5, 1,1,0,1, 0,0,0,0); 500 500 501 501 // Creating a Test Particle Emitter
Note: See TracChangeset
for help on using the changeset viewer.