Ignore:
Timestamp:
May 28, 2010, 10:18:54 AM (14 years ago)
Author:
Torben Dannhauer
Message:

Update to use osg for sky fog instead OpenGL.

this way the osg fog feature "radialFog" can be used.

File:
1 edited

Legend:

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

    r31 r53  
    164164    // Add the sky (calls Atmosphere::BeginFrame and handles initialization once you're in
    165165    // the rendering thread)
    166         skyDrawable = new skySilverLining_skyDrawable(viewer);
     166        skyDrawable = new skySilverLining_skyDrawable(viewer, sceneRoot);
    167167
    168168        osg::Camera *mainCamera = viewer->getCamera();
     
    244244    // Add the sky (calls Atmosphere::BeginFrame and handles initialization once you're in
    245245    // the rendering thread)
    246         skyDrawable = new skySilverLining_skyDrawable(viewer);
     246        skyDrawable = new skySilverLining_skyDrawable(viewer, sceneRoot);
    247247 
    248248        if (!useProjMatrixCallback)
     
    301301
    302302        setTime(16,00,23);
    303         setVisibility(50000);
     303        setVisibility(5000);
     304        //AtmosphericConditions::SetFog()// use this for simulation real fog.
     305
     306
    304307
    305308        //Todo: secure memory-manager of timer*. oder remove paragraph
     
    371374
    372375                // delete drawables
     376                skyDrawable->shutdown();
    373377                this->removeDrawable(skyDrawable);
    374378                this->removeDrawable(cloudsDrawable);
     
    382386                atmosphere->GetConditions()->SetVisibility( visibility_ );
    383387        }
     388
    384389}
    385390
Note: See TracChangeset for help on using the changeset viewer.