Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4716 in orxonox.OLD for orxonox/trunk/src/lib


Ignore:
Timestamp:
Jun 27, 2005, 12:18:28 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: sparkling vulkano: you have to shoot, to make the effect visible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/particles/particle_system.cc

    r4715 r4716  
    435435    case PARTICLE_SPARK:
    436436      glDisable(GL_LIGHTING);
    437       glEnable(GL_LINE_SMOOTH);
     437      glDepthMask(GL_FALSE);
     438      //glEnable(GL_LINE_SMOOTH);
     439      glEnable(GL_BLEND);
     440
    438441      glBegin(GL_LINES);
    439442      while (likely(drawPart != NULL))
     
    441444        glColor4fv(drawPart->color);
    442445        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);
    446449        drawPart = drawPart->next;
    447450      }
Note: See TracChangeset for help on using the changeset viewer.