Changeset 8254 in orxonox.OLD
- Timestamp:
- Jun 8, 2006, 3:22:17 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/lightening_effect.cc
r8251 r8254 71 71 this->time = 0.0; 72 72 this->flashFrequency = 1.4f; 73 this->flashConstTime = 0. 8f;74 this->flashRisingTime = 0. 5f;73 this->flashConstTime = 0.5f; 74 this->flashRisingTime = 0.1f; 75 75 76 76 this->width = 400.0f; 77 77 this->height = 100.0f; 78 this->seedWidth = 5 ;79 this->seedHeight = 5 ;78 this->seedWidth = 50; 79 this->seedHeight = 50; 80 80 this->bNewCoordinate = false; 81 81 82 this->seedX = 10.f;83 this->seedZ = 10 .0f;82 this->seedX = 500.f; 83 this->seedZ = 1000.0f; 84 84 this->seedTime = 4.0f; 85 85 … … 87 87 this->billboard[0]->setTexture("maps/lightning_bolt1.png"); 88 88 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); 90 90 this->billboard[0]->setVisibiliy(false); 91 91 … … 93 93 this->billboard[1]->setTexture("maps/lightning_bolt2.png"); 94 94 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); 96 96 this->billboard[1]->setVisibiliy(false); 97 97 … … 99 99 this->billboard[2]->setTexture("maps/lightning_bolt3.png"); 100 100 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); 102 102 this->billboard[2]->setVisibiliy(false); 103 103 … … 207 207 this->billboard[2]->setVisibiliy(false); 208 208 this->billboard[3]->setVisibiliy(true); 209 //this->flashLight->setDiffuseColor(0,0,0);209 this->flashLight->setDiffuseColor(100,100,100); 210 210 } 211 211 else if( this->billboard[1]->isVisible() && this->time > this->flashRisingTime*2/3 ) … … 213 213 this->billboard[1]->setVisibiliy(false); 214 214 this->billboard[2]->setVisibiliy(true); 215 //this->flashLight->setDiffuseColor(0,0,0);215 this->flashLight->setDiffuseColor(0,0,0); 216 216 } 217 217 else if( this->billboard[0]->isVisible() && this->time > this->flashRisingTime*1/3 ) … … 219 219 this->billboard[0]->setVisibiliy(false); 220 220 this->billboard[1]->setVisibiliy(true); 221 //this->flashLight->setDiffuseColor(100,100,100);221 this->flashLight->setDiffuseColor(100,100,100); 222 222 } 223 223
Note: See TracChangeset
for help on using the changeset viewer.