57
edits
No edit summary |
No edit summary |
||
Line 103: | Line 103: | ||
[[Image:digits.jpg]] | [[Image:digits.jpg]] | ||
Now, each "digit" in the 3d model is a separate rectangle, and each is mapped to the number zero on that texture. What we are going to do is use a "textranslate" animation to slide the texture along to the relevant number in each case. Here's the code for the first digit; | |||
<pre> | |||
<!-- Digital Display --> | |||
<animation> | |||
<type>textranslate</type> | |||
<object-name>digit1</object-name> | |||
<property>engines/engine/egt_degf</property> | |||
<factor>0.0001</factor> | |||
<step>1000</step> | |||
<axis> | |||
<x>1</x> | |||
<y>0</y> | |||
<z>0</z> | |||
</axis> | |||
</animation> | |||
</pre> | |||
As always, if you need more detailed explanations of any of these animations, remember to RTFM which in this case is the model-howto.html which I've referred to before. | |||
Each subsequent digit is handled in the same way, though with the object-name, factor and step values modified accordingly. | |||
For example, the next digit along, the "hundreds" digit; | |||
<pre> | |||
<animation> | |||
<type>textranslate</type> | |||
<object-name>digit2</object-name> | |||
<property>engines/engine/egt_degf</property> | |||
<factor>0.001</factor> | |||
<step>100</step> | |||
<axis> | |||
<x>1</x> | |||
<y>0</y> | |||
<z>0</z> | |||
</axis> | |||
</animation> | |||
</pre> | |||
And so on, for the remaining two. Now, your itt instrument should display the EGT in degC using the needle, and give a "digital" readout of the same in degF. | |||
The file should look something like this one. [[Media:itt.xml]] | |||
'''Level Of Detail:''' | '''Level Of Detail:''' |
edits