Ignore:
Timestamp:
Oct 17, 2010, 7:02:32 PM (14 years ago)
Author:
Torben Dannhauer
Message:
 
Location:
osgVisual/src/sky_Silverlining
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/src/sky_Silverlining/skySilverLining_skyDrawable.cpp

    r88 r133  
    146146                if (atmosphere)
    147147        {
     148
    148149                        srand(1234); // constant random seed to ensure consistent clouds across windows
    149150
     
    165166                        atmosphere->SetRightVector(-0.201185, 0.979553, 0.0);
    166167
     168                        /** \todo  :not working!! what is wrong? */
     169                        // override the some options of the configuration file with the required settings to make silverlining upgrades easier
     170                        OSG_ALWAYS << "atmosphere from space before : " << atmosphere->GetConfigOptionBoolean("enable-atmosphere-from-space") << std::endl;
     171                        atmosphere->SetConfigOption("enable-atmosphere-from-space", "yes");
     172                        atmosphere->SetConfigOption("draw-sun-below-horizon", "yes");
     173                        OSG_ALWAYS << "atmosphere from space after: " << atmosphere->GetConfigOptionBoolean("enable-atmosphere-from-space") << std::endl;
     174
    167175            // Set our location (change this to your own latitude and longitude)
    168176            SilverLining::Location loc;
     
    172180            atmosphere->GetConditions()->SetLocation(loc);
    173181
    174             // Set the sstem time in PST
     182            // Set the system time in PST
    175183            SilverLining::LocalTime t;
    176184            t.SetFromSystemTime();
     
    184192                        atmosphere->GetConditions()->SetTurbidity(2.2);
    185193
     194                        // Setting up time passage
    186195                        atmosphere->GetConditions()->EnableTimePassage( true, 5000 );
    187196                       
     
    234243                        cloudLayerSlots.back()->cloudLayerPointer->SeedClouds(*atmosphere);
    235244
    236                         //cloudLayerSlots.back()->cloudLayerPointer->SetEnabled( false );       // Todo: testing, please remove
    237                         //cloudLayerSlots.back()->cloudLayerPointer->SetEnabled( true, 30000);  // Todo: testing, please remove
    238 
    239245                        // add cloudLayer to atmosphere
    240246                        cloudLayerSlots.back()->cloudLayerHandle = atmosphere->GetConditions()->AddCloudLayer( cloudLayerSlots.back()->cloudLayerPointer );
  • osgVisual/src/sky_Silverlining/visual_skySilverLining.cpp

    r130 r133  
    440440                        SilverLining::CloudLayer *cloudLayer_;
    441441                        cloudLayer_ = SilverLining::CloudLayerFactory::Create(cloudtype_);
    442                         cloudLayer_->SetBaseAltitude( baseHeight_ + radius); // todo
    443                         //cloudLayer_->SetBaseAltitude( radius - 10000); // todo
     442                        cloudLayer_->SetBaseAltitude( baseHeight_ + radius);
    444443                                               
    445444                        cloudLayer_->SetThickness(thickness_);
Note: See TracChangeset for help on using the changeset viewer.