Ignore:
Timestamp:
Jul 20, 2010, 9:24:42 PM (14 years ago)
Author:
Torben Dannhauer
Message:

sky silverlining vereinfacht.

File:
1 edited

Legend:

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

    r69 r70  
    8282        #else
    8383                OSG_NOTIFY( osg::ALWAYS ) << "Using Sky without distortion." << std::endl;
    84                 sky->init(rootNode);
     84                sky->init(NULL, rootNode);
    8585        #endif
    8686#endif
     
    111111                // next frame please....
    112112        viewer->advance();
     113                std::cout << "New frame----------------------------" << std::endl;
    113114
    114115                /*double hat, hot, lat, lon, height;
     
    117118                        OSG_NOTIFY( osg::ALWAYS ) << "HOT is: " << hot << ", HAT is: " << hat << std::endl;*/
    118119       
     120                // perform all queued events
     121                viewer->eventTraversal();
     122
    119123                // update the scene by traversing it with the the update visitor which will
    120124        // call all node update callbacks and animations.
    121         viewer->eventTraversal();
     125       
    122126        viewer->updateTraversal();
    123127               
Note: See TracChangeset for help on using the changeset viewer.