Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8254 in orxonox.OLD


Ignore:
Timestamp:
Jun 8, 2006, 3:22:17 PM (18 years ago)
Author:
hdavid
Message:

branches/atmospheric_engiengine: lightening effect

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/atmospheric_engine/src/lib/graphics/effects/lightening_effect.cc

    r8251 r8254  
    7171  this->time = 0.0;
    7272  this->flashFrequency = 1.4f;
    73   this->flashConstTime = 0.8f;
    74   this->flashRisingTime = 0.5f;
     73  this->flashConstTime = 0.5f;
     74  this->flashRisingTime = 0.1f;
    7575
    7676  this->width = 400.0f;
    7777  this->height = 100.0f;
    78   this->seedWidth = 5;
    79   this->seedHeight = 5;
     78  this->seedWidth = 50;
     79  this->seedHeight = 50;
    8080  this->bNewCoordinate = false;
    8181
    82   this->seedX = 10.f;
    83   this->seedZ = 10.0f;
     82  this->seedX = 500.f;
     83  this->seedZ = 1000.0f;
    8484  this->seedTime = 4.0f;
    8585
     
    8787  this->billboard[0]->setTexture("maps/lightning_bolt1.png");
    8888  this->billboard[0]->setSize(this->width, this->height);
    89   this->billboard[0]->setAbsCoor(0.0f, 50.0f, 0.0f);
     89  this->billboard[0]->setAbsCoor(3000,850,0);
    9090  this->billboard[0]->setVisibiliy(false);
    9191
     
    9393  this->billboard[1]->setTexture("maps/lightning_bolt2.png");
    9494  this->billboard[1]->setSize(this->width, this->height);
    95   this->billboard[1]->setAbsCoor(0.0f, 50.0f, 0.0f);
     95  this->billboard[1]->setAbsCoor(3000,850,0);
    9696  this->billboard[1]->setVisibiliy(false);
    9797
     
    9999  this->billboard[2]->setTexture("maps/lightning_bolt3.png");
    100100  this->billboard[2]->setSize(this->width, this->height);
    101   this->billboard[2]->setAbsCoor(0.0f, 50.0f, 0.0f);
     101  this->billboard[2]->setAbsCoor(3000,850,0);
    102102  this->billboard[2]->setVisibiliy(false);
    103103
     
    207207    this->billboard[2]->setVisibiliy(false);
    208208    this->billboard[3]->setVisibiliy(true);
    209     //this->flashLight->setDiffuseColor(0,0,0);
     209    this->flashLight->setDiffuseColor(100,100,100);
    210210  }
    211211  else if( this->billboard[1]->isVisible() && this->time > this->flashRisingTime*2/3 )
     
    213213    this->billboard[1]->setVisibiliy(false);
    214214    this->billboard[2]->setVisibiliy(true);
    215    // this->flashLight->setDiffuseColor(0,0,0);
     215    this->flashLight->setDiffuseColor(0,0,0);
    216216  }
    217217  else if( this->billboard[0]->isVisible() && this->time > this->flashRisingTime*1/3 )
     
    219219    this->billboard[0]->setVisibiliy(false);
    220220    this->billboard[1]->setVisibiliy(true);
    221    // this->flashLight->setDiffuseColor(100,100,100);
     221    this->flashLight->setDiffuseColor(100,100,100);
    222222  }
    223223
Note: See TracChangeset for help on using the changeset viewer.