Ron Jensen updated the <bias> tag howto...
removed leading slashes in example code...
This commit is contained in:
parent
4689ff11f5
commit
ce1b5ac7e1
1 changed files with 41 additions and 21 deletions
|
@ -323,7 +323,7 @@ to provide the property name:</p>
|
|||
<blockquote><pre><animation>
|
||||
<type>rotate</type>
|
||||
<object-name>Rudder</object-name>
|
||||
<property>/controls/rudder</property>
|
||||
<property>controls/rudder</property>
|
||||
</animation>
|
||||
</pre></blockquote>
|
||||
|
||||
|
@ -340,7 +340,7 @@ position from -18 degrees to 18 degrees:</p>
|
|||
<blockquote><pre><animation>
|
||||
<type>rotate</type>
|
||||
<object-name>Rudder</object-name>
|
||||
<property>/controls/rudder</property>
|
||||
<property>controls/rudder</property>
|
||||
<factor>18</factor>
|
||||
</animation>
|
||||
</pre></blockquote>
|
||||
|
@ -356,7 +356,7 @@ dead center; you could specify that like this:</p>
|
|||
<blockquote><pre><animation>
|
||||
<type>rotate</type>
|
||||
<object-name>Rudder</object-name>
|
||||
<property>/controls/rudder</property>
|
||||
<property>controls/rudder</property>
|
||||
<offset-deg>-0.01</offset-deg>
|
||||
<factor>18</factor>
|
||||
</animation>
|
||||
|
@ -371,7 +371,7 @@ complicated) example for the Cessna 310 landing gear:</p>
|
|||
<blockquote><pre><animation>
|
||||
<type>rotate</type>
|
||||
<object-name>NoseWheel</object-name>
|
||||
<property>/gear/gear[0]/position-norm</property>
|
||||
<property>gear/gear[0]/position-norm</property>
|
||||
<factor>120</factor>
|
||||
<offset-deg>-1</offset-deg>
|
||||
<min>-90</min>
|
||||
|
@ -515,7 +515,7 @@ x-axis. Here is an example for a rudder:</p>
|
|||
<blockquote><pre><animation>
|
||||
<type>rotate</type>
|
||||
<object-name>Rudder</object-name>
|
||||
<property>/controls/rudder</property>
|
||||
<property>controls/rudder</property>
|
||||
<factor>18</factor>
|
||||
<center>
|
||||
<x-m>5.45</x-m>
|
||||
|
@ -590,7 +590,7 @@ the Cessna 172:</p>
|
|||
<blockquote><pre><animation>
|
||||
<type>rotate</type>
|
||||
<object-name>Rudder</object-name>
|
||||
<property>/controls/rudder</property>
|
||||
<property>controls/rudder</property>
|
||||
<factor>18</factor>
|
||||
<center>
|
||||
<x-m>5.45</x-m>
|
||||
|
@ -611,7 +611,7 @@ propeller:</p>
|
|||
<blockquote><pre><animation>
|
||||
<type>spin</type>
|
||||
<object-name>Propeller</object-name>
|
||||
<property>/engines/engine[0]/rpm</property>
|
||||
<property>engines/engine[0]/rpm</property>
|
||||
<center>
|
||||
<x-m>0</x-m>
|
||||
<y-m>0</y-m>
|
||||
|
@ -643,7 +643,7 @@ and x2, y1 and y2, z1 and z2).</p>
|
|||
<blockquote><pre><animation>
|
||||
<type>rotate</type>
|
||||
<object-name>AileronLeftOuter</object-name>
|
||||
<property>/surface-positions/left-aileron-pos-norm</property>
|
||||
<property>surface-positions/left-aileron-pos-norm</property>
|
||||
<factor>-30</factor>
|
||||
<axis>
|
||||
<x1-m>18.28</x1-m>
|
||||
|
@ -688,7 +688,7 @@ properties. A condition is introduced by the <var>condition</var> element,
|
|||
like in this example :</p>
|
||||
<blockquote><pre> <condition>
|
||||
<greater-than>
|
||||
<property>/sim/time/sun-angle-rad</property>
|
||||
<property>sim/time/sun-angle-rad</property>
|
||||
<value>1.57</value>
|
||||
</greater-than>
|
||||
</condition></pre></blockquote>
|
||||
|
@ -735,7 +735,7 @@ elements ) from the scene when the associated condition evaluated to <var>false<
|
|||
<object-name>Fixed</object-name>
|
||||
<condition>
|
||||
<greater-than>
|
||||
<property>/sim/time/sun-angle-rad</property>
|
||||
<property>sim/time/sun-angle-rad</property>
|
||||
<value>1.57</value>
|
||||
</greater-than>
|
||||
</condition>
|
||||
|
@ -799,7 +799,7 @@ landing light.</p>
|
|||
<blockquote><pre> <animation>
|
||||
<type>scale</type>
|
||||
<object-name>ShadowMap</object-name>
|
||||
<property>/position/altitude-agl-ft</property>
|
||||
<property>position/altitude-agl-ft</property>
|
||||
<x-factor>0.05</x-factor>
|
||||
<x-offset>1.0</x-offset>
|
||||
<y-factor>0.05</y-factor>
|
||||
|
@ -907,7 +907,7 @@ an example of a rotating compass rose on the 747-400 PDF
|
|||
<blockquote><pre> <animation>
|
||||
<type>texrotate</type>
|
||||
<object-name>rose</object-name>
|
||||
<property>/orientation/heading-magnetic-deg</property>
|
||||
<property>orientation/heading-magnetic-deg</property>
|
||||
<center>
|
||||
<x>0.75</x>
|
||||
<y>0.75</y>
|
||||
|
@ -940,7 +940,7 @@ on the primary flight display:</p>
|
|||
<blockquote><pre> <animation>
|
||||
<type>textranslate</type>
|
||||
<object-name>alt1</object-name>
|
||||
<property>/position/altitude-ft</property>
|
||||
<property>position/altitude-ft</property>
|
||||
<factor>0.01</factor>
|
||||
<axis>
|
||||
<x>0</x>
|
||||
|
@ -953,16 +953,17 @@ on the primary flight display:</p>
|
|||
<p>There are also some special properties available for use in the texture animations. These are:</p>
|
||||
|
||||
<ol>
|
||||
<li>step
|
||||
<li>step</li>
|
||||
<li>scroll</li>
|
||||
<li>bias</li>
|
||||
</ol>
|
||||
|
||||
<p>The <step> property is useful if you want animations to
|
||||
<p>The <step> tag is useful if you want animations to
|
||||
happen in steps rather than smoothly. It causes values that are
|
||||
fractional (between) steps size to be ingnored. It can be used for
|
||||
things like changing digits on nurmeric displays or a ticking second
|
||||
hand on a clock. The <scroll> property works with the
|
||||
<step> property. The scroll value specifies the distance the input
|
||||
hand on a clock. The <scroll> tag works with the
|
||||
<step> tag. The scroll value specifies the distance the input
|
||||
property value should be from a step when scrolling to the next
|
||||
position begins. This type of scrolling is common on EFIS cockpit
|
||||
displays. The following example gives an "odometer effect"
|
||||
|
@ -972,7 +973,7 @@ is within is within 1 (e.g. > 99):</p>
|
|||
<blockquote><pre><animation>
|
||||
<type>textranslate</type>
|
||||
<object-name>asi3</object-name>
|
||||
<property>/velocities/airspeed-kt</property>
|
||||
<property>velocities/airspeed-kt</property>
|
||||
<factor>0.001</factor>
|
||||
<step>100</step>
|
||||
<scroll>1</scroll>
|
||||
|
@ -984,6 +985,25 @@ is within is within 1 (e.g. > 99):</p>
|
|||
</animation>
|
||||
</pre></blockquote>
|
||||
|
||||
<p>The <bias> tag was added because the normal tags for adjusting properties, <offset> and
|
||||
<factor> are applied after the <step> tag. The <bias> tag allows you to apply an
|
||||
offset before the <step> tag and, for example, fix the a radio frequency to display correctly.</p>
|
||||
|
||||
<blockquote><pre><animation>
|
||||
<type>textranslate</type>
|
||||
<object-name>comm-digit1</object-name>
|
||||
<property>instrumentation/comm/frequencies/standby-mhz</property>
|
||||
<factor>10.0</factor>
|
||||
<step>0.01</step>
|
||||
<bias>0.005</bias>
|
||||
<axis>
|
||||
<x>0</x>
|
||||
<y>1</y>
|
||||
<z>0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
</pre></blockquote>
|
||||
|
||||
<h3><a name="textmultiple">"textmultiple" type, combining texture animation types</a></h3>
|
||||
|
||||
<p>The textmultiple animation type isn't a real animation type, but
|
||||
|
@ -1006,7 +1026,7 @@ display explains the format clearly:</p>
|
|||
<type>texmultiple</type>
|
||||
<object-name>horizon</object-name>
|
||||
<transform>
|
||||
<property>/orientation/pitch-deg</property>
|
||||
<property>orientation/pitch-deg</property>
|
||||
<subtype>textranslate</subtype>
|
||||
<factor>0.0045</factor>
|
||||
<axis>
|
||||
|
@ -1016,7 +1036,7 @@ display explains the format clearly:</p>
|
|||
</axis>
|
||||
</transform>
|
||||
<transform>
|
||||
<property>/orientation/roll-deg</property>
|
||||
<property>orientation/roll-deg</property>
|
||||
<subtype>texrotate</subtype>
|
||||
<center>
|
||||
<x>0.50</x>
|
||||
|
@ -1194,7 +1214,7 @@ The following example shows all available elements:</p>
|
|||
<type>material</type>
|
||||
<object-name>fuselage</object-name>
|
||||
<condition>
|
||||
<property>/sim/model/foo/animate-fuselage-material</property>
|
||||
<property>sim/model/foo/animate-fuselage-material</property>
|
||||
</condition>
|
||||
<global type="bool">true</global>
|
||||
<property-base>/sim/model/foo/material/fuselage</property-base>
|
||||
|
|
Loading…
Add table
Reference in a new issue