Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6449 in orxonox.OLD for branches/collision_detection/src


Ignore:
Timestamp:
Jan 9, 2006, 2:02:49 PM (19 years ago)
Author:
patrick
Message:

cd: draw fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/collision_detection/src/lib/collision_detection/obb_tree_node.cc

    r6448 r6449  
    705705    }
    706706  }
    707 /*  if (top)
     707
     708  if (top)
    708709  {
    709710    glPushAttrib(GL_ENABLE_BIT);
    710711    glDisable(GL_LIGHTING);
    711712    glDisable(GL_TEXTURE_2D);
    712   }*/
     713  }
    713714  glColor3f(color.x, color.y, color.z);
    714715
     
    733734
    734735
    735   if( drawMode & DRAW_BV_AXIS || drawMode & DRAW_ALL)
     736  if( 1/*drawMode & DRAW_BV_AXIS || drawMode & DRAW_ALL*/)
    736737  {
    737738    if(1 /*!(drawMode & DRAW_SINGLE && depth != 0)*/)
     
    739740      /* draw the obb axes */
    740741      glBegin(GL_LINES);
    741       glColor3f(0.0, 0.4, 0.3);
     742      glColor3f(1.0, 0.0, 0.0);
    742743      glVertex3f(this->bvElement->center.x, this->bvElement->center.y, this->bvElement->center.z);
    743744      glVertex3f(this->bvElement->center.x + this->bvElement->axis[0].x * this->bvElement->halfLength[0],
     
    745746                 this->bvElement->center.z + this->bvElement->axis[0].z * this->bvElement->halfLength[0]);
    746747
     748      glColor3f(0.0, 1.0, 0.0);
    747749      glVertex3f(this->bvElement->center.x, this->bvElement->center.y, this->bvElement->center.z);
    748750      glVertex3f(this->bvElement->center.x + this->bvElement->axis[1].x * this->bvElement->halfLength[1],
     
    750752                 this->bvElement->center.z + this->bvElement->axis[1].z * this->bvElement->halfLength[1]);
    751753
     754      glColor3f(0.0, 0.0, 1.0);
    752755      glVertex3f(this->bvElement->center.x, this->bvElement->center.y, this->bvElement->center.z);
    753756      glVertex3f(this->bvElement->center.x + this->bvElement->axis[2].x * this->bvElement->halfLength[2],
Note: See TracChangeset for help on using the changeset viewer.