Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4638 in orxonox.OLD for orxonox/trunk/src/subprojects


Ignore:
Timestamp:
Jun 16, 2005, 1:42:14 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: changed the way the data is displayed, now supports colors and stuff. noticed some data drawing problems. the tree separation seems so work perfectly but the graphical data representation is buggy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/subprojects/collision_detection/collision_detection.cc

    r4636 r4638  
    3737{
    3838  CDEngine::getInstance();
    39   //CDEngine::getInstance()->debug();
    40 
    41   model = new MD2Model("models/tris.md2", "models/tris.pcx");
    42   model->tick(0.1f);
     39  CDEngine::getInstance()->debug();
     40
     41  //model = new MD2Model("models/tris.md2", "models/tris.pcx");
     42  //model->tick(0.1f);
    4343
    4444//   int const length = 6;
     
    5353//   }
    5454
    55   CDEngine::getInstance()->debugSpawnTree(7, model->data->pVertices, model->data->numVertices);
     55  //CDEngine::getInstance()->debugSpawnTree(3, model->data->pVertices, model->data->numVertices);
    5656
    5757
     
    5959  lightMan->setAmbientColor(.1,.1,.1);
    6060  lightMan->addLight();
     61  lightMan->setPosition(30, 30, 30);
    6162  lightMan->addLight();
    62   lightMan->setPosition(10, 20, 100);
     63  lightMan->setPosition(-30, -30, -30);
    6364
    6465  drawMode = DRAW_MODEL;
     
    7172  printf(" -| Displaying Separation Plane\t s\n");
    7273  printf("\n");
     74  printf(" -| Tree Depth 0\t\t 0\n");
    7375  printf(" -| Tree Depth 1\t\t 1\n");
    7476  printf(" -| Tree Depth 2\t\t 2\n");
     
    9092          drawMode |= DRAW_ALL;
    9193          break;
     94        case SDLK_0:
     95        {
     96          printf("Setting tree depth = 0\n");
     97          depth = 0;
     98          int temp = drawMode & DRAW_ALL;
     99          drawMode ^= temp;
     100          drawMode |= DRAW_SINGLE;
     101          break;
     102        }
    92103        case SDLK_1:
    93104        {
Note: See TracChangeset for help on using the changeset viewer.