Replaced Billboard Navigation Lights with Procedural on ATR AI Aircrafts
This commit is contained in:
parent
b12189dcd1
commit
7e266b0b09
4 changed files with 253 additions and 274 deletions
|
@ -92,14 +92,4 @@
|
||||||
<model>
|
<model>
|
||||||
<path>Lights/AT5-NavLights.xml</path>
|
<path>Lights/AT5-NavLights.xml</path>
|
||||||
</model>
|
</model>
|
||||||
<!-- Enable Beacons and Strobes Pulse Behaviour -->
|
|
||||||
<nasal>
|
|
||||||
<load><![CDATA[
|
|
||||||
aircraft.light.new("/sim/model/ATR/lighting/beacon", [0.7, 1.3]);
|
|
||||||
aircraft.light.new("/sim/model/ATR/lighting/strobes", [0.02, 1.98]);
|
|
||||||
setprop("/sim/model/ATR/lighting/beacon/enabled", 1);
|
|
||||||
setprop("/sim/model/ATR/lighting/strobes/enabled", 1);
|
|
||||||
]]></load>
|
|
||||||
<unload></unload>
|
|
||||||
</nasal>
|
|
||||||
</PropertyList>
|
</PropertyList>
|
|
@ -1,197 +1,100 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
|
<!-- Author Ian (Yves Tolosa) - AUG 2018 -->
|
||||||
<PropertyList>
|
<PropertyList>
|
||||||
<!-- Load Lights Models -->
|
<!-- Position ALS Navigation Lights -->
|
||||||
<path>../../../Lights/NavLights.xml</path>
|
<model>
|
||||||
<!-- Re-Position Static Light from 0,0,0 onto their final Position -->
|
<name>nav-right</name>
|
||||||
<animation>
|
<path>AI/Lights/procedural_light_nav_right.xml</path>
|
||||||
<type>translate</type>
|
<offsets>
|
||||||
<object-name>Left_Wing_Static_Red</object-name>
|
<x-m>-0.54813</x-m>
|
||||||
<offset-m>12.85</offset-m>
|
<y-m>12.0663</y-m>
|
||||||
<axis>
|
<z-m>3.84024</z-m>
|
||||||
<x>-0.4322</x>
|
</offsets>
|
||||||
<y>-12.2028</y>
|
</model>
|
||||||
<z>3.84551</z>
|
<model>
|
||||||
</axis>
|
<name>nav-left</name>
|
||||||
</animation>
|
<path>AI/Lights/procedural_light_nav_left.xml</path>
|
||||||
<animation>
|
<offsets>
|
||||||
<type>translate</type>
|
<x-m>-0.54813</x-m>
|
||||||
<object-name>Right_Wing_Static_Green</object-name>
|
<y-m>-12.0663</y-m>
|
||||||
<offset-m>12.85</offset-m>
|
<z-m>3.84024</z-m>
|
||||||
<axis>
|
</offsets>
|
||||||
<x>-0.4322</x>
|
</model>
|
||||||
<y>12.2028</y>
|
<model>
|
||||||
<z>3.84551</z>
|
<name>nav-tail</name>
|
||||||
</axis>
|
<path>AI/Lights/procedural_light_nav_tail.xml</path>
|
||||||
</animation>
|
<offsets>
|
||||||
<animation>
|
<x-m>12.6</x-m>
|
||||||
<type>translate</type>
|
<y-m>0</y-m>
|
||||||
<object-name>Tail_Static_White</object-name>
|
<z-m>2.61542</z-m>
|
||||||
<offset-m>12.80</offset-m>
|
</offsets>
|
||||||
<axis>
|
</model>
|
||||||
<x>12.5202</x>
|
<!-- Position ALS Strobes -->
|
||||||
<y> 0</y>
|
<model>
|
||||||
<z>2.61542</z>
|
<name>strobe-right</name>
|
||||||
</axis>
|
<path>AI/Lights/procedural_light_strobe_right.xml</path>
|
||||||
</animation>
|
<offsets>
|
||||||
<!-- Re-Position Strobe Light from 0,0,0 onto their final Position -->
|
<x-m>-0.30779</x-m>
|
||||||
<animation>
|
<y-m>12.233</y-m>
|
||||||
<type>translate</type>
|
<z-m>3.9</z-m>
|
||||||
<object-name>Left_Wing_Strobe</object-name>
|
</offsets>
|
||||||
<offset-m>12.55</offset-m>
|
</model>
|
||||||
<axis>
|
<model>
|
||||||
<x>-0.80016</x>
|
<name>strobe-left</name>
|
||||||
<y>-11.9058</y>
|
<path>AI/Lights/procedural_light_strobe_left.xml</path>
|
||||||
<z>3.83404</z>
|
<offsets>
|
||||||
</axis>
|
<x-m>-0.30779</x-m>
|
||||||
</animation>
|
<y-m>-12.233</y-m>
|
||||||
<animation>
|
<z-m>3.9</z-m>
|
||||||
<type>translate</type>
|
</offsets>
|
||||||
<object-name>Right_Wing_Strobe</object-name>
|
</model>
|
||||||
<offset-m>12.55</offset-m>
|
<model>
|
||||||
<axis>
|
<name>strobe-tail</name>
|
||||||
<x>-0.80016</x>
|
<path>AI/Lights/procedural_light_strobe_tail.xml</path>
|
||||||
<y>11.9058</y>
|
<offsets>
|
||||||
<z>3.83404</z>
|
<x-m>11.3423</x-m>
|
||||||
</axis>
|
<y-m>0</y-m>
|
||||||
</animation>
|
<z-m>7.35764</z-m>
|
||||||
<animation>
|
</offsets>
|
||||||
<type>translate</type>
|
</model>
|
||||||
<object-name>Tail_Strobe</object-name>
|
<!-- Position Beacons -->
|
||||||
<offset-m>12.85</offset-m>
|
<model>
|
||||||
<axis>
|
<name>beacon-bottom</name>
|
||||||
<x>12.5202</x>
|
<path>AI/Lights/procedural_light_beacon_bottom.xml</path>
|
||||||
<y> 0</y>
|
<offsets>
|
||||||
<z>2.61542</z>
|
<x-m>-0.99501</x-m>
|
||||||
</axis>
|
<y-m>0</y-m>
|
||||||
</animation>
|
<z-m>0.41179</z-m>
|
||||||
<!-- Re-Position Beacons from 0,0,0 onto their final Position -->
|
</offsets>
|
||||||
<animation>
|
</model>
|
||||||
<type>translate</type>
|
|
||||||
<object-name>Top_Beacon_Red</object-name>
|
|
||||||
<offset-m>13.30</offset-m>
|
|
||||||
<axis>
|
|
||||||
<x>10.9969</x>
|
|
||||||
<y> 0</y>
|
|
||||||
<z>7.38903</z>
|
|
||||||
</axis>
|
|
||||||
</animation>
|
|
||||||
<animation>
|
|
||||||
<type>translate</type>
|
|
||||||
<object-name>Bottom_Beacon_Red</object-name>
|
|
||||||
<offset-m>0.4</offset-m>
|
|
||||||
<axis>
|
|
||||||
<x>-0.09764</x>
|
|
||||||
<y> 0</y>
|
|
||||||
<z>0.41179</z>
|
|
||||||
</axis>
|
|
||||||
</animation>
|
|
||||||
<!-- Group Lights for Shared Animations -->
|
<!-- Group Lights for Shared Animations -->
|
||||||
<animation>
|
<animation>
|
||||||
<name>StaticGrouped</name>
|
<name>StaticGrouped</name>
|
||||||
<object-name>Left_Wing_Static_Red</object-name>
|
<object-name>nav-right</object-name>
|
||||||
<object-name>Right_Wing_Static_Green</object-name>
|
<object-name>nav-left</object-name>
|
||||||
<object-name>Tail_Static_White</object-name>
|
<object-name>nav-tail</object-name>
|
||||||
</animation>
|
</animation>
|
||||||
<animation>
|
<animation>
|
||||||
<name>StrobeGrouped</name>
|
<name>StrobeGrouped</name>
|
||||||
<object-name>Left_Wing_Strobe</object-name>
|
<object-name>strobe-right</object-name>
|
||||||
<object-name>Right_Wing_Strobe</object-name>
|
<object-name>strobe-left</object-name>
|
||||||
<object-name>Tail_Strobe</object-name>
|
<object-name>strobe-tail</object-name>
|
||||||
</animation>
|
</animation>
|
||||||
<animation>
|
<animation>
|
||||||
<name>BeaconGrouped</name>
|
<name>BeaconGrouped</name>
|
||||||
<object-name>Top_Beacon_Red</object-name>
|
<object-name>beacon-bottom</object-name>
|
||||||
<object-name>Bottom_Beacon_Red</object-name>
|
|
||||||
</animation>
|
</animation>
|
||||||
<!-- Do not compute or show transparent pixels when Rembrand is disabled -->
|
<!-- Show Static Lights & Beacons when aircraft is moving -->
|
||||||
<animation>
|
|
||||||
<type>alpha-test</type>
|
|
||||||
<object-name>StaticGrouped</object-name>
|
|
||||||
<object-name>StrobeGrouped</object-name>
|
|
||||||
<object-name>BeaconGrouped</object-name>
|
|
||||||
<alpha-factor>0.4</alpha-factor>
|
|
||||||
</animation>
|
|
||||||
<!-- Make Navigation lights transparent when Rembrandt is enabled -->
|
|
||||||
<effect>
|
|
||||||
<inherits-from>Effects/model-transparent</inherits-from>
|
|
||||||
<condition>
|
|
||||||
<property>sim/rendering/rembrandt/enabled</property>
|
|
||||||
</condition>
|
|
||||||
<object-name>Left_Wing_Static_Red</object-name>
|
|
||||||
<object-name>Right_Wing_Static_Green</object-name>
|
|
||||||
<object-name>Tail_Static_White</object-name>
|
|
||||||
</effect>
|
|
||||||
<!-- Lights are Emissive -->
|
|
||||||
<animation>
|
|
||||||
<type>material</type>
|
|
||||||
<object-name>StaticGrouped</object-name>
|
|
||||||
<object-name>StrobeGrouped</object-name>
|
|
||||||
<object-name>BeaconGrouped</object-name>
|
|
||||||
<emission>
|
|
||||||
<red>1</red>
|
|
||||||
<green>1</green>
|
|
||||||
<blue>1</blue>
|
|
||||||
</emission>
|
|
||||||
</animation>
|
|
||||||
<!-- Lights always face viewer -->
|
|
||||||
<animation>
|
|
||||||
<type>billboard</type>
|
|
||||||
<object-name>StaticGrouped</object-name>
|
|
||||||
<object-name>StrobeGrouped</object-name>
|
|
||||||
<object-name>BeaconGrouped</object-name>
|
|
||||||
<spherical type="bool">true</spherical>
|
|
||||||
</animation>
|
|
||||||
<!-- Lights do not cast shadows -->
|
|
||||||
<animation>
|
|
||||||
<type>noshadow</type>
|
|
||||||
<object-name>StaticGrouped</object-name>
|
|
||||||
<object-name>StrobeGrouped</object-name>
|
|
||||||
<object-name>BeaconGrouped</object-name>
|
|
||||||
</animation>
|
|
||||||
<!-- Scale Static Lights based on Distance from Viewer -->
|
|
||||||
<animation>
|
|
||||||
<type>dist-scale</type>
|
|
||||||
<object-name>StaticGrouped</object-name>
|
|
||||||
<factor>0.0002</factor>
|
|
||||||
<offset>0.0</offset>
|
|
||||||
<min>0.1</min>
|
|
||||||
<max>40</max>
|
|
||||||
</animation>
|
|
||||||
<!-- Scale Beacon Lights based on Distance from Viewer -->
|
|
||||||
<animation>
|
|
||||||
<type>dist-scale</type>
|
|
||||||
<object-name>BeaconGrouped</object-name>
|
|
||||||
<factor>0.0002</factor>
|
|
||||||
<offset>0.0</offset>
|
|
||||||
<min>0.1</min>
|
|
||||||
<max>40</max>
|
|
||||||
</animation>
|
|
||||||
<!-- Scale Strobe Lights based on Distance from Viewer -->
|
|
||||||
<animation>
|
|
||||||
<type>dist-scale</type>
|
|
||||||
<object-name>StrobeGrouped</object-name>
|
|
||||||
<factor>0.0004</factor>
|
|
||||||
<offset>0.0</offset>
|
|
||||||
<min>0.1</min>
|
|
||||||
<max>40</max>
|
|
||||||
</animation>
|
|
||||||
<!-- Show Beacons when Aircraft is moving -->
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>select</type>
|
<type>select</type>
|
||||||
|
<object-name>StaticGrouped</object-name>
|
||||||
<object-name>BeaconGrouped</object-name>
|
<object-name>BeaconGrouped</object-name>
|
||||||
<nopreview />
|
<nopreview />
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
|
||||||
<property>/sim/model/ATR/lighting/beacon/state</property>
|
|
||||||
<greater-than>
|
<greater-than>
|
||||||
<property>transponder-id</property>
|
<property>transponder-id</property>
|
||||||
<value type="string">0</value>
|
<value type="string">0</value>
|
||||||
</greater-than>
|
</greater-than>
|
||||||
<equals>
|
|
||||||
<property>valid</property>
|
|
||||||
<value type="bool">true</value>
|
|
||||||
</equals>
|
|
||||||
</and>
|
|
||||||
</condition>
|
</condition>
|
||||||
</animation>
|
</animation>
|
||||||
<!-- Show Strobes when Aircraft on runway or airborne -->
|
<!-- Show Strobes when Aircraft on runway or airborne -->
|
||||||
|
@ -200,25 +103,10 @@
|
||||||
<object-name>StrobeGrouped</object-name>
|
<object-name>StrobeGrouped</object-name>
|
||||||
<nopreview />
|
<nopreview />
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
|
||||||
<property>/sim/model/ATR/lighting/strobes/state</property>
|
|
||||||
<greater-than>
|
<greater-than>
|
||||||
<property>velocities/true-airspeed-kt</property>
|
<property>velocities/true-airspeed-kt</property>
|
||||||
<value>40</value>
|
<value>40</value>
|
||||||
</greater-than>
|
</greater-than>
|
||||||
</and>
|
|
||||||
</condition>
|
|
||||||
</animation>
|
|
||||||
<!-- Show Static Lights when aircraft is moving -->
|
|
||||||
<animation>
|
|
||||||
<type>select</type>
|
|
||||||
<object-name>StaticGrouped</object-name>
|
|
||||||
<nopreview />
|
|
||||||
<condition>
|
|
||||||
<greater-than>
|
|
||||||
<property>transponder-id</property>
|
|
||||||
<value type="string">0</value>
|
|
||||||
</greater-than>
|
|
||||||
</condition>
|
</condition>
|
||||||
</animation>
|
</animation>
|
||||||
</PropertyList>
|
</PropertyList>
|
|
@ -3,12 +3,9 @@
|
||||||
<description>ATR 72-500</description>
|
<description>ATR 72-500</description>
|
||||||
<author>Ian Tolosa</author>
|
<author>Ian Tolosa</author>
|
||||||
<path>Models/AT7.ac</path>
|
<path>Models/AT7.ac</path>
|
||||||
|
|
||||||
<offsets>
|
<offsets>
|
||||||
<pitch-deg>-0.75</pitch-deg>
|
<pitch-deg>-0.75</pitch-deg>
|
||||||
</offsets>
|
</offsets>
|
||||||
|
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>select</type>
|
<type>select</type>
|
||||||
<object-name>Gear_Open</object-name>
|
<object-name>Gear_Open</object-name>
|
||||||
|
@ -19,7 +16,6 @@
|
||||||
</less-than>
|
</less-than>
|
||||||
</condition>
|
</condition>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>select</type>
|
<type>select</type>
|
||||||
<object-name>Gear_Closed</object-name>
|
<object-name>Gear_Closed</object-name>
|
||||||
|
@ -30,9 +26,6 @@
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>select</type>
|
<type>select</type>
|
||||||
<object-name>Prop_Blur_L</object-name>
|
<object-name>Prop_Blur_L</object-name>
|
||||||
|
@ -43,7 +36,6 @@
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>select</type>
|
<type>select</type>
|
||||||
<object-name>Prop_Blur_R</object-name>
|
<object-name>Prop_Blur_R</object-name>
|
||||||
|
@ -54,9 +46,6 @@
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</condition>
|
</condition>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>spin</type>
|
<type>spin</type>
|
||||||
<object-name>Prop_L</object-name>
|
<object-name>Prop_L</object-name>
|
||||||
|
@ -73,7 +62,6 @@
|
||||||
<z>0.000</z>
|
<z>0.000</z>
|
||||||
</axis>
|
</axis>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>spin</type>
|
<type>spin</type>
|
||||||
<object-name>Prop_R</object-name>
|
<object-name>Prop_R</object-name>
|
||||||
|
@ -90,7 +78,8 @@
|
||||||
<z>0.000</z>
|
<z>0.000</z>
|
||||||
</axis>
|
</axis>
|
||||||
</animation>
|
</animation>
|
||||||
|
<!-- Add Navigation Lights Objects -->
|
||||||
|
<model>
|
||||||
|
<path>Lights/AT7-NavLights.xml</path>
|
||||||
|
</model>
|
||||||
</PropertyList>
|
</PropertyList>
|
112
AI/Aircraft/AT7/Lights/AT7-NavLights.xml
Normal file
112
AI/Aircraft/AT7/Lights/AT7-NavLights.xml
Normal file
|
@ -0,0 +1,112 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<!-- Author Ian (Yves Tolosa) - AUG 2018 -->
|
||||||
|
<PropertyList>
|
||||||
|
<!-- Position ALS Navigation Lights -->
|
||||||
|
<model>
|
||||||
|
<name>nav-right</name>
|
||||||
|
<path>AI/Lights/procedural_light_nav_right.xml</path>
|
||||||
|
<offsets>
|
||||||
|
<x-m>-0.8767</x-m>
|
||||||
|
<y-m>12.8882</y-m>
|
||||||
|
<z-m>3.77984</z-m>
|
||||||
|
</offsets>
|
||||||
|
</model>
|
||||||
|
<model>
|
||||||
|
<name>nav-left</name>
|
||||||
|
<path>AI/Lights/procedural_light_nav_left.xml</path>
|
||||||
|
<offsets>
|
||||||
|
<x-m>-0.8767</x-m>
|
||||||
|
<y-m>-12.8882</y-m>
|
||||||
|
<z-m>3.77984</z-m>
|
||||||
|
</offsets>
|
||||||
|
</model>
|
||||||
|
<model>
|
||||||
|
<name>nav-tail</name>
|
||||||
|
<path>AI/Lights/procedural_light_nav_tail.xml</path>
|
||||||
|
<offsets>
|
||||||
|
<x-m>14.7</x-m>
|
||||||
|
<y-m>0</y-m>
|
||||||
|
<z-m>2.60845</z-m>
|
||||||
|
</offsets>
|
||||||
|
</model>
|
||||||
|
<!-- Position ALS Strobes -->
|
||||||
|
<model>
|
||||||
|
<name>strobe-right</name>
|
||||||
|
<path>AI/Lights/procedural_light_strobe_right.xml</path>
|
||||||
|
<offsets>
|
||||||
|
<x-m>-0.28345</x-m>
|
||||||
|
<y-m>13.5226</y-m>
|
||||||
|
<z-m>3.80199</z-m>
|
||||||
|
</offsets>
|
||||||
|
</model>
|
||||||
|
<model>
|
||||||
|
<name>strobe-left</name>
|
||||||
|
<path>AI/Lights/procedural_light_strobe_left.xml</path>
|
||||||
|
<offsets>
|
||||||
|
<x-m>-0.28345</x-m>
|
||||||
|
<y-m>-13.5226</y-m>
|
||||||
|
<z-m>3.80199</z-m>
|
||||||
|
</offsets>
|
||||||
|
</model>
|
||||||
|
<model>
|
||||||
|
<name>strobe-tail</name>
|
||||||
|
<path>AI/Lights/procedural_light_strobe_tail.xml</path>
|
||||||
|
<offsets>
|
||||||
|
<x-m>13.4779</x-m>
|
||||||
|
<y-m>0</y-m>
|
||||||
|
<z-m>7.4</z-m>
|
||||||
|
</offsets>
|
||||||
|
</model>
|
||||||
|
<!-- Position Beacons -->
|
||||||
|
<model>
|
||||||
|
<name>beacon-bottom</name>
|
||||||
|
<path>AI/Lights/procedural_light_beacon_bottom.xml</path>
|
||||||
|
<offsets>
|
||||||
|
<x-m>-1.133941</x-m>
|
||||||
|
<y-m>0</y-m>
|
||||||
|
<z-m>0.4</z-m>
|
||||||
|
</offsets>
|
||||||
|
</model>
|
||||||
|
<!-- Group Lights for Shared Animations -->
|
||||||
|
<animation>
|
||||||
|
<name>StaticGrouped</name>
|
||||||
|
<object-name>nav-right</object-name>
|
||||||
|
<object-name>nav-left</object-name>
|
||||||
|
<object-name>nav-tail</object-name>
|
||||||
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<name>StrobeGrouped</name>
|
||||||
|
<object-name>strobe-right</object-name>
|
||||||
|
<object-name>strobe-left</object-name>
|
||||||
|
<object-name>strobe-tail</object-name>
|
||||||
|
</animation>
|
||||||
|
<animation>
|
||||||
|
<name>BeaconGrouped</name>
|
||||||
|
<object-name>beacon-bottom</object-name>
|
||||||
|
</animation>
|
||||||
|
<!-- Show Static Lights & Beacons when aircraft is moving -->
|
||||||
|
<animation>
|
||||||
|
<type>select</type>
|
||||||
|
<object-name>StaticGrouped</object-name>
|
||||||
|
<object-name>BeaconGrouped</object-name>
|
||||||
|
<nopreview />
|
||||||
|
<condition>
|
||||||
|
<greater-than>
|
||||||
|
<property>transponder-id</property>
|
||||||
|
<value type="string">0</value>
|
||||||
|
</greater-than>
|
||||||
|
</condition>
|
||||||
|
</animation>
|
||||||
|
<!-- Show Strobes when Aircraft on runway or airborne -->
|
||||||
|
<animation>
|
||||||
|
<type>select</type>
|
||||||
|
<object-name>StrobeGrouped</object-name>
|
||||||
|
<nopreview />
|
||||||
|
<condition>
|
||||||
|
<greater-than>
|
||||||
|
<property>velocities/true-airspeed-kt</property>
|
||||||
|
<value>40</value>
|
||||||
|
</greater-than>
|
||||||
|
</condition>
|
||||||
|
</animation>
|
||||||
|
</PropertyList>
|
Loading…
Reference in a new issue