Changeset 4228 in orxonox.OLD for orxonox/trunk
- Timestamp:
- May 19, 2005, 11:02:05 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r4222 r4228 364 364 if( element == NULL) 365 365 { 366 PRINTF 0("============>>>>>>>>>>>>>>>>>World is missing a 'Track'\n");366 PRINTF(0)("World is missing a 'Track'\n"); 367 367 } 368 368 else 369 369 { 370 370 //load track 371 PRINTF 0("============>>>>>>>>>>>>>>>>Loading Track\n");371 PRINTF(4)("Loading Track\n"); 372 372 373 373 trackManager->load( element); 374 374 trackManager->finalize(); 375 PRINTF0("============>>>>>>>>>>>>>>>>Done loading Track\n");376 375 } 377 376 … … 388 387 //this->localCamera->bind (localPlayer); 389 388 this->localPlayer->addChild (this->localCamera); 390 391 392 // stuff beyond this point remains to be loaded properly393 /*394 // initializing the TrackManager395 this->trackManager = TrackManager::getInstance();396 //trackManager->addPoint(Vector(0,0,0));397 trackManager->addPoint(Vector(150, -35, 5));398 trackManager->addPoint(Vector(200,-35, 5));399 trackManager->addPoint(Vector(250, -35, 5));400 trackManager->addPoint(Vector(320,-33,-.55));401 trackManager->setDuration(1);402 trackManager->setSavePoint();403 404 trackManager->addPoint(Vector(410, 0, 0));405 trackManager->addPoint(Vector(510, 20, -10));406 trackManager->addPoint(Vector(550, 20, -10));407 trackManager->addPoint(Vector(570, 20, -10));408 trackManager->setDuration(2);409 410 trackManager->forkS("testFork1,testFork2");411 trackManager->workOn("testFork1");412 trackManager->addPoint(Vector(640, 25, -30));413 trackManager->addPoint(Vector(700, 40, -120));414 trackManager->addPoint(Vector(800, 50, -150));415 trackManager->addPoint(Vector(900, 60, -100));416 trackManager->addPoint(Vector(900, 60, -70));417 trackManager->addPoint(Vector(990, 65, -15));418 trackManager->addPoint(Vector(1050, 65, -10));419 trackManager->addPoint(Vector(1100, 65, -20));420 trackManager->setDuration(4);421 422 trackManager->workOn("testFork2");423 trackManager->addPoint(Vector(640, 25, 20));424 trackManager->addPoint(Vector(670, 50, 120));425 trackManager->addPoint(Vector(700, 70, 80));426 trackManager->addPoint(Vector(800, 70, 65));427 trackManager->addPoint(Vector(850, 65, 65));428 trackManager->addPoint(Vector(920, 35, 40));429 trackManager->addPoint(Vector(945, 40, 40));430 trackManager->addPoint(Vector(970, 24, 40));431 trackManager->addPoint(Vector(1000, 40, -7));432 trackManager->setDuration(4);433 434 435 trackManager->joinS("testFork1,testFork2");436 437 trackManager->addPoint(Vector(1200, 60, -50));438 trackManager->addPoint(Vector(1300, 50, -50));439 trackManager->addPoint(Vector(1400, 40, -50));440 trackManager->addPoint(Vector(1500, 40, -60));441 trackManager->addPoint(Vector(1600, 35, -55));442 trackManager->addPoint(Vector(1700, 45, -40));443 trackManager->addPoint(Vector(1750, 60, -40));444 trackManager->addPoint(Vector(1770, 80, -40));445 trackManager->addPoint(Vector(1800, 100, -40));446 trackManager->setDuration(10);447 */448 trackManager->finalize();449 450 389 451 390 lightMan->setAmbientColor(.1,.1,.1); … … 501 440 /*monitor progress*/ 502 441 this->glmis->step(); 442 // stuff beyond this point remains to be loaded properly 443 444 // initializing the TrackManager 445 this->trackManager = TrackManager::getInstance(); 446 //trackManager->addPoint(Vector(0,0,0)); 447 trackManager->addPoint(Vector(150, -35, 5)); 448 trackManager->addPoint(Vector(200,-35, 5)); 449 trackManager->addPoint(Vector(250, -35, 5)); 450 trackManager->addPoint(Vector(320,-33,-.55)); 451 trackManager->setDuration(1); 452 trackManager->setSavePoint(); 453 454 trackManager->addPoint(Vector(410, 0, 0)); 455 trackManager->addPoint(Vector(510, 20, -10)); 456 trackManager->addPoint(Vector(550, 20, -10)); 457 trackManager->addPoint(Vector(570, 20, -10)); 458 trackManager->setDuration(2); 459 460 trackManager->forkS("testFork1,testFork2"); 461 trackManager->workOn("testFork1"); 462 trackManager->addPoint(Vector(640, 25, -30)); 463 trackManager->addPoint(Vector(700, 40, -120)); 464 trackManager->addPoint(Vector(800, 50, -150)); 465 trackManager->addPoint(Vector(900, 60, -100)); 466 trackManager->addPoint(Vector(900, 60, -70)); 467 trackManager->addPoint(Vector(990, 65, -15)); 468 trackManager->addPoint(Vector(1050, 65, -10)); 469 trackManager->addPoint(Vector(1100, 65, -20)); 470 trackManager->setDuration(4); 471 472 trackManager->workOn("testFork2"); 473 trackManager->addPoint(Vector(640, 25, 20)); 474 trackManager->addPoint(Vector(670, 50, 120)); 475 trackManager->addPoint(Vector(700, 70, 80)); 476 trackManager->addPoint(Vector(800, 70, 65)); 477 trackManager->addPoint(Vector(850, 65, 65)); 478 trackManager->addPoint(Vector(920, 35, 40)); 479 trackManager->addPoint(Vector(945, 40, 40)); 480 trackManager->addPoint(Vector(970, 24, 40)); 481 trackManager->addPoint(Vector(1000, 40, -7)); 482 trackManager->setDuration(4); 483 484 485 trackManager->joinS("testFork1,testFork2"); 486 487 trackManager->addPoint(Vector(1200, 60, -50)); 488 trackManager->addPoint(Vector(1300, 50, -50)); 489 trackManager->addPoint(Vector(1400, 40, -50)); 490 trackManager->addPoint(Vector(1500, 40, -60)); 491 trackManager->addPoint(Vector(1600, 35, -55)); 492 trackManager->addPoint(Vector(1700, 45, -40)); 493 trackManager->addPoint(Vector(1750, 60, -40)); 494 trackManager->addPoint(Vector(1770, 80, -40)); 495 trackManager->addPoint(Vector(1800, 100, -40)); 496 trackManager->setDuration(10); 497 498 trackManager->finalize(); 499 503 500 504 501 // LIGHT initialisation 505 506 502 lightMan->setAmbientColor(.1,.1,.1); 507 503 lightMan->addLight();
Note: See TracChangeset
for help on using the changeset viewer.