Changeset 4716 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Jun 27, 2005, 12:18:28 AM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/particles/particle_system.cc
r4715 r4716 435 435 case PARTICLE_SPARK: 436 436 glDisable(GL_LIGHTING); 437 glEnable(GL_LINE_SMOOTH); 437 glDepthMask(GL_FALSE); 438 //glEnable(GL_LINE_SMOOTH); 439 glEnable(GL_BLEND); 440 438 441 glBegin(GL_LINES); 439 442 while (likely(drawPart != NULL)) … … 441 444 glColor4fv(drawPart->color); 442 445 glVertex3f(drawPart->position.x, drawPart->position.y, drawPart->position.z); 443 glVertex3f(drawPart->position.x - drawPart->velocity.x ,444 drawPart->position.y - drawPart->velocity.y ,445 drawPart->position.z - drawPart->velocity.z );446 glVertex3f(drawPart->position.x - drawPart->velocity.x * drawPart->radius, 447 drawPart->position.y - drawPart->velocity.y * drawPart->radius, 448 drawPart->position.z - drawPart->velocity.z * drawPart->radius); 446 449 drawPart = drawPart->next; 447 450 } -
orxonox/trunk/src/story_entities/world.cc
r4715 r4716 501 501 vulcanEmitFog->setRelCoor(2460,105, 606); 502 502 ParticleEngine::getInstance()->addConnection(vulcanEmitFog, vulcanSysFog); 503 504 505 // SYSTEM OF THE VULCANO 506 ParticleSystem* vulcanSysSpark = new ParticleSystem(10000, PARTICLE_SPARK); 507 vulcanSysSpark->setLifeSpan(5, 2); 508 vulcanSysSpark->setRadius(0.0, .2, .1); 509 vulcanSysSpark->setRadius(.2, .1, .1); 510 vulcanSysSpark->setRadius(1.0, 0, 0); 511 vulcanSysSpark->setMass (0.0, .1); 512 vulcanSysSpark->setColor(0, 1.0, .0, .0, .3); 513 vulcanSysSpark->setColor(.5, 1.0, 1.0, .0, .2); 514 vulcanSysSpark->setColor(1, .0, .0, .0, 0); 515 516 ParticleEmitter* vulcanEmitSpark = new ParticleEmitter(Vector(0,1,0), .5, 100, 150); 517 vulcanEmitSpark->setEmissionVelocity(500, 500); 518 vulcanEmitSpark->setType(EMITTER_CUBE); 519 vulcanEmitSpark->setSize(40); 520 vulcanEmitSpark->setRelCoor(2460,105, 606); 521 ParticleEngine::getInstance()->addConnection(vulcanEmitSpark, vulcanSysSpark); 522 new PhysicsConnection(vulcanSysSpark, gravity); 523 524 503 525 504 526 ParticleSystem* vulcanSysStone = new ParticleSystem(1000, PARTICLE_SPRITE);
Note: See TracChangeset
for help on using the changeset viewer.