Changeset 122 for osgVisual/src/core


Ignore:
Timestamp:
Aug 24, 2010, 10:07:29 PM (14 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 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();
Note: See TracChangeset for help on using the changeset viewer.