Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5494 in orxonox.OLD for trunk/src


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

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

Location:
trunk/src/lib
Files:
2 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;
  • trunk/src/lib/util/color.cc

    r5011 r5494  
    9393  }
    9494  else {
    95     if(h == 360.)
    96       h = 0.0;
     95   if(h == 360.)
     96     h = 0.0;
    9797    h /= 60.;
    9898    i = (int) h;
Note: See TracChangeset for help on using the changeset viewer.