Changes between Version 9 and Version 10 of osgVisualConfiguration


Ignore:
Timestamp:
Feb 18, 2011, 12:52:06 PM (14 years ago)
Author:
Torben Dannhauer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • osgVisualConfiguration

    v9 v10  
    9696}}}
    9797
    98 A full list of all available modules with their XML configuration options is [wiki:XmlModuleConfiguration available].
     98A full list of all available modules with their XML configuration options is available [wiki:XmlModuleConfiguration here].
    9999
    100100=== Scenery configuration ===
     
    108108You can add further databases with attributes beginning with "filename", follow by a number (e.g. filename3="")
    109109
     110==== Animation Path ====
     111You can load an animation path file and use the !OpenSceneGraph animation path camera manipulator to animate the camera movement.
     112It is possible to record camera movements and playback these movements with the animation path. It is also useful to start osgVisual with teh camera at a specific location.
     113{{{
     114#!xml
     115<animationpath filename="salzburg.path"></animationpath>
     116}}}
    110117
    111 
    112 ==== Sky/Weather ====
    113 
     118==== Models ====
     119Inside the XML "<models>" entry you can specify a list of models to displayed. It is possible to attach some of the model attributes to data slots to allow animation.
    114120Example:
    115121{{{
    116122#!xml
    117     <datetime day="01" month="02" year="2010" hour="23" minute="45"></datetime>
    118     <visibility range="50000" turbidity="2.2" ></visibility>
    119     <cloudlayer slot="1" type="cumulusCongestus" enabled="true" fadetime="15">
    120       <geometry baselength="50000" basewidth="50000" thickness="500" baseHeight="1700" density="0.3"></geometry>
    121       <precipitation rate_mmPerHour_rain="5.0" rate_mmPerHour_drySnow="7.0" rate_mmPerHour_wetSnow="10.0" rate_mmPerHour_sleet="0.0"></precipitation>
    122     </cloudlayer>
    123     <windlayer bottom="500.0" top="700." speed="25.0" direction="90.0"></windlayer>
     123<models>
     124 <model objectname="TestObject" trackingid="1" label="TestText!" dynamic="no">
     125  <position lat="47.8123" lon="12.94088" alt="700.0"></position>
     126  <attitude rot_x="0.0" rot_y="0.0" rot_z="0.0"></attitude>
     127  <updater>
     128   <position lat="" lon="" alt=""></position>
     129   <attitude rot_x="" rot_y="" rot_z=""></attitude>
     130   <label text=""></label>
     131  </updater>
     132  <cameraoffset>
     133   <translation trans_x="0.0" trans_y="0.0" trans_z="0.0"></translation>
     134   <rotation rot_x="0.0" rot_y="0.0" rot_z="0.0"></rotation>
     135  </cameraoffset>
     136  <geometry filename="../models/yourModel.flt">
     137   <offset rot_x="0.0" rot_y="0.0" rot_z="0.0"></offset>
     138   <scalefactor scale_x="1.0" scale_y="1.0" scale_z="1.0"></scalefactor>
     139  </geometry>
     140 </model>
     141 <model ...>
     142  ...
     143 </model>
     144 <model ...>
     145  ...
     146 </model>
     147</models>
     148}}}
     149A full description and explenatioon of the model configuration via XML is available [wiki:XmlModelConfiguration here].
     150
     151You can track models based on their trackingID. It is possible to configure a slot which content is used to update the trackingId the camera should track:
     152{{{
     153#!xml
     154<trackmodel id="2" updater_slot="slotNameToUpdateTrackingId"></trackmodel>
     155}}}
     156You should specify the <trackmodel ..> entry after the models, otherwise the model with the trackingId you want to track is not yet available and the tracking would be disabled.
     157
     158==== Sky/Weather ====
     159To configure the date and time of the scenery, use:
     160{{{
     161#!xml
     162<datetime day="0" month="0" year="0" hour="12" minute="50"></datetime>
    124163}}}
    125164
    126 ==== Models ====
    127 
    128 Example:
     165To configure the visibility settings, use:
    129166{{{
    130167#!xml
    131     <models>
    132       <model filename="cessna" type="plain" label="TestText!" dynamic="yes">
    133         <position lat="47.12345" lon="11.234567" alt="1500.0"></position>
    134         <attitude rot_x="0.0" rot_y="0.0" rot_z="0.0"></attitude>
    135         <cameraoffset>
    136           <translation trans_x="0.0" trans_y="0.0" trans_z="0.0"></translation>
    137           <rotation rot_x="0.0" rot_y="0.0" rot_z="0.0"></rotation>
    138         </cameraoffset>
    139       </model>
    140     </models>
     168<visibility range="50000" turbidity="2.2" ></visibility>
    141169}}}
     170
     171To configure a cloudlayer, use:
     172{{{
     173#!xml
     174<clouds>
     175 <cloudlayer slot="1" type="CUMULUS_CONGESTUS" enabled="yes" fadetime="15">
     176  <geometry baselength="50000" basewidth="50000" thickness="1600" baseHeight="1000" density="0.07"></geometry>
     177  <precipitation rate_mmPerHour_rain="5.0" rate_mmPerHour_drySnow="7.0" rate_mmPerHour_wetSnow="10.0" rate_mmPerHour_sleet="0.0"></precipitation>
     178 </cloudlayer>
     179</clouds>
     180}}}
     181
     182To configure a windlayer, use:
     183{{{
     184#!xml
     185<windlayer bottom="500.0" top="1100." speed="25.0" direction="90.0"></windlayer>
     186}}}