Changeset 122


Ignore:
Timestamp:
Aug 24, 2010, 10:07:29 PM (14 years ago)
Author:
Torben Dannhauer
Message:
 
Location:
osgVisual/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/src/core/visual_core.cpp

    r116 r122  
    290290void visual_core::setupScenery()
    291291{
     292        // iterate manually through one frame to allow some modules like Sky_Silverlining to initialize properly befor we configure it according to the scenery data.
     293        viewer->advance();
     294        viewer->eventTraversal();
     295        viewer->updateTraversal();
     296        viewer->renderingTraversals();
     297
     298        // Sky settings:       
     299        sky->setTime(12,00,23);
     300        sky->setVisibility(50000);
     301        //addWindVolume( 0.0, 15000.0, 300.0, 90.0 );
     302       
     303        //sky->addCloudLayer( 0, 300000, 300000, 600.0, 2351.0, 0.5, STRATUS );
     304        //sky->addCloudLayer( 0, 5000000, 5000000, 600.0, 7351.0, 0.2, CIRRUS_FIBRATUS );
     305        //sky->addCloudLayer( 0, 50000, 50000, 600.0, 7351.0, 0.2, CIRROCUMULUS );
     306        ///sky->addCloudLayer( 1, 200000, 200000, 3000, 2000.0, 0.05, CUMULUS_CONGESTUS );
     307        //cloudLayerSlots[1].cloudLayerPointer->SetPrecipitation(SilverLining::CloudLayer::SLEET, 25.0 );
     308
    292309        //testObj = new visual_object( rootNode, "testStab", objectMountedCameraManip );
    293310        //testObj->setNewPosition( osg::DegreesToRadians(47.7123), osg::DegreesToRadians(12.84088), 600 );
     
    363380        hud->init( viewer, rootNode );
    364381       
     382       
    365383
    366384        //osg::ref_ptr<visual_draw3D> test = new visual_draw3D();
  • osgVisual/src/sky_Silverlining/visual_skySilverLining.cpp

    r116 r122  
    234234{
    235235        // Only allow one execution
    236         if(postInitialized)
    237                 return;
    238         else postInitialized = true;
     236        //if(postInitialized)
     237        //      return;
     238        //else postInitialized = true;
    239239
    240240        // Execute Updatecallback once before adding Clouds.
    241         updateCallback->operator ()(this, NULL);
    242 
    243         setTime(12,00,23);
    244         setVisibility(50000);
     241        //updateCallback->operator ()(this, NULL);
     242
    245243        //atmosphere->GetConditions()->SetFog( 0.8, 1, 1, 1);   // use this for simulation real fog.
    246 
    247 
    248244
    249245        //Todo: secure memory-manager of timer*. oder remove paragraph
     
    251247 //   atmosphere->GetConditions()->SetMillisecondTimer(timer);
    252248        //atmosphere->GetConditions()->EnableTimePassage(true, -1);
    253 
    254         //addWindVolume( 0.0, 15000.0, 300.0, 90.0 );
    255        
    256         //addCloudLayer( 0, 300000, 300000, 600.0, 2351.0, 0.5, STRATUS );
    257         //addCloudLayer( 0, 5000000, 5000000, 600.0, 7351.0, 0.2, CIRRUS_FIBRATUS );
    258         //addCloudLayer( 0, 50000, 50000, 600.0, 7351.0, 0.2, CIRROCUMULUS );
    259         ///addCloudLayer( 1, 200000, 200000, 3000, 2000.0, 0.05, CUMULUS_CONGESTUS );
    260         //cloudLayerSlots[1].cloudLayerPointer->SetPrecipitation(SilverLining::CloudLayer::SLEET, 25.0 );
    261 
    262249}
    263250
Note: See TracChangeset for help on using the changeset viewer.