Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3567 in orxonox.OLD for orxonox/trunk/src/story_entities/world.cc


Ignore:
Timestamp:
Mar 16, 2005, 12:52:41 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: new Grounds for new Territory. and new track

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r3566 r3567  
    125125      // initializing the TrackManager
    126126      trackManager = TrackManager::getInstance();
    127       trackManager->addPoint(Vector(0,-5,0));
    128       trackManager->addPoint(Vector(10,0,5));
    129       trackManager->addPoint(Vector(20,0,-5));
    130       trackManager->addPoint(Vector(30,0,5));
    131       trackManager->addPoint(Vector(40,0,5));
     127      trackManager->addPoint(Vector(0,0,0));
     128      trackManager->addPoint(Vector(100, -40, 5));
     129      trackManager->addPoint(Vector(200,-40,-8));
     130      trackManager->addPoint(Vector(250, -35, -2));
     131      trackManager->addPoint(Vector(320,-33,-.55));
     132      trackManager->setDuration(1);
     133      trackManager->setSavePoint();
     134      trackManager->addPoint(Vector(410, 0, 0));
     135      trackManager->addPoint(Vector(510, 20, -10));
     136      trackManager->addPoint(Vector(550, 20, -10));
     137      trackManager->addPoint(Vector(570, 20, -10));
     138      trackManager->setDuration(1);
     139     
     140      int fork11, fork12;
     141      trackManager->fork(2, &fork11, &fork12);
     142      trackManager->workOn(fork11);
     143      trackManager->addPoint(Vector(640, 25, -30));
     144      trackManager->addPoint(Vector(700, 40, -120));
     145      trackManager->addPoint(Vector(800, 50, -150));
     146      trackManager->addPoint(Vector(900, 60, -100));
     147      trackManager->addPoint(Vector(900, 60, -70));
     148      trackManager->addPoint(Vector(990, 65, -15));
     149      trackManager->addPoint(Vector(1050, 65, -10));
     150      trackManager->addPoint(Vector(1100, 65, -20));
    132151      trackManager->setDuration(4);
    133       int fork11, fork12, fork13;
    134       trackManager->fork(3, &fork11, &fork12, &fork13);
    135       trackManager->workOn(fork11);
    136       trackManager->addPoint(Vector(70, 0, -10));
    137       trackManager->addPoint(Vector(100, 0, -15));
    138       trackManager->addPoint(Vector(300, 0, -15));
    139       trackManager->setDuration(10);
     152
    140153      trackManager->workOn(fork12);
    141       trackManager->addPoint(Vector(70,  0, 0));
    142       trackManager->addPoint(Vector(100, 0, 0));
    143       trackManager->addPoint(Vector(120,10, 0));
    144       trackManager->addPoint(Vector(150,10, 0));
    145       trackManager->addPoint(Vector(180,15, 0));
    146       trackManager->addPoint(Vector(200,10, 0));
    147       trackManager->setDuration(7);
    148       trackManager->workOn(fork13);
    149       trackManager->addPoint(Vector(70,  0, 10));
    150       trackManager->addPoint(Vector(100, 0, 30));
    151       trackManager->addPoint(Vector(120,-10, 30));
    152       trackManager->addPoint(Vector(150,-10, 30));
    153       trackManager->setDuration(10);
    154       trackManager->join(2, fork12, fork13);
     154      trackManager->addPoint(Vector(640, 25, 20));
     155      trackManager->addPoint(Vector(670, 50, 120));
     156      trackManager->addPoint(Vector(700, 70, 80));
     157      trackManager->addPoint(Vector(800, 70, 65));
     158      trackManager->addPoint(Vector(850, 65, 65));
     159      trackManager->addPoint(Vector(920, 35, 40));
     160      trackManager->addPoint(Vector(945, 40, 40));
     161      trackManager->addPoint(Vector(970, 24, 40));
     162      trackManager->addPoint(Vector(1000, 40, -7));
     163      trackManager->setDuration(4);
     164     
     165
     166      trackManager->join(2, fork11, fork12);
    155167
    156168      trackManager->workOn(5);
    157       trackManager->addPoint(Vector(250, 20, 10));
    158       trackManager->addPoint(Vector(290, 20, 10));
    159       trackManager->setDuration(5);
    160       trackManager->setSavePoint();
    161       trackManager->addPoint(Vector(350, 20, 10));
    162       trackManager->addPoint(Vector(360, 20, 10));
    163       trackManager->addPoint(Vector(370, 20, 10));
    164       trackManager->setDuration(5);
    165 
    166       trackManager->join(2, 6, fork11);
     169      trackManager->addPoint(Vector(1200, 60, -50));
     170      trackManager->addPoint(Vector(1300, 50, -50));
     171      trackManager->addPoint(Vector(1400, 40, -50));
     172      trackManager->addPoint(Vector(1500, 40, -60));
     173      trackManager->addPoint(Vector(1600, 35, -55));
     174      trackManager->addPoint(Vector(1700, 45, -40));
     175      trackManager->addPoint(Vector(1750, 60, -40));
     176      trackManager->addPoint(Vector(1770, 80, -40));
     177      trackManager->addPoint(Vector(1800, 100, -40));
     178      trackManager->setDuration(4);
    167179
    168180      trackManager->finalize();
     
    246258            Vector* cameraOffset = new Vector (-10, 5, 0);
    247259            this->localCamera->setRelCoor (cameraOffset);
    248             trackManager->condition(1, NEAREST, myPlayer);
     260            trackManager->condition(2, NEAREST, myPlayer);
    249261
    250262            break;
     
    294306  glEndList();
    295307
    296   terrain = new Terrain("nGround.obj");
     308  terrain = new Terrain("../data/worlds/newGround.obj");
    297309  terrain->setRelCoor(&Vector(0,-10,0));
    298310  this->spawn(terrain);
     
    303315  light->setAttenuation(CONSTANT, 2.0);
    304316  light->setAttenuation(QUADRATIC, 1.0);
    305   light->setPosition(10.0, 10.0, 50.0);
     317  light->setPosition(10.0, 30.0, 10.0);
    306318  light->setDiffuseColor(1,1,1);
    307319  //  light->addLight(1);
Note: See TracChangeset for help on using the changeset viewer.