Changeset 129 for osgVisual


Ignore:
Timestamp:
Sep 11, 2010, 10:21:58 PM (14 years ago)
Author:
Torben Dannhauer
Message:
 
Location:
osgVisual
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/bin/osgVisualConfig.xml

    r123 r129  
    22<osgvisualconfiguration>
    33  <module name="distortion" enabled="yes">
    4     <distortion active="yes" channelname="center"></distortion>
     4    <distortion channelname="center"></distortion>
    55  </module>
    6  
    7   <module name="sky_silverlining" enabled="yes">
    8     <datetime day="01" month="02" year="2010" hour="23" minute="45"></datetime>
    9     <cloudlayer slot="1" type="cumulusCongestus" enabled="true" fadetime="15">
    10       <geometry baselength="50000" basewidth="50000" thickness="500" baseHeight="1700" density="0.3"></geometry>
    11       <precipitation rate_mmPerHour_rain="5.0" rate_mmPerHour_drySnow="7.0" rate_mmPerHour_wetSnow="10.0" rate_mmPerHour_sleet="0.0"></precipitation>
    12     </cloudlayer>
    13     <windlayer bottom="500.0" top="700." speed="25.0" direction="90.0"></windlayer>
    14     <visibility range="50000" turbidity="2.2" ></visibility>
    15   </module>
     6  <module name="sky_silverlining" enabled="yes"></module>
    167 
    178  <scenery>
     
    2819      </model>
    2920    </models>
     21    <datetime day="01" month="02" year="2010" hour="23" minute="45"></datetime>
     22    <visibility range="50000" turbidity="2.2" ></visibility>
     23    <cloudlayer slot="1" type="cumulusCongestus" enabled="true" fadetime="15">
     24      <geometry baselength="50000" basewidth="50000" thickness="500" baseHeight="1700" density="0.3"></geometry>
     25      <precipitation rate_mmPerHour_rain="5.0" rate_mmPerHour_drySnow="7.0" rate_mmPerHour_wetSnow="10.0" rate_mmPerHour_sleet="0.0"></precipitation>
     26    </cloudlayer>
     27    <windlayer bottom="500.0" top="700." speed="25.0" direction="90.0"></windlayer>
    3028  </scenery>
    3129</osgvisualconfiguration>
  • osgVisual/include/core/visual_core.h

    r127 r129  
    110110        void parseModule(xmlNode * a_node);
    111111        void parseScenery(xmlNode * a_node);
     112        void config(xmlNode * a_node);
    112113        bool loadTerrain(osg::ArgumentParser& arguments_);
    113114        bool checkCommandlineArgumentsForFinalErrors();
     
    165166         */
    166167        osg::ref_ptr<visual_skySilverLining> sky;
     168
     169        xmlNode* skySilverliningConfig;
    167170#endif
    168171
     
    172175         */
    173176        osg::ref_ptr<visual_distortion> distortion;
     177
     178        xmlNode* distortionConfig;
    174179#endif
    175180
  • osgVisual/src/core/visual_core.cpp

    r128 r129  
    350350                        enabled = false;
    351351
    352 
    353                 std::cout << "Attribute name: " << attr->name << " value: " << attr_value << std::endl;
     352                OSG_ALWAYS << "Module '" << name << "' found. Enabled = " << enabled << std::endl;
     353
    354354                attr = attr->next;
    355355        }
    356356
     357        // Pass the nodes to the corresponding modules...
     358        if(name == "core") this->config(a_node);
    357359
    358360}
     
    361363{
    362364        OSG_ALWAYS << "parseScenery()" << std::endl;
     365}
     366
     367void visual_core::config(xmlNode * a_node)
     368{
     369        // Currently no configuration options fpr the core module are available.
    363370}
    364371
Note: See TracChangeset for help on using the changeset viewer.