Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4676 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
Jun 23, 2005, 11:15:35 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: some more modularity in drawing process of the obb tree

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc

    r4675 r4676  
    619619    if( !(drawMode & DRAW_SINGLE && depth != 0))
    620620    {
    621       //glBegin(GL_LINE_STRIP);
    622621      for(int i = 0; i < this->bvElement->numOfVertices; ++i)
    623622      {
     
    626625        //glVertex3f(this->bvElement->vertices[i][0], this->bvElement->vertices[i][1], this->bvElement->vertices[i][2]);
    627626        glTranslatef(this->bvElement->vertices[i][0], this->bvElement->vertices[i][1], this->bvElement->vertices[i][2]);
    628         gluSphere(this->sphereObj, 0.2, 10, 10);
     627        gluSphere(this->sphereObj, 0.1, 10, 10);
    629628        //PRINTF(0)("v(%f, %f, %f)\n", this->bvElement->vertices[i][0], this->bvElement->vertices[i][1], this->bvElement->vertices[i][2]);
    630629        glPopMatrix();
    631630      }
    632       //glEnd();
    633631    }
    634632  }
     
    636634
    637635  /* draw world axes */
    638   glBegin(GL_LINES);
    639   glColor3f(0.0, 0.4, 0.3);
    640   glVertex3f(0.0, 0.0, 0.0);
    641   glVertex3f(3.0, 0.0, 0.0);
    642 
    643   glVertex3f(0.0, 0.0, 0.0);
    644   glVertex3f(0.0, 3.0, 0.0);
    645 
    646   glVertex3f(0.0, 0.0, 0.0);
    647   glVertex3f(0.0, 0.0, 3.0);
    648   glEnd();
    649 
     636  if( drawMode & DRAW_BV_AXIS)
     637  {
     638    glBegin(GL_LINES);
     639    glColor3f(0.0, 0.4, 0.3);
     640    glVertex3f(0.0, 0.0, 0.0);
     641    glVertex3f(3.0, 0.0, 0.0);
     642
     643    glVertex3f(0.0, 0.0, 0.0);
     644    glVertex3f(0.0, 3.0, 0.0);
     645
     646    glVertex3f(0.0, 0.0, 0.0);
     647    glVertex3f(0.0, 0.0, 3.0);
     648    glEnd();
     649  }
    650650
    651651  if( drawMode & DRAW_BV_AXIS || drawMode & DRAW_ALL)
Note: See TracChangeset for help on using the changeset viewer.