Replaced Billboard Navigation Lights with Procedural
This commit is contained in:
parent
0b3e531c00
commit
7dcdd8550e
4 changed files with 238 additions and 226 deletions
|
@ -28,14 +28,4 @@
|
||||||
<model>
|
<model>
|
||||||
<path>Lights/E70-NavLights.xml</path>
|
<path>Lights/E70-NavLights.xml</path>
|
||||||
</model>
|
</model>
|
||||||
<!-- Enable Beacons and Strobes Pulse Behaviour -->
|
|
||||||
<nasal>
|
|
||||||
<load><![CDATA[
|
|
||||||
aircraft.light.new("/sim/model/Embraer/lighting/beacon", [0.7, 1.3]);
|
|
||||||
aircraft.light.new("/sim/model/Embraer/lighting/strobes", [0.02, 0.1, 0.02, 1.86]);
|
|
||||||
setprop("/sim/model/Embraer/lighting/beacon/enabled", 1);
|
|
||||||
setprop("/sim/model/Embraer/lighting/strobes/enabled", 1);
|
|
||||||
]]></load>
|
|
||||||
<unload></unload>
|
|
||||||
</nasal>
|
|
||||||
</PropertyList>
|
</PropertyList>
|
|
@ -1,10 +1,8 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
|
|
||||||
<PropertyList>
|
<PropertyList>
|
||||||
<description>Embraer Regional Jet 175</description>
|
<description>Embraer Regional Jet 175</description>
|
||||||
<author>Yves (Ian) Tolosa. Feb 2016 </author>
|
<author>Ian(Yves) Tolosa. Feb 2016 </author>
|
||||||
<path>Models/ERJ175.ac</path>
|
<path>Models/ERJ175.ac</path>
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>select</type>
|
<type>select</type>
|
||||||
<object-name>Gear</object-name>
|
<object-name>Gear</object-name>
|
||||||
|
@ -15,4 +13,8 @@
|
||||||
</less-than>
|
</less-than>
|
||||||
</condition>
|
</condition>
|
||||||
</animation>
|
</animation>
|
||||||
|
<!-- Add Navigation Lights Objects -->
|
||||||
|
<model>
|
||||||
|
<path>Lights/E75-NavLights.xml</path>
|
||||||
|
</model>
|
||||||
</PropertyList>
|
</PropertyList>
|
|
@ -1,197 +1,110 @@
|
||||||
<?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>1.93072</x-m>
|
||||||
<offset-m>12.85</offset-m>
|
<y-m>12.3055</y-m>
|
||||||
<axis>
|
<z-m>3.1682</z-m>
|
||||||
<x> 1.93072</x>
|
</offsets>
|
||||||
<y> -12.3055</y>
|
</model>
|
||||||
<z> 3.1682</z>
|
<model>
|
||||||
</axis>
|
<name>nav-left</name>
|
||||||
</animation>
|
<path>AI/Lights/procedural_light_nav_left.xml</path>
|
||||||
<animation>
|
<offsets>
|
||||||
<type>translate</type>
|
<x-m>1.93072</x-m>
|
||||||
<object-name>Right_Wing_Static_Green</object-name>
|
<y-m>-12.3055</y-m>
|
||||||
<offset-m>12.85</offset-m>
|
<z-m>3.1682</z-m>
|
||||||
<axis>
|
</offsets>
|
||||||
<x> 1.93072</x>
|
</model>
|
||||||
<y> 12.3055</y>
|
<model>
|
||||||
<z> 3.1682</z>
|
<name>nav-tail</name>
|
||||||
</axis>
|
<path>AI/Lights/procedural_light_nav_tail.xml</path>
|
||||||
</animation>
|
<offsets>
|
||||||
<animation>
|
<x-m>15.1477</x-m>
|
||||||
<type>translate</type>
|
<y-m>0</y-m>
|
||||||
<object-name>Tail_Static_White</object-name>
|
<z-m>4.04033</z-m>
|
||||||
<offset-m>15.60</offset-m>
|
</offsets>
|
||||||
<axis>
|
</model>
|
||||||
<x> 15.1477</x>
|
<!-- Position ALS Strobes -->
|
||||||
<y> 0</y>
|
<model>
|
||||||
<z> 4.04033</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>4.16188</x-m>
|
||||||
<animation>
|
<y-m>12.9351</y-m>
|
||||||
<type>translate</type>
|
<z-m>4.62991</z-m>
|
||||||
<object-name>Left_Wing_Strobe</object-name>
|
</offsets>
|
||||||
<offset-m>14.40</offset-m>
|
</model>
|
||||||
<axis>
|
<model>
|
||||||
<x> 4.16188</x>
|
<name>strobe-left</name>
|
||||||
<y> -12.9351</y>
|
<path>AI/Lights/procedural_light_strobe_left.xml</path>
|
||||||
<z> 4.62991</z>
|
<offsets>
|
||||||
</axis>
|
<x-m>4.16188</x-m>
|
||||||
</animation>
|
<y-m>-12.9351</y-m>
|
||||||
<animation>
|
<z-m>4.62991</z-m>
|
||||||
<type>translate</type>
|
</offsets>
|
||||||
<object-name>Right_Wing_Strobe</object-name>
|
</model>
|
||||||
<offset-m>14.40</offset-m>
|
<model>
|
||||||
<axis>
|
<name>strobe-tail</name>
|
||||||
<x> 4.16188</x>
|
<path>AI/Lights/procedural_light_strobe_tail.xml</path>
|
||||||
<y> 12.9351</y>
|
<offsets>
|
||||||
<z> 4.62991</z>
|
<x-m>15.2</x-m>
|
||||||
</axis>
|
<y-m>0</y-m>
|
||||||
</animation>
|
<z-m>4.04033</z-m>
|
||||||
<animation>
|
</offsets>
|
||||||
<type>translate</type>
|
</model>
|
||||||
<object-name>Tail_Strobe</object-name>
|
<!-- Position Beacons -->
|
||||||
<offset-m>16</offset-m>
|
<model>
|
||||||
<axis>
|
<name>beacon-top</name>
|
||||||
<x> 15.1477</x>
|
<path>AI/Lights/procedural_light_beacon_top.xml</path>
|
||||||
<y> 0</y>
|
<offsets>
|
||||||
<z> 4.04033</z>
|
<x-m>-6.3054</x-m>
|
||||||
</axis>
|
<y-m>0</y-m>
|
||||||
</animation>
|
<z-m>4.93849</z-m>
|
||||||
<!-- Re-Position Beacons from 0,0,0 onto their final Position -->
|
</offsets>
|
||||||
<animation>
|
</model>
|
||||||
<type>translate</type>
|
<model>
|
||||||
<object-name>Top_Beacon_Red</object-name>
|
<name>beacon-bottom</name>
|
||||||
<offset-m>8.01</offset-m>
|
<path>AI/Lights/procedural_light_beacon_bottom.xml</path>
|
||||||
<axis>
|
<offsets>
|
||||||
<x> -6.3054</x>
|
<x-m>-1.5305</x-m>
|
||||||
<y> 0</y>
|
<y-m>0</y-m>
|
||||||
<z> 4.93849</z>
|
<z-m>0.863235</z-m>
|
||||||
</axis>
|
</offsets>
|
||||||
</animation>
|
</model>
|
||||||
<animation>
|
|
||||||
<type>translate</type>
|
|
||||||
<object-name>Bottom_Beacon_Red</object-name>
|
|
||||||
<offset-m>1.76</offset-m>
|
|
||||||
<axis>
|
|
||||||
<x> -1.5305</x>
|
|
||||||
<y> 0</y>
|
|
||||||
<z> 0.863235</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-top</object-name>
|
||||||
<object-name>Bottom_Beacon_Red</object-name>
|
<object-name>beacon-bottom</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.0003</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/Embraer/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 +113,10 @@
|
||||||
<object-name>StrobeGrouped</object-name>
|
<object-name>StrobeGrouped</object-name>
|
||||||
<nopreview />
|
<nopreview />
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
|
||||||
<property>/sim/model/Embraer/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>
|
122
AI/Aircraft/E70/Lights/E75-NavLights.xml
Normal file
122
AI/Aircraft/E70/Lights/E75-NavLights.xml
Normal file
|
@ -0,0 +1,122 @@
|
||||||
|
<?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>1.90381</x-m>
|
||||||
|
<y-m>12.2143</y-m>
|
||||||
|
<z-m>3.12482</z-m>
|
||||||
|
</offsets>
|
||||||
|
</model>
|
||||||
|
<model>
|
||||||
|
<name>nav-left</name>
|
||||||
|
<path>AI/Lights/procedural_light_nav_left.xml</path>
|
||||||
|
<offsets>
|
||||||
|
<x-m>1.90381</x-m>
|
||||||
|
<y-m>-12.2143</y-m>
|
||||||
|
<z-m>3.12482</z-m>
|
||||||
|
</offsets>
|
||||||
|
</model>
|
||||||
|
<model>
|
||||||
|
<name>nav-tail</name>
|
||||||
|
<path>AI/Lights/procedural_light_nav_tail.xml</path>
|
||||||
|
<offsets>
|
||||||
|
<x-m>16.2</x-m>
|
||||||
|
<y-m>0</y-m>
|
||||||
|
<z-m>3.88447</z-m>
|
||||||
|
</offsets>
|
||||||
|
</model>
|
||||||
|
<!-- Position ALS Strobes -->
|
||||||
|
<model>
|
||||||
|
<name>strobe-right</name>
|
||||||
|
<path>AI/Lights/procedural_light_strobe_right.xml</path>
|
||||||
|
<offsets>
|
||||||
|
<x-m>4.1969</x-m>
|
||||||
|
<y-m>12.9351</y-m>
|
||||||
|
<z-m>4.57857</z-m>
|
||||||
|
</offsets>
|
||||||
|
</model>
|
||||||
|
<model>
|
||||||
|
<name>strobe-left</name>
|
||||||
|
<path>AI/Lights/procedural_light_strobe_left.xml</path>
|
||||||
|
<offsets>
|
||||||
|
<x-m>4.1969</x-m>
|
||||||
|
<y-m>-12.9351</y-m>
|
||||||
|
<z-m>4.57857</z-m>
|
||||||
|
</offsets>
|
||||||
|
</model>
|
||||||
|
<model>
|
||||||
|
<name>strobe-tail</name>
|
||||||
|
<path>AI/Lights/procedural_light_strobe_tail.xml</path>
|
||||||
|
<offsets>
|
||||||
|
<x-m>17</x-m>
|
||||||
|
<y-m>0</y-m>
|
||||||
|
<z-m>3.88447</z-m>
|
||||||
|
</offsets>
|
||||||
|
</model>
|
||||||
|
<!-- Position Beacons -->
|
||||||
|
<model>
|
||||||
|
<name>beacon-top</name>
|
||||||
|
<path>AI/Lights/procedural_light_beacon_top.xml</path>
|
||||||
|
<offsets>
|
||||||
|
<x-m>-6.3054</x-m>
|
||||||
|
<y-m>0</y-m>
|
||||||
|
<z-m>4.93849</z-m>
|
||||||
|
</offsets>
|
||||||
|
</model>
|
||||||
|
<model>
|
||||||
|
<name>beacon-bottom</name>
|
||||||
|
<path>AI/Lights/procedural_light_beacon_bottom.xml</path>
|
||||||
|
<offsets>
|
||||||
|
<x-m>-1.5305</x-m>
|
||||||
|
<y-m>0</y-m>
|
||||||
|
<z-m>0.863235</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-top</object-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