- Timestamp:
- Sep 11, 2010, 10:21:58 PM (14 years ago)
- Location:
- osgVisual
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/bin/osgVisualConfig.xml
r123 r129 2 2 <osgvisualconfiguration> 3 3 <module name="distortion" enabled="yes"> 4 <distortion active="yes"channelname="center"></distortion>4 <distortion channelname="center"></distortion> 5 5 </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> 16 7 17 8 <scenery> … … 28 19 </model> 29 20 </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> 30 28 </scenery> 31 29 </osgvisualconfiguration> -
osgVisual/include/core/visual_core.h
r127 r129 110 110 void parseModule(xmlNode * a_node); 111 111 void parseScenery(xmlNode * a_node); 112 void config(xmlNode * a_node); 112 113 bool loadTerrain(osg::ArgumentParser& arguments_); 113 114 bool checkCommandlineArgumentsForFinalErrors(); … … 165 166 */ 166 167 osg::ref_ptr<visual_skySilverLining> sky; 168 169 xmlNode* skySilverliningConfig; 167 170 #endif 168 171 … … 172 175 */ 173 176 osg::ref_ptr<visual_distortion> distortion; 177 178 xmlNode* distortionConfig; 174 179 #endif 175 180 -
osgVisual/src/core/visual_core.cpp
r128 r129 350 350 enabled = false; 351 351 352 353 std::cout << "Attribute name: " << attr->name << " value: " << attr_value << std::endl; 352 OSG_ALWAYS << "Module '" << name << "' found. Enabled = " << enabled << std::endl; 353 354 354 attr = attr->next; 355 355 } 356 356 357 // Pass the nodes to the corresponding modules... 358 if(name == "core") this->config(a_node); 357 359 358 360 } … … 361 363 { 362 364 OSG_ALWAYS << "parseScenery()" << std::endl; 365 } 366 367 void visual_core::config(xmlNode * a_node) 368 { 369 // Currently no configuration options fpr the core module are available. 363 370 } 364 371
Note: See TracChangeset
for help on using the changeset viewer.