Computing gun sight code with USAAF K-14A sight.
[fg:toms-fgdata.git] / Aircraft / Instruments-3d / computing-gun-sights / K14 / K14-pipper.xml
1 <?xml version="1.0"?>
2 <PropertyList>
3
4  <path>K-14A-pipper.ac</path>
5
6   <animation>
7     <type>range</type>
8     <min-m>0</min-m>
9     <max-m>15</max-m>
10   </animation>
11         
12   <animation>
13     <type>translate</type>
14     <object-name>diamondTop</object-name>
15         <property>/controls/armament/gunsight/rangeRingSize</property>
16         <axis>
17       <x>0</x>
18       <y>0</y>
19       <z>1</z>
20     </axis>
21   </animation>
22   
23   <animation>
24     <type>translate</type>
25     <object-name>diamondBottom</object-name>
26         <property>/controls/armament/gunsight/rangeRingSize</property>
27         <axis>
28       <x>0</x>
29       <y>0</y>
30       <z>-1</z>
31     </axis>
32   </animation>
33   
34     <animation>
35     <type>translate</type>
36     <object-name>diamondUR</object-name>
37         <property>/controls/armament/gunsight/rangeRingSize</property>
38         <axis>
39       <x>0</x>
40       <y>0.866025</y>
41       <z>0.5</z>
42     </axis>
43   </animation>
44   
45   <animation>
46     <type>translate</type>
47     <object-name>diamondUL</object-name>
48         <property>/controls/armament/gunsight/rangeRingSize</property>
49         <axis>
50       <x>0</x>
51       <y>-0.866025</y>
52       <z>0.5</z>
53     </axis>
54   </animation> 
55
56   <animation>
57     <type>translate</type>
58     <object-name>diamondLL</object-name>
59         <property>/controls/armament/gunsight/rangeRingSize</property>
60         <axis>
61       <x>0</x>
62       <y>-0.866025</y>
63       <z>-0.5</z>
64     </axis>
65   </animation>
66
67   <animation>
68     <type>translate</type>
69     <object-name>diamondLR</object-name>
70         <property>/controls/armament/gunsight/rangeRingSize</property>
71         <axis>
72       <x>0</x>
73       <y>0.866025</y>
74       <z>-0.5</z>
75     </axis>
76   </animation>  
77
78  <!-- sight on/off -->
79  <animation>
80   <type>select</type>
81   <object-name>gyro-pipper</object-name>
82   <condition>
83           <property>/controls/armament/gunsight/pipperVisibility</property>
84   </condition>
85  </animation>
86  
87  <animation>
88   <type>select</type>
89   <object-name>diamondTop</object-name>
90   <condition>
91           <property>/controls/armament/gunsight/diamondTopVisibility</property>
92   </condition>
93  </animation>
94  
95  <animation>
96   <type>select</type>
97   <object-name>diamondBottom</object-name>
98   <condition>
99           <property>/controls/armament/gunsight/diamondBottomVisibility</property>
100   </condition>
101  </animation>
102  
103  <animation>
104   <type>select</type>
105   <object-name>diamondUL</object-name>
106   <condition>
107           <property>/controls/armament/gunsight/diamondULVisibility</property>
108   </condition>
109  </animation>
110  
111  <animation>
112   <type>select</type>
113   <object-name>diamondUR</object-name>
114   <condition>
115           <property>/controls/armament/gunsight/diamondURVisibility</property>
116   </condition>
117  </animation>
118  
119  <animation>
120   <type>select</type>
121   <object-name>diamondLL</object-name>
122   <condition>
123           <property>/controls/armament/gunsight/diamondLLVisibility</property>
124   </condition>
125  </animation>
126  
127  <animation>
128   <type>select</type>
129   <object-name>diamondLR</object-name>
130   <condition>
131         <property>/controls/armament/gunsight/diamondLRVisibility</property>
132   </condition>
133  </animation>
134  
135  <animation>
136   <type>select</type>
137   <object-name>cross</object-name>
138   <condition>
139         <property>/controls/armament/gunsight/fixedReticleOn</property>
140   </condition>
141  </animation>
142  
143  <animation>
144   <type>select</type>
145   <object-name>fixedRing</object-name>
146   <condition>
147     <and>
148       <property>/controls/armament/gunsight/mask-off</property>
149           <property>/controls/armament/gunsight/fixedReticleOn</property>      
150     </and>
151   </condition>
152  </animation>
153  
154  <animation>
155   <type>select</type>
156   <object-name>rocketLadder</object-name>
157   <condition>
158     <and>
159       <property>/controls/armament/gunsight/mask-off</property>
160           <property>/controls/armament/gunsight/rocketLadder</property>
161       <property>/controls/armament/gunsight/fixedReticleOn</property>
162     </and>
163   </condition>
164  </animation>
165
166  <!-- gyro sight brightness --> 
167   
168  <animation>
169   <name>everything</name>
170   <object-name>gyro-pipper</object-name>
171   <object-name>diamondBottom</object-name>
172   <object-name>diamondTop</object-name>
173   <object-name>diamondUL</object-name>
174   <object-name>diamondUR</object-name>
175   <object-name>diamondLR</object-name>
176   <object-name>diamondLL</object-name>
177   <object-name>fixedRing</object-name>
178   <object-name>rocketLadder</object-name>
179   <object-name>cross</object-name>
180  </animation>
181  
182  <animation>
183   <type>material</type>
184   <object-name>everything</object-name>
185   <interpolation>
186       <entry>
187          <ind>1</ind>
188          <dep>1.0</dep>
189       </entry>
190           <entry>
191          <ind>0</ind>
192          <dep>0.05</dep>
193       </entry>
194    </interpolation>
195   <emission>
196    <red>1.0</red>
197    <green>0.5</green>
198    <blue>0.9</blue>
199    <factor-prop>/controls/armament/gunsight/intensity</factor-prop>
200   </emission>
201  </animation>
202  
203   <animation>
204   <type>transparency</type>
205   <object-name>everything</object-name>
206   <alpha-prop>/controls/armament/gunsight/intensity</alpha-prop>
207   <interpolation>
208       <entry>
209          <ind>1</ind>
210          <dep>0.8</dep>
211       </entry>
212           <entry>
213          <ind>0</ind>
214          <dep>0.0</dep>
215       </entry>
216    </interpolation>
217  </animation>
218  
219  <animation>
220   <type>blend</type>
221   <object-name>everything</object-name>
222   <alpha-prop>/controls/armament/gunsight/intensity</alpha-prop>
223   <factor>0.8</factor>
224   <min>0</min>
225   <max>1.0</max>
226  </animation>
227
228  <animation>
229     <name>gyro-group</name>     
230     <object-name>gyro-pipper</object-name>
231     <object-name>diamondBottom</object-name>
232     <object-name>diamondTop</object-name>
233     <object-name>diamondUL</object-name>
234     <object-name>diamondUR</object-name>
235     <object-name>diamondLR</object-name>
236     <object-name>diamondLL</object-name>
237  </animation> 
238  
239   <!-- gyro sight elevation movement -->
240  
241  <animation>
242     <type>translate</type>
243     <object-name>gyro-group</object-name>
244         <property>/controls/armament/gunsight/elevation</property>
245     <factor>0.185</factor>
246     <axis>
247       <x>0</x>
248           <y>0</y>
249           <z>1</z>
250     </axis>
251  </animation>
252  
253  <!-- gyro sight azimuth movement -->
254   <animation>
255    <type>translate</type>
256     <object-name>gyro-group</object-name>
257     <property>/controls/armament/gunsight/azimuth</property>
258     <factor>0.185</factor>
259     <axis>
260       <x>0</x>
261           <y>1</y>
262           <z>0</z>
263     </axis>
264  </animation>
265
266 </PropertyList>