Tentative fix for random buildings red flickering in some cases
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / iku-1 / iku-1-2.xml
1 <?xml version="1.0"?>
2 <!--
3     #############################################################################
4     #    (C) 2007 by Yurik V. Nikiforoff                                        #
5     #           yurik@megasignal.com                                            #
6     #           Jul 2007                                                        #
7     #############################################################################         
8     -->
9
10 <!-- IKU-1 heading indicator
11 3D instrument for Tu-154 -->
12 <PropertyList>
13  <path>iku-1.ac</path>
14 <!-- Internal instruments lighting -->
15 <animation>
16   <type>material</type>
17   <object-name>text</object-name>
18   <object-name>compass</object-name>
19   <object-name>l_handle</object-name>
20   <object-name>r_handle</object-name>
21   <object-name>l_src</object-name>
22   <object-name>r_src</object-name>
23   <object-name>white_needle</object-name>
24   <object-name>yellow_needle</object-name>
25   <emission>
26     <red-prop>tu154/light/instruments/int-red</red-prop>
27     <green-prop>tu154/light/instruments/int-green</green-prop>
28     <blue-prop>tu154/light/instruments/int-blue</blue-prop>
29   </emission>
30 </animation>
31
32 <!-- External instruments lighting -->
33 <animation>
34   <type>material</type>
35   <object-name>base</object-name>
36   <emission>
37     <red-prop>tu154/light/panel/ext-red</red-prop>
38     <green-prop>tu154/light/panel/ext-green</green-prop>
39     <blue-prop>tu154/light/panel/ext-blue</blue-prop>
40   </emission>
41 </animation>
42
43 <!-- Compass -->
44 <animation>
45   <type>rotate</type>
46   <object-name>compass</object-name>
47   <property>fdm/jsbsim/instrumentation/bgmk-2</property>
48   <axis>
49     <x>1.0</x>
50     <y>0.0</y>
51     <z>0.0</z>
52   </axis>
53 </animation>
54
55
56 <!--Needles-->
57 <animation>
58     <type>rotate</type>
59     <object-name>white_needle</object-name>
60     <property>tu154/instrumentation/iku-1[1]/indicated-heading-r</property>
61     <axis>
62       <x>-1.0</x>
63       <y>0.0</y>
64       <z>0.0</z>
65     </axis>
66 </animation>
67
68 <animation>
69   <type>rotate</type>
70   <object-name>yellow_needle</object-name>
71   <property>tu154/instrumentation/iku-1[1]/indicated-heading-l</property>
72   <axis>
73     <x>-1.0</x>
74     <y>0.0</y>
75     <z>0.0</z>
76   </axis>
77 </animation>
78
79 <!--Handles-->
80
81
82 <animation>
83   <type>rotate</type>
84   <object-name>l_handle</object-name>
85   <property>tu154/instrumentation/iku-1[1]/l-mode</property>
86   <interpolation>
87     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
88     <entry><ind>        1.0</ind>       <dep>   90.0</dep></entry>
89   </interpolation>
90   <center>
91     <x-m>0.0</x-m>
92     <y-m>-0.03140</y-m>
93     <z-m>-0.03425</z-m>
94   </center>
95   <axis>
96     <x>1.0</x>
97     <y>0.0</y>
98     <z>0.0</z>
99   </axis>
100 </animation>
101 <animation>
102   <type>rotate</type>
103   <object-name>r_handle</object-name>
104   <property>tu154/instrumentation/iku-1[1]/r-mode</property>
105   <interpolation>
106     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
107     <entry><ind>        1.0</ind>       <dep>   90.0</dep></entry>
108   </interpolation>
109   <center>
110     <x-m>0.0</x-m>
111     <y-m>0.03062</y-m>
112     <z-m>-0.03425</z-m>
113   </center>
114   <axis>
115     <x>1.0</x>
116     <y>0.0</y>
117     <z>0.0</z>
118   </axis>
119 </animation>
120
121 <!--VOR/ADF indicators-->
122 <animation>
123   <type>rotate</type>
124   <object-name>l_src</object-name>
125   <property>tu154/instrumentation/iku-1[1]/l-mode</property>
126   <interpolation>
127     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
128     <entry><ind>        1.0</ind>       <dep>   120.0</dep></entry>
129   </interpolation>
130   <center>
131     <x-m>0.00045</x-m>
132     <y-m>0.0</y-m>
133     <z-m>-0.04601</z-m>
134   </center>
135   <axis>
136     <x>0.0</x>
137     <y>-1.0</y>
138     <z>0.0</z>
139   </axis>
140 </animation>
141 <animation>
142   <type>rotate</type>
143   <object-name>r_src</object-name>
144   <property>tu154/instrumentation/iku-1[1]/r-mode</property>
145   <interpolation>
146     <entry><ind>        0.0</ind>       <dep>   0.0</dep></entry>
147     <entry><ind>        1.0</ind>       <dep>   120.0</dep></entry>
148   </interpolation>
149   <center>
150     <x-m>0.00045</x-m>
151     <y-m>0.0</y-m>
152     <z-m>-0.04601</z-m>
153   </center>
154   <axis>
155     <x>0.0</x>
156     <y>-1.0</y>
157     <z>0.0</z>
158   </axis>
159 </animation>
160
161 <!--  *******************      Controls      *********************   -->
162 <!--Left handle-->
163 <animation>
164   <type>pick</type>
165   <object-name>l_handle</object-name>
166   <visible>true</visible>
167   <action>
168     <button>0</button>
169     <repeatable>false</repeatable>  
170     <binding>
171       <command>nasal</command>
172       <script>
173         if( getprop("tu154/instrumentation/iku-1[1]/l-mode") == 0.0 )
174                 {interpolate("tu154/instrumentation/iku-1[1]/l-mode", 1.0, 0.1 );}
175         else { interpolate("tu154/instrumentation/iku-1[1]/l-mode", 0.0, 0.1 );}
176       </script>
177     </binding>
178   </action>
179 </animation>
180
181 <animation>
182   <type>pick</type>
183   <object-name>l_handle</object-name>
184   <visible>true</visible>
185   <action>
186     <button>3</button>
187     <repeatable>false</repeatable>  
188     <binding>
189       <command>nasal</command>
190       <script>interpolate("tu154/instrumentation/iku-1[1]/l-mode", 1.0, 0.1 );</script>
191     </binding>
192     </action>
193 </animation>
194 <animation>
195   <type>pick</type>
196   <object-name>l_handle</object-name>
197   <visible>true</visible>
198   <action>
199     <button>4</button>
200     <repeatable>false</repeatable>  
201     <binding>
202       <command>nasal</command>
203       <script>interpolate("tu154/instrumentation/iku-1[1]/l-mode", 0.0, 0.1 );</script>
204     </binding>
205   </action>
206 </animation>
207
208 <!--Right handle-->
209 <animation>
210   <type>pick</type>
211   <object-name>r_handle</object-name>
212   <visible>true</visible>
213   <action>
214     <button>0</button>
215     <repeatable>false</repeatable>  
216     <binding>
217       <command>nasal</command>
218       <script>
219         if( getprop("tu154/instrumentation/iku-1[1]/r-mode") == 0.0 ){
220         interpolate("tu154/instrumentation/iku-1[1]/r-mode", 1.0, 0.1 );}
221         else {interpolate("tu154/instrumentation/iku-1[1]/r-mode", 0.0, 0.1 );}
222       </script>
223     </binding>
224   </action>
225 </animation>
226 <animation>
227   <type>pick</type>
228   <object-name>r_handle</object-name>
229   <visible>true</visible>
230   <action>
231     <button>3</button>
232     <repeatable>false</repeatable>  
233     <binding>
234       <command>nasal</command>
235       <script>interpolate("tu154/instrumentation/iku-1[1]/r-mode", 1.0, 0.1 );</script>
236     </binding>
237   </action>
238 </animation>
239 <animation>
240   <type>pick</type>
241   <object-name>r_handle</object-name>
242   <visible>true</visible>
243   <action>
244     <button>4</button>
245     <repeatable>false</repeatable>  
246     <binding>
247       <command>nasal</command>
248       <script>interpolate("tu154/instrumentation/iku-1[1]/r-mode", 0.0, 0.1 );</script>
249     </binding>
250   </action>
251 </animation>
252
253 </PropertyList>