DR400-dauphin: fix taxiline not shown through glasses with default rendering
[fg:toms-fgdata.git] / Aircraft / DR400-dauphin / Models / dr400-dauphin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!-- ########################################
4
5  # DR400-dauphin by PAF team
6  # April 2012 : Modified by PAF team
7  # http://equipe-flightgear.forumactif.com
8
9 ##########################################-->
10
11 <PropertyList>
12
13   <path>dr400.ac</path>
14
15   <nasal>
16     <load>
17       var livery_update = aircraft.livery_update.new("Aircraft/DR400-dauphin/Models/Liveries", 10);
18       print("Load DR400-dauphin by PAF team");
19     </load>
20     <unload>
21       livery_update.stop();
22     </unload>
23   </nasal>
24
25   <animation>
26     <!-- fuselage.png -->
27     <object-name>antenna</object-name>
28     <object-name>cone-propeller</object-name>
29     <object-name>exhaust</object-name>
30     <object-name>front-absorber</object-name>
31     <object-name>front-wheel</object-name>
32     <object-name>front-wheel-axis</object-name>
33     <object-name>front-windows</object-name>
34     <object-name>front-windows-int</object-name>
35     <object-name>fuselage</object-name>
36     <object-name>gearL</object-name>
37     <object-name>gearR</object-name>
38     <object-name>left-absorber</object-name>
39     <object-name>left-wheel</object-name>
40     <object-name>poignee-ouverture</object-name>
41     <object-name>propeller</object-name>
42     <object-name>rear-windows</object-name>
43     <object-name>rear-windows-int</object-name>
44     <object-name>right-absorber</object-name>
45     <object-name>right-wheel</object-name>
46     <object-name>rudder</object-name>
47     <object-name>support-canopy</object-name>
48     <object-name>tringle-rudderL</object-name>
49     <object-name>tringle-rudderR</object-name>
50
51     <!-- wings.png -->
52     <object-name>aileronL</object-name>
53     <object-name>aileronR</object-name>
54     <object-name>elevator</object-name>
55     <object-name>flapsL</object-name>
56     <object-name>flapsR</object-name>
57     <object-name>flaps-axis</object-name>
58     <object-name>landing-light-windows</object-name>
59     <object-name>landing-lightL</object-name>
60     <object-name>landing-lightR</object-name>
61     <object-name>nav-lightL</object-name>
62     <object-name>nav-lightR</object-name>
63     <object-name>trim-elevator</object-name>
64     <object-name>tringle-AileronL-dwn</object-name>
65     <object-name>tringle-AileronL-up</object-name>
66     <object-name>tringle-aileronR-dwn</object-name>
67     <object-name>tringle-aileronR-up</object-name>
68     <object-name>wings</object-name>
69   </animation>
70
71    <animation>
72     <type>material</type>
73     <texture>fuselage.png</texture>
74     <texture-prop>fuselage-texture</texture-prop>
75     <property-base>sim/model/livery</property-base>
76     <object-name>antenna</object-name>
77     <object-name>cone-propeller</object-name>
78     <object-name>exhaust</object-name>
79     <object-name>front-absorber</object-name>
80     <object-name>front-wheel</object-name>
81     <object-name>front-wheel-axis</object-name>
82     <object-name>front-windows</object-name>
83     <object-name>fuselage</object-name>
84     <object-name>gearL</object-name>
85     <object-name>gearR</object-name>
86     <object-name>left-absorber</object-name>
87     <object-name>left-wheel</object-name>
88     <object-name>poignee-ouverture</object-name>
89     <object-name>propeller</object-name>
90     <object-name>rear-windows</object-name>
91     <object-name>right-absorber</object-name>
92     <object-name>right-wheel</object-name>
93     <object-name>rudder</object-name>
94     <object-name>support-canopy</object-name>
95     <object-name>tringle-rudderL</object-name>
96     <object-name>tringle-rudderR</object-name>
97   </animation>
98
99    <animation>
100     <type>material</type>
101     <texture>wings.png</texture>
102     <texture-prop>wings-texture</texture-prop>
103     <property-base>sim/model/livery</property-base>
104     <object-name>aileronL</object-name>
105     <object-name>aileronR</object-name>
106     <object-name>elevator</object-name>
107     <object-name>flapsL</object-name>
108     <object-name>flapsR</object-name>
109     <object-name>flaps-axis</object-name>
110     <object-name>landing-light-windows</object-name>
111     <object-name>landing-lightL</object-name>
112     <object-name>landing-lightR</object-name>
113     <object-name>nav-lightL</object-name>
114     <object-name>nav-lightR</object-name>
115     <object-name>trim-elevator</object-name>
116     <object-name>tringle-AileronL-dwn</object-name>
117     <object-name>tringle-AileronL-up</object-name>
118     <object-name>tringle-aileronR-dwn</object-name>
119     <object-name>tringle-aileronR-up</object-name>
120     <object-name>wings</object-name>
121   </animation>
122
123   <effect>
124     <inherits-from>Aircraft/DR400-dauphin/Models/Effects/effects-fuselage</inherits-from>
125     <object-name>antenna</object-name>
126     <object-name>cone-propeller</object-name>
127     <object-name>exhaust</object-name>
128     <object-name>front-absorber</object-name>
129     <object-name>front-wheel</object-name>
130     <object-name>front-wheel-axis</object-name>
131     <object-name>fuselage</object-name>
132     <object-name>gearL</object-name>
133     <object-name>gearR</object-name>
134     <object-name>left-absorber</object-name>
135     <object-name>left-wheel</object-name>
136     <object-name>poignee-ouverture</object-name>
137     <object-name>propeller</object-name>
138     <object-name>right-absorber</object-name>
139     <object-name>right-wheel</object-name>
140     <object-name>rudder</object-name>
141     <object-name>support-canopy</object-name>
142     <object-name>tringle-rudderL</object-name>
143     <object-name>tringle-rudderR</object-name>
144   </effect>
145
146   <effect>
147     <inherits-from>Aircraft/DR400-dauphin/Models/Effects/effects-wings</inherits-from>
148     <object-name>aileronL</object-name>
149     <object-name>aileronR</object-name>
150     <object-name>elevator</object-name>
151     <object-name>flapsL</object-name>
152     <object-name>flapsR</object-name>
153     <object-name>flaps-axis</object-name>
154     <object-name>landing-lightL</object-name>
155     <object-name>landing-lightR</object-name>
156     <object-name>nav-lightL</object-name>
157     <object-name>nav-lightR</object-name>
158     <object-name>trim-elevator</object-name>
159     <object-name>tringle-AileronL-dwn</object-name>
160     <object-name>tringle-AileronL-up</object-name>
161     <object-name>tringle-aileronR-dwn</object-name>
162     <object-name>tringle-aileronR-up</object-name>
163     <object-name>wings</object-name>
164   </effect>
165
166   <animation>
167     <type>select</type>
168     <object-name>front-absorber</object-name>
169     <object-name>front-wheel</object-name>
170     <object-name>front-wheel-axis</object-name>
171     <condition>
172       <not><property>sim/multiplay/generic/int[14]</property></not>
173     </condition>
174   </animation>
175
176   <animation>
177     <type>select</type>
178     <object-name>left-absorber</object-name>
179     <object-name>left-wheel</object-name>
180     <object-name>gearL</object-name>
181     <condition>
182       <not><property>sim/multiplay/generic/int[15]</property></not>
183     </condition>
184   </animation>
185
186   <animation>
187     <type>select</type>
188     <object-name>right-absorber</object-name>
189     <object-name>right-wheel</object-name>
190     <object-name>gearR</object-name>
191     <condition>
192       <not><property>sim/multiplay/generic/int[16]</property></not>
193     </condition>
194   </animation>
195
196   <!-- Tutorial marker -->
197   <model>
198     <path>Models/Aircraft/marker.xml</path>
199   </model>
200
201   <!-- Pilot -->
202   <model>
203     <path>Aircraft/DR400-dauphin/Models/Pilot/pilot.xml</path>
204     <offsets>
205       <x-m> -1.50 </x-m>
206       <y-m> -0.25 </y-m>
207       <z-m>  0.0 </z-m>
208       <roll-deg>    0.0 </roll-deg>
209       <pitch-deg>   0.0 </pitch-deg>
210       <heading-deg> 0.0 </heading-deg>
211     </offsets>
212   </model>
213
214   <!-- Interieur -->
215   <model>
216     <path>Aircraft/DR400-dauphin/Models/Interior/interior.xml</path>
217     <offsets>
218       <x-m> 0.0 </x-m>
219       <y-m> 0.0 </y-m>
220       <z-m> 0.0 </z-m>
221       <roll-deg>    0.0 </roll-deg>
222       <pitch-deg>   0.0 </pitch-deg>
223       <heading-deg> 0.0 </heading-deg>
224     </offsets>
225   </model>
226
227   <!-- Water effects -->
228   <model>
229     <path>Aircraft/DR400-dauphin/Models/Effects/Water/front-wheel.xml</path>
230     <offsets>
231       <x-m> -2.5639 </x-m>
232       <y-m> -0.0538 </y-m>
233       <z-m> -1.1137 </z-m>
234     </offsets>
235   </model>
236
237   <model>
238     <path>Aircraft/DR400-dauphin/Models/Effects/Water/left-wheel.xml</path>
239     <offsets>
240       <x-m> -0.9363 </x-m>
241       <y-m> -1.4045 </y-m>
242       <z-m> -1.1026 </z-m>
243     </offsets>
244   </model>
245
246   <model>
247     <path>Aircraft/DR400-dauphin/Models/Effects/Water/right-wheel.xml</path>
248     <offsets>
249       <x-m> -0.9363 </x-m>
250       <y-m>  1.4045 </y-m>
251       <z-m> -1.1026 </z-m>
252     </offsets>
253   </model>
254
255
256   <!-- Transparent objects -->
257   <effect>
258     <inherits-from>Aircraft/DR400-dauphin/Models/Effects/effects-glasses</inherits-from>
259     <object-name>rear-windows</object-name>
260     <object-name>front-windows</object-name>
261     <object-name>landing-light-windows</object-name>
262   </effect>
263
264   <effect>
265     <inherits-from>Aircraft/DR400-dauphin/Models/Effects/effects-glasses-interior</inherits-from>
266     <object-name>rear-windows-int</object-name>
267     <object-name>front-windows-int</object-name>
268   </effect>
269
270   <!-- Propeller -->
271   <animation>
272     <type>spin</type>
273     <object-name>propeller</object-name>
274     <object-name>cone-propeller</object-name>
275     <property>engines/engine[0]/rpm</property>
276     <factor> 1 </factor>
277     <center>
278       <x-m> -3.1638 </x-m>
279       <y-m>  0.00135 </y-m>
280       <z-m>  0.08872 </z-m>
281     </center>
282     <axis>
283       <x> -1.000 </x>
284       <y>  0.000 </y>
285       <z>  0.000 </z>
286     </axis>
287   </animation>
288
289   <animation>
290     <type>select</type>
291     <object-name>propeller</object-name>
292     <condition>
293       <less-than>
294         <property>engines/engine[0]/rpm</property>
295         <value>250</value>
296       </less-than>
297     </condition>
298   </animation>
299
300   <model>
301     <path>Aircraft/DR400-dauphin/Models/prop.xml</path>
302     <offsets>
303       <x-m> -3.1638 </x-m>
304       <y-m>  0.00135 </y-m>
305       <z-m>  0.08872 </z-m>
306     </offsets>
307   </model>
308
309   <!-- Elevator -->
310   <animation>
311     <type>rotate</type>
312     <object-name>elevator</object-name>
313     <object-name>trim-elevator</object-name>
314     <property>controls/flight/elevator</property>
315     <interpolation>
316       <entry><ind> -0.75 </ind><dep> -12.0 </dep></entry>
317       <entry><ind>  0.00 </ind><dep>   0.0 </dep></entry>
318       <entry><ind>  0.75 </ind><dep>   9.5 </dep></entry>
319     </interpolation>
320     <center>
321       <x-m> 2.2808 </x-m>
322       <y-m> 0.0000 </y-m>
323       <z-m> 0.2837 </z-m>
324     </center>
325     <axis>
326       <x> 0.000 </x>
327       <y> 1.000 </y>
328       <z> 0.000 </z>
329     </axis>
330   </animation>
331
332   <!-- Elevator-trim -->
333   <animation>
334     <type>rotate</type>
335     <object-name>trim-elevator</object-name>
336     <property>controls/flight/elevator-trim</property>
337     <factor>20</factor>
338     <center>
339       <x-m> 2.9021 </x-m>
340       <y-m> 0.0000 </y-m>
341       <z-m> 0.2433 </z-m>
342     </center>
343     <axis>
344       <x> 0.000 </x>
345       <y> 1.000 </y>
346       <z> 0.000 </z>
347     </axis>
348   </animation>
349
350   <!-- Rudder -->
351   <animation>
352     <type>rotate</type>
353     <object-name>rudder</object-name>
354     <property>controls/flight/rudder</property>
355     <interpolation>
356       <entry><ind> -0.75 </ind><dep> -25.0 </dep></entry>
357       <entry><ind>  0.00 </ind><dep>   0.0 </dep></entry>
358       <entry><ind>  0.75 </ind><dep>  25.0 </dep></entry>
359     </interpolation>
360     <axis>
361       <x1-m>  2.8180 </x1-m>
362       <y1-m>  0.0001 </y1-m>
363       <z1-m> -0.1460 </z1-m>
364       <x2-m>  3.0009 </x2-m>
365       <y2-m>  0.0001 </y2-m>
366       <z2-m>  1.3365 </z2-m>
367     </axis>
368   </animation>
369
370   <!-- Ailerons -->
371   <animation>
372     <type>rotate</type>
373     <object-name>aileronL</object-name>
374     <property>controls/flight/aileron</property>
375     <interpolation>
376       <entry><ind> -0.75 </ind><dep>  15.0 </dep></entry>
377       <entry><ind>  0.00 </ind><dep>   0.0 </dep></entry>
378       <entry><ind>  0.75 </ind><dep> -10.0 </dep></entry>
379     </interpolation>
380     <axis>
381       <x1-m> -0.29240 </x1-m>
382       <y1-m> -2.78200 </y1-m>
383       <z1-m> -0.35350 </z1-m>
384       <x2-m> -0.92120 </x2-m>
385       <y2-m> -4.38470 </y2-m>
386       <z2-m>  0.06662 </z2-m>
387     </axis>
388   </animation>
389
390   <animation>
391     <type>rotate</type>
392     <object-name>aileronR</object-name>
393     <property>controls/flight/aileron</property>
394     <interpolation>
395       <entry><ind> -0.75 </ind><dep>  15.0 </dep></entry>
396       <entry><ind>  0.00 </ind><dep>   0.0 </dep></entry>
397       <entry><ind>  0.75 </ind><dep> -10.0 </dep></entry>
398     </interpolation>
399     <axis>
400       <x1-m> -0.29240 </x1-m>
401       <y1-m>  2.78320 </y1-m>
402       <z1-m> -0.35350 </z1-m>
403       <x2-m> -0.92120 </x2-m>
404       <y2-m>  4.38590 </y2-m>
405       <z2-m>  0.06662 </z2-m>
406     </axis>
407   </animation>
408
409   <!-- Flaps -->
410   <animation>
411     <type>rotate</type>
412     <object-name>flapsL</object-name>
413     <property>surface-positions/flap-pos-norm</property>
414     <factor>60.0</factor>
415     <axis>
416       <x1-m> -0.2204 </x1-m>
417       <y1-m> -2.7820 </y1-m>
418       <z1-m> -0.3580 </z1-m>
419       <x2-m> -0.2171 </x2-m>
420       <y2-m> -0.6544 </y2-m>
421       <z2-m> -0.3792 </z2-m>
422     </axis>
423   </animation>
424
425   <animation>
426     <type>rotate</type>
427     <object-name>flapsR</object-name>
428     <property>surface-positions/flap-pos-norm</property>
429     <factor>60.0</factor>
430     <axis>
431       <x1-m> -0.2171 </x1-m>
432       <y1-m>  0.6555 </y1-m>
433       <z1-m> -0.3792 </z1-m>
434       <x2-m> -0.2204 </x2-m>
435       <y2-m>  2.7832 </y2-m>
436       <z2-m> -0.3580 </z2-m>
437     </axis>
438   </animation>
439
440   <animation>
441     <type>translate</type>
442     <object-name>flaps-axis</object-name>
443     <property>surface-positions/flap-pos-norm</property>
444     <factor>0.08</factor>
445     <axis>
446       <x>-1 </x>
447       <y> 0 </y>
448       <z> 0 </z>
449     </axis>
450   </animation>
451
452   <!-- Compression -->
453   <animation>
454     <type>translate</type>
455     <object-name>front-wheel</object-name>
456     <object-name>front-absorber</object-name>
457     <property>gear/gear[0]/compression-norm</property>
458     <interpolation>
459       <entry><ind> 0.0 </ind><dep>  0.00 </dep></entry>
460       <entry><ind> 1.0 </ind><dep> -0.25 </dep></entry>
461     </interpolation>
462     <axis>
463       <x> -0.029387 </x>
464       <y>  0.000000 </y>
465       <z> -0.155914 </z>
466     </axis>
467   </animation>
468
469   <animation>
470     <type>translate</type>
471     <object-name>left-wheel</object-name>
472     <object-name>left-absorber</object-name>
473     <property>gear/gear[1]/compression-norm</property>
474     <interpolation>
475       <entry><ind> 0.0 </ind><dep>  0.00 </dep></entry>
476       <entry><ind> 1.0 </ind><dep> -0.25 </dep></entry>
477     </interpolation>
478     <axis>
479       <x> -0.029387 </x>
480       <y>  0.000000 </y>
481       <z> -0.155914 </z>
482     </axis>
483   </animation>
484
485   <animation>
486     <type>translate</type>
487     <object-name>right-wheel</object-name>
488     <object-name>right-absorber</object-name>
489     <property>gear/gear[2]/compression-norm</property>
490     <interpolation>
491       <entry><ind> 0.0 </ind><dep>  0.00 </dep></entry>
492       <entry><ind> 1.0 </ind><dep> -0.25 </dep></entry>
493     </interpolation>
494     <axis>
495       <x> -0.029387 </x>
496       <y>  0.000000 </y>
497       <z> -0.155914 </z>
498     </axis>
499   </animation>
500
501   <!-- Front wheel direction -->
502   <animation>
503     <type>rotate</type>
504     <object-name>front-wheel</object-name>
505     <object-name>front-absorber</object-name>
506     <object-name>front-wheel-axis</object-name>
507     <property>controls/flight/rudder</property>
508     <factor> 25.0 </factor>
509     <center>
510       <x-m> -2.560 </x-m>
511       <y-m>  0.000 </y-m>
512       <z-m> -0.980 </z-m>
513     </center>
514     <axis>
515       <x>  0.000 </x>
516       <y>  0.000 </y>
517       <z> -1.000 </z>
518     </axis>
519   </animation>
520
521   <!-- Wheels rotation -->
522   <animation>
523     <type>spin</type>
524     <object-name>front-wheel</object-name>
525     <property>gear/gear[0]/rollspeed-ms</property>
526     <factor> 30 </factor>
527     <center>
528       <x-m> -2.5613 </x-m>
529       <y-m> -0.05752 </y-m>
530       <z-m> -0.9590 </z-m>
531     </center>
532     <axis>
533       <x>  0.000 </x>
534       <y> -1.000 </y>
535       <z>  0.000 </z>
536     </axis>
537   </animation>
538
539   <animation>
540     <type>spin</type>
541     <object-name>left-wheel</object-name>
542     <property>gear/gear[1]/rollspeed-ms</property>
543     <factor> 30 </factor>
544     <center>
545       <x-m> -0.9336 </x-m>
546       <y-m> -1.4044 </y-m>
547       <z-m> -0.9471 </z-m>
548     </center>
549     <axis>
550       <x>  0.000 </x>
551       <y> -1.000 </y>
552       <z>  0.000 </z>
553     </axis>
554   </animation>
555
556   <animation>
557     <type>spin</type>
558     <object-name>right-wheel</object-name>
559     <property>gear/gear[2]/rollspeed-ms</property>
560     <factor> 30 </factor>
561     <center>
562       <x-m> -0.9316 </x-m>
563       <y-m>  1.3944 </y-m>
564       <z-m> -0.9476 </z-m>
565     </center>
566     <axis>
567       <x>  0.000 </x>
568       <y> -1.000 </y>
569       <z>  0.000 </z>
570     </axis>
571   </animation>
572
573   <!-- Canopy -->
574   <animation>
575     <type>translate</type>
576     <object-name>support-canopy</object-name>
577     <object-name>front-windows</object-name>
578     <object-name>front-windows-int</object-name>
579     <object-name>poignee-ouverture</object-name>
580     <property>controls/canopy/position-norm</property>
581     <interpolation>
582       <entry><ind> 0.00 </ind><dep> 0.00 </dep></entry>
583       <entry><ind> 0.12 </ind><dep> 0.00 </dep></entry>
584       <entry><ind> 1.00 </ind><dep> 0.80 </dep></entry>
585     </interpolation>
586     <axis>
587       <x> -1.000 </x>
588       <y>  0.000 </y>
589       <z>  0.000 </z>
590     </axis>
591   </animation>
592
593   <animation>
594     <type>rotate</type>
595     <object-name>poignee-ouverture</object-name>
596     <property>controls/canopy/position-norm</property>
597     <interpolation>
598       <entry><ind>  0.00 </ind><dep>  0.00 </dep></entry>
599       <entry><ind>  0.12 </ind><dep> 45.00 </dep></entry>
600       <entry><ind>  1.00 </ind><dep> 45.00 </dep></entry>
601     </interpolation>
602     <axis>
603       <x>  0 </x>
604       <y>  0 </y>
605       <z> -1 </z>
606     </axis>
607     <center>
608       <x-m> -1.27804 </x-m>
609       <y-m>  0.008921 </y-m>
610       <z-m>  0.000 </z-m>
611     </center>
612   </animation>
613
614   <!-- Lights -->
615   <model>
616     <path>Aircraft/DR400-dauphin/Models/Lights/StrobeLight-rembrandt.xml</path>
617     <offsets>
618       <x-m> 0.5348 </x-m>
619       <y-m> 0.000  </y-m>
620       <z-m> 0.6692 </z-m>
621     </offsets>
622   </model>
623
624   <model>
625     <path>Aircraft/DR400-dauphin/Models/Lights/NavLightL-rembrandt.xml</path>
626     <offsets>
627       <x-m> -1.3955  </x-m>
628       <y-m> -4.3895  </y-m>
629       <z-m>  0.07344 </z-m>
630     </offsets>
631   </model>
632
633   <model>
634     <path>Aircraft/DR400-dauphin/Models/Lights/NavLightR-rembrandt.xml</path>
635     <offsets>
636       <x-m> -1.3955  </x-m>
637       <y-m>  4.3895  </y-m>
638       <z-m>  0.07344 </z-m>
639     </offsets>
640   </model>
641
642   <model>
643     <path>Aircraft/DR400-dauphin/Models/Lights/TaxiLight-rembrandt.xml</path>
644     <offsets>
645       <x-m> -1.742 </x-m>
646       <y-m> -2.2132 </y-m>
647       <z-m> -0.3145 </z-m>
648     </offsets>
649   </model>
650
651   <model>
652     <path>Aircraft/DR400-dauphin/Models/Lights/LandingLight-rembrandt.xml</path>
653     <offsets>
654       <x-m> -1.742 </x-m>
655       <y-m> -2.3654 </y-m>
656       <z-m> -0.3145 </z-m>
657     </offsets>
658   </model>
659
660 </PropertyList>
661