Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 4, 2005, 11:40:59 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: nicer color in the debug of the OBBTreeNode

File:
1 edited

Legend:

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

    r5493 r5494  
    10711071  if (depth > 0)
    10721072  {
    1073     Vector childColor1 =  Color::HSVtoRGB(Color::RGBtoHSV(color)+Vector(10.0,0.0,0.0));
    1074     Vector childColor2 =  Color::HSVtoRGB(Color::RGBtoHSV(color)-Vector(10.0,0.0,0.0));
    10751073    if( this->nodeLeft != NULL)
    1076       this->nodeLeft->drawBV(depth - 1, drawMode, childColor1, false);
     1074      this->nodeLeft->drawBV(depth - 1, drawMode, Color::HSVtoRGB(Color::RGBtoHSV(color)+Vector(15.0,0.0,0.0)), false);
    10771075    if( this->nodeRight != NULL)
    1078       this->nodeRight->drawBV(depth - 1, drawMode, childColor2, false);
     1076      this->nodeRight->drawBV(depth - 1, drawMode, Color::HSVtoRGB(Color::RGBtoHSV(color)+Vector(30.0,0.0,0.0)), false);
    10791077  }
    10801078  this->bvElement->bCollided = false;
Note: See TracChangeset for help on using the changeset viewer.