Changeset 134 for osgVisual/src/core
- Timestamp:
- Oct 17, 2010, 8:32:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/src/core/visual_core.cpp
r133 r134 85 85 viewer->realize(); 86 86 87 // setup scenery88 setupScenery();89 90 87 // parse Configuration file 91 88 parseConfigFile(arguments); … … 100 97 void visual_core::mainLoop() 101 98 { 99 int framestoScenerySetup = 5; 102 100 // run main loop 103 101 while( !viewer->done() ) 104 102 { 103 // setup scenery 104 if(framestoScenerySetup-- == 0) 105 setupScenery(); 106 105 107 // next frame please.... 106 108 viewer->advance(); … … 408 410 void visual_core::setupScenery() 409 411 { 410 // iterate manually through one frame to allow some modules like Sky_Silverlining to initialize properly before we configure it according to the scenery data.411 viewer->advance();412 viewer->eventTraversal();413 viewer->updateTraversal();414 viewer->renderingTraversals();415 412 416 413 // Sky settings: … … 423 420 //sky->addCloudLayer( 2, 50000, 50000, 600.0, 7351.0, 0.2, CIRROCUMULUS ); 424 421 //sky->addCloudLayer( 3, 100000, 100000, 1300.0, 100.0, 0.07, CUMULUS_CONGESTUS ); 425 sky->addCloudLayer( 1, 10000, 10000, 600.0, 1000.0, 0.90, STRATOCUMULUS );422 sky->addCloudLayer( 1, 10000, 10000, 600.0, 2000.0, 0.90, STRATOCUMULUS ); 426 423 //cloudLayerSlots[1].cloudLayerPointer->SetPrecipitation(SilverLining::CloudLayer::SLEET, 25.0 ); 427 424
Note: See TracChangeset
for help on using the changeset viewer.