Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3518 in orxonox.OLD for orxonox/branches/trackManager


Ignore:
Timestamp:
Mar 12, 2005, 1:08:28 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/trackManager: some fancy track, and deleted unncecesary stuff from world.cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/trackManager/src/story_entities/world.cc

    r3516 r3518  
    116116      trackManager->addPoint(Vector(30,0,5));
    117117      trackManager->addPoint(Vector(40,0,5));
    118       trackManager->setDuration(3);
     118      trackManager->setDuration(20);
    119119      int fork11, fork12, fork13;
    120120      trackManager->fork(3, &fork11, &fork12, &fork13);
     
    122122      trackManager->addPoint(Vector(70, 0, -10));
    123123      trackManager->addPoint(Vector(100, 0, -15));
    124       trackManager->setDuration(3);
     124      trackManager->addPoint(Vector(300, 0, -15));
     125      trackManager->setDuration(4);
    125126      trackManager->workOn(fork12);
    126127      trackManager->addPoint(Vector(70,  0, 0));
     
    128129      trackManager->addPoint(Vector(120,10, 0));
    129130      trackManager->addPoint(Vector(150,10, 0));
     131      trackManager->addPoint(Vector(180,15, 0));
     132      trackManager->addPoint(Vector(200,10, 0));
    130133      trackManager->setDuration(7);
    131134      trackManager->workOn(fork13);
     
    134137      trackManager->addPoint(Vector(120,-10, 30));
    135138      trackManager->addPoint(Vector(150,-10, 30));
     139      trackManager->setDuration(10);
     140      trackManager->join(2, fork12, fork13);
     141
     142      trackManager->workOn(5);
     143      trackManager->addPoint(Vector(250, 20, 10));
     144      trackManager->addPoint(Vector(290, 20, 10));
     145      trackManager->setDuration(5);
     146      trackManager->setSavePoint();
     147      trackManager->addPoint(Vector(350, 20, 10));
     148      trackManager->addPoint(Vector(360, 20, 10));
     149      trackManager->addPoint(Vector(370, 20, 10));
     150      trackManager->setDuration(5);
     151
     152      trackManager->join(2, 6, fork11);
    136153
    137154      trackManager->finalize();
     
    140157      this->glmis->step();
    141158
    142       /*
    143         tmpCurve->addNode(Vector(10,  -1,  -1));
    144         tmpCurve->addNode(Vector(10,  -2,   2));
    145         tmpCurve->addNode(Vector(10,   3,   3));
    146         tmpCurve->addNode(Vector(10,   4,  -4), 0);
    147         tmpCurve->addNode(Vector(10,  -1,  -1));
    148         tmpCurve->addNode(Vector(10,  -2,   2));
    149         tmpCurve->addNode(Vector(10,   3,   3));
    150         tmpCurve->addNode(Vector(10,   4,  -4), 0);
    151         tmpCurve->debug();
    152       */
    153159      switch(this->debugWorldNr)
    154160        {
     
    164170            this->nullParent->setName ("NullParent");
    165171
    166             // !\todo old track-system has to be removed
    167 
    168172            //create helper for player
    169173            HelperParent* hp = new HelperParent ();
     
    212216        case DEBUG_WORLD_1:
    213217          {
    214             /*
    215             this->testCurve = new UPointCurve();
    216             this->testCurve->addNode(Vector( 0, 0, 0));
    217             this->testCurve->addNode(Vector(10, 0, 5));
    218             this->testCurve->addNode(Vector(20, -5,-5));
    219             this->testCurve->addNode(Vector(30, 5, 10));
    220             this->testCurve->addNode(Vector(40, 0,-10));
    221             this->testCurve->addNode(Vector(50, 0,-10));
    222             */
    223218
    224219            this->nullParent = NullParent::getInstance ();
     
    383378      }
    384379  glEnd();
    385   /* 
    386   glBegin(GL_LINES);
    387   for( float x = -128.0; x < 128.0; x += 25.0)
    388     {
    389       for( float y = -128.0; y < 128.0; y += 25.0)
    390         {
    391           glColor3f(1,0,0);
    392           glVertex3f(x,y,-128.0);
    393           glVertex3f(x,y,0.0);
    394           glColor3f(0.5,0,0);
    395           glVertex3f(x,y,0.0);
    396           glVertex3f(x,y,128.0);
    397         }
    398     }
    399   for( float y = -128.0; y < 128.0; y += 25.0)
    400     {
    401       for( float z = -128.0; z < 128.0; z += 25.0)
    402         {
    403           glColor3f(0,1,0);
    404           glVertex3f(-128.0,y,z);
    405           glVertex3f(0.0,y,z);
    406           glColor3f(0,0.5,0);
    407           glVertex3f(0.0,y,z);
    408           glVertex3f(128.0,y,z);
    409         }
    410     }
    411   for( float x = -128.0; x < 128.0; x += 25.0)
    412     {
    413       for( float z = -128.0; z < 128.0; z += 25.0)
    414         {
    415           glColor3f(0,0,1);
    416           glVertex3f(x,-128.0,z);
    417           glVertex3f(x,0.0,z);
    418           glColor3f(0,0,0.5);
    419           glVertex3f(x,0.0,z);
    420           glVertex3f(x,128.0,z);
    421         }
    422      
    423     }
    424   */ 
    425   /*
    426   glBegin(GL_LINE_STRIP);
    427   glColor3f(1.0, 5.0, 1.0);
    428   for( int i = 0; i <= 30; i++)
    429     {
    430       glEvalCoord1f ((GLfloat) i/30.0);
    431     }
    432   glEnd();
    433   */
    434380
    435381  trackManager->drawGraph(.01);
    436382  trackManager->debug(2);
    437   /* 
    438   glBegin(GL_LINES);
    439   float i;
    440   for(i = 0.0; i<1; i+=.01)
    441     {
    442       printf("%f, %f, %f\n",tmpCurve->calcPos(i).x, tmpCurve->calcPos(i).y, tmpCurve->calcPos(i).z);
    443       glVertex3f(tmpCurve->calcPos(i).x, tmpCurve->calcPos(i).y, tmpCurve->calcPos(i).z);
    444     }
    445   glEnd();
    446   */
     383
    447384  glEndList();
    448385  // LIGHT initialisation
Note: See TracChangeset for help on using the changeset viewer.