19 | | For all options which are not OSG but osgVisual related, the configuration mechanism is an XML configuration file. |
| 19 | For all options which are not OSG but osgVisual related, the configuration mechanism is an XML configuration file. This file contains sections for each module to configure and for the scenery to display. |
| 20 | |
| 21 | Example: |
| 22 | {{{ |
| 23 | <?xml version="1.0" encoding="ISO-8859-1" ?> |
| 24 | <osgvisualconfiguration> |
| 25 | <module name="distortion" enabled="yes"> |
| 26 | <distortion channelname="center"></distortion> |
| 27 | </module> |
| 28 | <module name="sky_silverlining" enabled="yes"></module> |
| 29 | |
| 30 | <scenery> |
| 31 | <terrain filename="d:\my\path\database.ive"></terrain> |
| 32 | <animationpath filename="salzburgerEcke.path"></animationpath> |
| 33 | <models> |
| 34 | <model filename="cessna" type="plain" label="TestText!" dynamic="yes"> |
| 35 | <position lat="47.12345" lon="11.234567" alt="1500.0"></position> |
| 36 | <attitude rot_x="0.0" rot_y="0.0" rot_z="0.0"></attitude> |
| 37 | <cameraoffset> |
| 38 | <translation trans_x="0.0" trans_y="0.0" trans_z="0.0"></translation> |
| 39 | <rotation rot_x="0.0" rot_y="0.0" rot_z="0.0"></rotation> |
| 40 | </cameraoffset> |
| 41 | </model> |
| 42 | </models> |
| 43 | <datetime day="01" month="02" year="2010" hour="23" minute="45"></datetime> |
| 44 | <cloudlayer slot="1" type="cumulusCongestus" enabled="true" fadetime="15"> |
| 45 | <geometry baselength="50000" basewidth="50000" thickness="500" baseHeight="1700" density="0.3"></geometry> |
| 46 | <precipitation rate_mmPerHour_rain="5.0" rate_mmPerHour_drySnow="7.0" rate_mmPerHour_wetSnow="10.0" rate_mmPerHour_sleet="0.0"></precipitation> |
| 47 | </cloudlayer> |
| 48 | <windlayer bottom="500.0" top="700." speed="25.0" direction="90.0"></windlayer> |
| 49 | </scenery> |
| 50 | </osgvisualconfiguration> |
| 51 | |
| 52 | === Module configuration === |
| 53 | |
| 54 | === Scenery configuration === |
| 55 | }}} |