Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 26, 2005, 10:10:48 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: weeped out some very serious bugs, now the tree separation werks flawless, hf

File:
1 edited

Legend:

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

    r4708 r4710  
    2929#include "test_entity.h"
    3030#include "environment.h"
     31
    3132
    3233#include "graphics_engine.h"
     
    4445bool drawModel;
    4546
    46 Environment* a;
    47 Environment* b;
     47WorldEntity* a;
     48WorldEntity* b;
     49//Terrain* c;
    4850
    4951void Framework::moduleInit(int argc, char** argv)
     
    5355  CDEngine::getInstance();
    5456
    55   /* Simple Test */
    56   //CDEngine::getInstance()->debug();
     57  /* Primitive Data Test */
     58//   sVec3D* data = new sVec3D[6];
     59//   float tmp[6][3] = {{0.0, 4.2, 2.4}, {3.0, 3.0, 2.0}, {5.0, 1.0, 6.0}, {6.5, 1.0, 3.0}, {7.0, 3.0, 5.0}, {8.0, 6.0, 6.0}};
     60//   for(int i = 0; i < 6; ++i)
     61//   {
     62//     data[i][0] = tmp[i][0];
     63//     data[i][1] = tmp[i][1];
     64//     data[i][2] = tmp[i][2];
     65//   }
     66//   CDEngine::getInstance()->debugSpawnTree(5, data, 6);
    5767
    5868  /* MD2 Model Test */
     
    6979  entityList = new tList<WorldEntity>();
    7080
    71   //a = new TestEntity(); a->setName("Clown1");
    72   a = new Environment(); a->setName("Clown");
    73   b = new Environment(); b->setName("Jaeger");
     81  a = new TestEntity(); a->setName("Clown1");
     82  b = new Environment(); a->setName("Clown");
     83  //b = new Environment(); b->setName("Jaeger");
     84  //c = new Terrain();
    7485
    7586  b->setRelCoor(0.0, 0.0, -10.0);
    76   b->setRelDir(Quaternion(-M_PI/2.0f, Vector(0.0, 1.0, 0.0)));
    77 
    78 //   TestEntity* c = new TestEntity(); c->setName("Colwn2");
    79 //   c->setRelCoor(0.0, 0.0, -20.0);
     87  //b->setRelDir(Quaternion(-M_PI/2.0f, Vector(0.0, 1.0, 0.0)));
    8088
    8189  entityList->add(a);
     
    8593
    8694  LightManager* lightMan = LightManager::getInstance();
    87   lightMan->setAmbientColor(.1,.1,.1);
     95    lightMan->setAmbientColor(.1,.1,.1);
    8896  lightMan->addLight();
    89   lightMan->setPosition(30, 30, 30);
     97  lightMan->setPosition(-5.0, 50.0, -40.0);
    9098  lightMan->addLight();
    91   lightMan->setPosition(-30, -30, -30);
     99  lightMan->setPosition(100, 80, 60);
     100
    92101
    93102  /* properties */
     
    223232
    224233
    225   b->shiftCoor(Vector(0.0, 0.0, iterata));
     234  //b->shiftCoor(Vector(0.0, 0.0, iterata));
    226235
    227236
     
    239248void Framework::moduleDraw() const
    240249{
     250  //CDEngine::getInstance()->debugDraw(depth, drawMode);
     251
    241252  tIterator<WorldEntity>* iterator = entityList->getIterator();
    242253  WorldEntity* entity = iterator->nextElement();
     
    371382
    372383
    373       Slider* TreeDepth = new Slider("TreeDepth", 0, 5);
     384      Slider* TreeDepth = new Slider("TreeDepth", 0, 10);
    374385      TreeDepth->connectSignal("value_changed", (void*)TreeDepth, treeDepth);
    375386      windowBox->fill(TreeDepth);
Note: See TracChangeset for help on using the changeset viewer.