first commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<model>
|
||||
<name>BeaconFlare</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/Flares/Beacon-flare.xml</path>
|
||||
</model>
|
||||
|
||||
<model>
|
||||
<name>BeaconRemb</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/Rembrandt/Beacon-remb.xml</path>
|
||||
</model>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>BeaconFlare</object-name>
|
||||
<object-name>BeaconRemb</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<property>lightpack/beacon-state/state</property>
|
||||
<not><property>sim/crashed</property></not>
|
||||
</and>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,81 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>RedLight-flat.ac</path>
|
||||
|
||||
<animation>
|
||||
<type>blend</type>
|
||||
<expression>
|
||||
<sum>
|
||||
<product>
|
||||
<product>
|
||||
<property>lightpack/beacon-state/state</property>
|
||||
<value>-1</value>
|
||||
</product>
|
||||
<sum>
|
||||
<max>
|
||||
<product>
|
||||
<pow>
|
||||
<cos><property>/sim/time/sun-angle-rad</property></cos>
|
||||
<value>0.3</value>
|
||||
</pow>
|
||||
<value>0.5</value> <!-- by tuning this, you specify how much to fade during full daylight -->
|
||||
</product>
|
||||
<value>0</value>
|
||||
</max>
|
||||
<value>-1</value>
|
||||
</sum>
|
||||
<value>-1</value>
|
||||
</product>
|
||||
<value>1</value>
|
||||
</sum>
|
||||
</expression>
|
||||
</animation>
|
||||
|
||||
<effect>
|
||||
<inherits-from>Effects/model-transparent</inherits-from>
|
||||
<condition>
|
||||
<property>/sim/rendering/rembrandt/enabled</property>
|
||||
</condition>
|
||||
<object-name>Light</object-name>
|
||||
</effect>
|
||||
|
||||
<animation>
|
||||
<type>billboard</type>
|
||||
<object-name>Light</object-name>
|
||||
<spherical type="bool">true</spherical>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>noshadow</type>
|
||||
<object-name>Light</object-name>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>alpha-test</type>
|
||||
<alpha-factor>0.01</alpha-factor>
|
||||
</animation>
|
||||
|
||||
|
||||
<animation>
|
||||
<type>material</type>
|
||||
<object-name>Light</object-name>
|
||||
<emission>
|
||||
<red> 1.0 </red>
|
||||
<green> 1.0 </green>
|
||||
<blue> 1.0 </blue>
|
||||
</emission>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>dist-scale</type>
|
||||
<object-name>Light</object-name>
|
||||
<interpolation>
|
||||
<entry><ind> 0 </ind><dep> 0.50 </dep></entry>
|
||||
<entry><ind> 20 </ind><dep> 1.00 </dep></entry>
|
||||
<entry><ind> 1500 </ind><dep> 10.00 </dep></entry>
|
||||
</interpolation>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,85 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>GreenLight-flat.ac</path>
|
||||
|
||||
<animation>
|
||||
<type>blend</type>
|
||||
<expression>
|
||||
<sum>
|
||||
<product>
|
||||
<product>
|
||||
<property>lightpack/nav-lights-intensity</property>
|
||||
<value>-1</value>
|
||||
</product>
|
||||
<sum>
|
||||
<max>
|
||||
<product>
|
||||
<pow>
|
||||
<cos><property>/sim/time/sun-angle-rad</property></cos>
|
||||
<value>0.3</value>
|
||||
</pow>
|
||||
<value>0.8</value> <!-- by tuning this, you specify how much to fade during full daylight -->
|
||||
</product>
|
||||
<value>0</value>
|
||||
</max>
|
||||
<value>-1</value>
|
||||
</sum>
|
||||
<value>-1</value>
|
||||
</product>
|
||||
<value>1</value>
|
||||
</sum>
|
||||
</expression>
|
||||
</animation>
|
||||
|
||||
<effect>
|
||||
<inherits-from>Effects/model-transparent</inherits-from>
|
||||
<condition>
|
||||
<property>/sim/rendering/rembrandt/enabled</property>
|
||||
</condition>
|
||||
<object-name>Light</object-name>
|
||||
</effect>
|
||||
|
||||
<animation>
|
||||
<type>noshadow</type>
|
||||
<object-name>Light</object-name>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>alpha-test</type>
|
||||
<alpha-factor>0.01</alpha-factor>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>billboard</type>
|
||||
<object-name>Light</object-name>
|
||||
<spherical type="bool">true</spherical>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>material</type>
|
||||
<object-name>Light</object-name>
|
||||
<emission>
|
||||
<red> 1.0 </red>
|
||||
<green> 1.0 </green>
|
||||
<blue> 1.0 </blue>
|
||||
</emission>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>dist-scale</type>
|
||||
<object-name>Light</object-name>
|
||||
<interpolation>
|
||||
<entry><ind> 0 </ind><dep> 0.25 </dep></entry>
|
||||
<entry><ind> 20 </ind><dep> 0.50 </dep></entry>
|
||||
<entry><ind> 1500 </ind><dep> 5.00 </dep></entry>
|
||||
</interpolation>
|
||||
<center> <!-- prevent the light from moving forward, obscuring eg. landing lights (the model is offset from center) -->
|
||||
<x-m>0</x-m>
|
||||
<y-m>-0.24</y-m>
|
||||
<z-m>0</z-m>
|
||||
</center>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,25 @@
|
||||
AC3Db
|
||||
MATERIAL "DefaultWhite" rgb 1.0000 1.0000 1.0000 amb 0.2000 0.2000 0.2000 emis 0.0000 0.0000 0.0000 spec 0.5000 0.5000 0.5000 shi 10 trans 0.0000
|
||||
MATERIAL "DefaultWhite" rgb 1.0000 1.0000 1.0000 amb 1.0000 1.0000 1.0000 emis 0.0000 0.0000 0.0000 spec 0.0800 0.0800 0.0800 shi 50 trans 0.0000
|
||||
OBJECT world
|
||||
name "Blender_export__GreenLight-flat2.ac"
|
||||
kids 1
|
||||
OBJECT poly
|
||||
name "Light"
|
||||
loc 0.0154000 0.0000000 0.2400000
|
||||
texture "lights.png"
|
||||
texrep 1 1
|
||||
numvert 4
|
||||
0.5000000 0.5000000 0.0000000
|
||||
-0.5000000 0.5000000 0.0000000
|
||||
-0.5000000 -0.5000000 0.0000000
|
||||
0.5000000 -0.5000000 0.0000000
|
||||
numsurf 1
|
||||
SURF 0X20
|
||||
mat 1
|
||||
refs 4
|
||||
0 0.948961 0.442462
|
||||
1 0.563538 0.442462
|
||||
2 0.563538 0.057039
|
||||
3 0.948961 0.057039
|
||||
kids 0
|
||||
@@ -0,0 +1,87 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>Light-flash.ac</path>
|
||||
|
||||
<animation>
|
||||
<object-name>flash</object-name>
|
||||
<attach>world</attach>
|
||||
<placer>
|
||||
<type>point</type>
|
||||
</placer>
|
||||
</animation>
|
||||
|
||||
<effect>
|
||||
<inherits-from>Effects/model-transparent</inherits-from>
|
||||
<condition>
|
||||
<property>/sim/rendering/rembrandt/enabled</property>
|
||||
</condition>
|
||||
<object-name>flash</object-name>
|
||||
</effect>
|
||||
|
||||
<animation>
|
||||
<type>noshadow</type>
|
||||
<object-name>flash</object-name>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>flash</type>
|
||||
<object-name>flash</object-name>
|
||||
<center>
|
||||
<x-m> 0.000 </x-m>
|
||||
<y-m> 0.000 </y-m>
|
||||
<z-m> 0.000 </z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x> -1.0 </x>
|
||||
<y> 0.0 </y>
|
||||
<z> -0.1 </z><!-- make sure to keep this equivalent to the Rembrandt light cone pitch setting! set here tan(pitch) -->
|
||||
</axis>
|
||||
<power>15</power>
|
||||
<factor>0.8</factor>
|
||||
<offset>0</offset>
|
||||
<two-sides type="bool">false</two-sides>
|
||||
<min>0.0</min>
|
||||
<max>1</max>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>scale</type>
|
||||
<object-name>flash</object-name>
|
||||
<property>lightpack/landing-lights-intensity</property>
|
||||
</animation>
|
||||
|
||||
|
||||
<animation>
|
||||
<type>material</type>
|
||||
<object-name>flash</object-name>
|
||||
<emission>
|
||||
<red> 1.0 </red>
|
||||
<green> 1.0 </green>
|
||||
<blue> 0.75 </blue>
|
||||
</emission>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>dist-scale</type>
|
||||
<object-name>flash</object-name>
|
||||
<interpolation>
|
||||
<entry>
|
||||
<ind>0</ind><dep>2</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>20</ind><dep>2</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>1500</ind><dep>4</dep>
|
||||
</entry>
|
||||
</interpolation>
|
||||
<center> <!-- prevent light model from obscuring the flare on larger distances -->
|
||||
<x-m>0.3</x-m>
|
||||
<y-m>0</y-m>
|
||||
<z-m>0</z-m>
|
||||
</center>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,26 @@
|
||||
AC3Db
|
||||
MATERIAL "DefaultWhite" rgb 1 1 1 amb 1 1 1 emis 0 0 0 spec 0.5 0.5 0.5 shi 64 trans 0
|
||||
MATERIAL "lit" rgb 1 0.97912 0.97912 amb 1 0.97912 0.97912 emis 1 1 0.82 spec 0 0 0 shi 49 trans 0
|
||||
OBJECT world
|
||||
kids 1
|
||||
OBJECT poly
|
||||
name "flash"
|
||||
data 5
|
||||
flash
|
||||
texture "lights.png"
|
||||
texrep 1 1
|
||||
crease 30.000000
|
||||
numvert 4
|
||||
0 0.6 0.6
|
||||
0 -0.6 0.6
|
||||
0 -0.6 -0.6
|
||||
0 0.6 -0.599999
|
||||
numsurf 1
|
||||
SURF 0x00
|
||||
mat 1
|
||||
refs 4
|
||||
0 0.52999997139 0.97000002861
|
||||
3 0.97000002861 0.97000002861
|
||||
2 0.97000002861 0.52999997139
|
||||
1 0.52999997139 0.52999997139
|
||||
kids 0
|
||||
@@ -0,0 +1,81 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>Light-flash.ac</path>
|
||||
|
||||
<effect>
|
||||
<inherits-from>Effects/model-transparent</inherits-from>
|
||||
<condition>
|
||||
<property>/sim/rendering/rembrandt/enabled</property>
|
||||
</condition>
|
||||
<object-name>flash</object-name>
|
||||
</effect>
|
||||
|
||||
<animation>
|
||||
<object-name>flash</object-name>
|
||||
<attach>world</attach>
|
||||
<placer>
|
||||
<type>point</type>
|
||||
</placer>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>noshadow</type>
|
||||
<object-name>flash</object-name>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>flash</type>
|
||||
<object-name>flash</object-name>
|
||||
<center>
|
||||
<x-m> 0.000 </x-m>
|
||||
<y-m> 0.000 </y-m>
|
||||
<z-m> 0.000 </z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x> -1 </x>
|
||||
<y> 0 </y>
|
||||
<z> 0 </z>
|
||||
</axis>
|
||||
<power>6</power>
|
||||
<factor>0.04</factor>
|
||||
<offset>0</offset>
|
||||
<two-sides type="bool">false</two-sides>
|
||||
<min>0.0</min>
|
||||
<max>0.1</max>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>scale</type>
|
||||
<object-name>flash</object-name>
|
||||
<property>lightpack/probe-light-intensity</property>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>material</type>
|
||||
<object-name>flash</object-name>
|
||||
<emission>
|
||||
<red> 1.0 </red>
|
||||
<green> 1.0 </green>
|
||||
<blue> 0.75 </blue>
|
||||
</emission>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>dist-scale</type>
|
||||
<object-name>flash</object-name>
|
||||
<interpolation>
|
||||
<entry>
|
||||
<ind>0</ind><dep>4</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>20</ind><dep>4</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>1500</ind><dep>8</dep>
|
||||
</entry>
|
||||
</interpolation>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,85 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>RedLight-flat.ac</path>
|
||||
|
||||
<animation>
|
||||
<type>blend</type>
|
||||
<expression>
|
||||
<sum>
|
||||
<product>
|
||||
<product>
|
||||
<property>lightpack/nav-lights-intensity</property>
|
||||
<value>-1</value>
|
||||
</product>
|
||||
<sum>
|
||||
<max>
|
||||
<product>
|
||||
<pow>
|
||||
<cos><property>/sim/time/sun-angle-rad</property></cos>
|
||||
<value>0.3</value>
|
||||
</pow>
|
||||
<value>0.8</value> <!-- by tuning this, you specify how much to fade during full daylight -->
|
||||
</product>
|
||||
<value>0</value>
|
||||
</max>
|
||||
<value>-1</value>
|
||||
</sum>
|
||||
<value>-1</value>
|
||||
</product>
|
||||
<value>1</value>
|
||||
</sum>
|
||||
</expression>
|
||||
</animation>
|
||||
|
||||
<effect>
|
||||
<inherits-from>Effects/model-transparent</inherits-from>
|
||||
<condition>
|
||||
<property>/sim/rendering/rembrandt/enabled</property>
|
||||
</condition>
|
||||
<object-name>Light</object-name>
|
||||
</effect>
|
||||
|
||||
<animation>
|
||||
<type>noshadow</type>
|
||||
<object-name>Light</object-name>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>alpha-test</type>
|
||||
<alpha-factor>0.01</alpha-factor>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>billboard</type>
|
||||
<object-name>Light</object-name>
|
||||
<spherical type="bool">true</spherical>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>material</type>
|
||||
<object-name>Light</object-name>
|
||||
<emission>
|
||||
<red> 1.0 </red>
|
||||
<green> 1.0 </green>
|
||||
<blue> 1.0 </blue>
|
||||
</emission>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>dist-scale</type>
|
||||
<object-name>Light</object-name>
|
||||
<interpolation>
|
||||
<entry><ind> 0 </ind><dep> 0.25 </dep></entry>
|
||||
<entry><ind> 20 </ind><dep> 0.50 </dep></entry>
|
||||
<entry><ind> 1500 </ind><dep> 5.00 </dep></entry>
|
||||
</interpolation>
|
||||
<center> <!-- prevent the light from moving forward, obscuring eg. landing lights (the model is offset from center) -->
|
||||
<x-m>0</x-m>
|
||||
<y-m>-0.24</y-m>
|
||||
<z-m>0</z-m>
|
||||
</center>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,25 @@
|
||||
AC3Db
|
||||
MATERIAL "DefaultWhite" rgb 1.0000 1.0000 1.0000 amb 0.2000 0.2000 0.2000 emis 0.0000 0.0000 0.0000 spec 0.5000 0.5000 0.5000 shi 10 trans 0.0000
|
||||
MATERIAL "DefaultWhite" rgb 1.0000 1.0000 1.0000 amb 1.0000 1.0000 1.0000 emis 0.0000 0.0000 0.0000 spec 0.0800 0.0800 0.0800 shi 50 trans 0.0000
|
||||
OBJECT world
|
||||
name "Blender_export__RedLight2.ac"
|
||||
kids 1
|
||||
OBJECT poly
|
||||
name "Light"
|
||||
loc 0.0154000 0.0000000 0.2400000
|
||||
texture "lights.png"
|
||||
texrep 1 1
|
||||
numvert 4
|
||||
0.5000000 0.5000000 0.0000000
|
||||
-0.5000000 0.5000000 0.0000000
|
||||
-0.5000000 -0.5000000 0.0000000
|
||||
0.5000000 -0.5000000 0.0000000
|
||||
numsurf 1
|
||||
SURF 0X20
|
||||
mat 1
|
||||
refs 4
|
||||
0 0.448961 0.442462
|
||||
1 0.063538 0.442462
|
||||
2 0.063538 0.057039
|
||||
3 0.448961 0.057039
|
||||
kids 0
|
||||
@@ -0,0 +1,85 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>WhiteLight-flat.ac</path>
|
||||
|
||||
<animation>
|
||||
<type>blend</type>
|
||||
<expression>
|
||||
<sum>
|
||||
<product>
|
||||
<product>
|
||||
<property>lightpack/strobe-state/state</property>
|
||||
<value>-1</value>
|
||||
</product>
|
||||
<sum>
|
||||
<max>
|
||||
<product>
|
||||
<pow>
|
||||
<cos><property>/sim/time/sun-angle-rad</property></cos>
|
||||
<value>0.3</value>
|
||||
</pow>
|
||||
<value>0.5</value> <!-- by tuning this, you specify how much to fade during full daylight -->
|
||||
</product>
|
||||
<value>0</value>
|
||||
</max>
|
||||
<value>-1</value>
|
||||
</sum>
|
||||
<value>-1</value>
|
||||
</product>
|
||||
<value>1</value>
|
||||
</sum>
|
||||
</expression>
|
||||
</animation>
|
||||
|
||||
<effect>
|
||||
<inherits-from>Effects/model-transparent</inherits-from>
|
||||
<condition>
|
||||
<property>/sim/rendering/rembrandt/enabled</property>
|
||||
</condition>
|
||||
<object-name>Light</object-name>
|
||||
</effect>
|
||||
|
||||
<animation>
|
||||
<type>noshadow</type>
|
||||
<object-name>Light</object-name>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>alpha-test</type>
|
||||
<alpha-factor>0.01</alpha-factor>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>billboard</type>
|
||||
<object-name>Light</object-name>
|
||||
<spherical type="bool">true</spherical>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>material</type>
|
||||
<object-name>Light</object-name>
|
||||
<emission>
|
||||
<red> 1.0 </red>
|
||||
<green> 1.0 </green>
|
||||
<blue> 1.0 </blue>
|
||||
</emission>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>dist-scale</type>
|
||||
<object-name>Light</object-name>
|
||||
<interpolation>
|
||||
<entry><ind> 0 </ind><dep> 0.50 </dep></entry>
|
||||
<entry><ind> 20 </ind><dep> 1.00 </dep></entry>
|
||||
<entry><ind> 1500 </ind><dep> 10.00 </dep></entry>
|
||||
</interpolation>
|
||||
<center> <!-- prevent the light from moving forward, obscuring eg. landing lights (the model is offset from center) -->
|
||||
<x-m>0</x-m>
|
||||
<y-m>-0.24</y-m>
|
||||
<z-m>0</z-m>
|
||||
</center>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,81 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>Light-flash.ac</path>
|
||||
|
||||
<effect>
|
||||
<inherits-from>Effects/model-transparent</inherits-from>
|
||||
<condition>
|
||||
<property>/sim/rendering/rembrandt/enabled</property>
|
||||
</condition>
|
||||
<object-name>flash</object-name>
|
||||
</effect>
|
||||
|
||||
<animation>
|
||||
<object-name>flash</object-name>
|
||||
<attach>world</attach>
|
||||
<placer>
|
||||
<type>point</type>
|
||||
</placer>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>noshadow</type>
|
||||
<object-name>flash</object-name>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>flash</type>
|
||||
<object-name>flash</object-name>
|
||||
<center>
|
||||
<x-m> 0.000 </x-m>
|
||||
<y-m> 0.000 </y-m>
|
||||
<z-m> 0.000 </z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x> -1 </x>
|
||||
<y> 0 </y>
|
||||
<z> 0 </z>
|
||||
</axis>
|
||||
<power>15</power>
|
||||
<factor>0.3</factor>
|
||||
<offset>0</offset>
|
||||
<two-sides type="bool">false</two-sides>
|
||||
<min>0.0</min>
|
||||
<max>1</max>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>scale</type>
|
||||
<object-name>flash</object-name>
|
||||
<property>lightpack/taxi-light-intensity</property>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>material</type>
|
||||
<object-name>flash</object-name>
|
||||
<emission>
|
||||
<red> 1.0 </red>
|
||||
<green> 1.0 </green>
|
||||
<blue> 0.75 </blue>
|
||||
</emission>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>dist-scale</type>
|
||||
<object-name>flash</object-name>
|
||||
<interpolation>
|
||||
<entry>
|
||||
<ind>0</ind><dep>2</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>20</ind><dep>2</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>1500</ind><dep>4</dep>
|
||||
</entry>
|
||||
</interpolation>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,89 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>WhiteLight-flat.ac</path>
|
||||
|
||||
<offsets>
|
||||
<heading-deg>-90</heading-deg>
|
||||
</offsets>
|
||||
|
||||
<animation>
|
||||
<type>blend</type>
|
||||
<expression>
|
||||
<sum>
|
||||
<product>
|
||||
<product>
|
||||
<property>lightpack/white-light-intensity</property>
|
||||
<value>-1</value>
|
||||
</product>
|
||||
<sum>
|
||||
<max>
|
||||
<product>
|
||||
<pow>
|
||||
<cos><property>/sim/time/sun-angle-rad</property></cos>
|
||||
<value>0.3</value>
|
||||
</pow>
|
||||
<value>0.8</value> <!-- by tuning this, you specify how much to fade during full daylight -->
|
||||
</product>
|
||||
<value>0</value>
|
||||
</max>
|
||||
<value>-1</value>
|
||||
</sum>
|
||||
<value>-1</value>
|
||||
</product>
|
||||
<value>1</value>
|
||||
</sum>
|
||||
</expression>
|
||||
</animation>
|
||||
|
||||
<effect>
|
||||
<inherits-from>Effects/model-transparent</inherits-from>
|
||||
<condition>
|
||||
<property>/sim/rendering/rembrandt/enabled</property>
|
||||
</condition>
|
||||
<object-name>Light</object-name>
|
||||
</effect>
|
||||
|
||||
<animation>
|
||||
<type>noshadow</type>
|
||||
<object-name>Light</object-name>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>alpha-test</type>
|
||||
<alpha-factor>0.01</alpha-factor>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>billboard</type>
|
||||
<object-name>Light</object-name>
|
||||
<spherical type="bool">true</spherical>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>material</type>
|
||||
<object-name>Light</object-name>
|
||||
<emission>
|
||||
<red> 1.0 </red>
|
||||
<green> 1.0 </green>
|
||||
<blue> 1.0 </blue>
|
||||
</emission>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>dist-scale</type>
|
||||
<object-name>Light</object-name>
|
||||
<interpolation>
|
||||
<entry><ind> 0 </ind><dep> 0.375 </dep></entry>
|
||||
<entry><ind> 20 </ind><dep> 0.75 </dep></entry>
|
||||
<entry><ind> 1500 </ind><dep> 3.00 </dep></entry>
|
||||
</interpolation>
|
||||
<center> <!-- prevent the light from moving forward, obscuring eg. landing lights (the model is offset from center) -->
|
||||
<x-m>0</x-m>
|
||||
<y-m>-0.24</y-m>
|
||||
<z-m>0</z-m>
|
||||
</center>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,25 @@
|
||||
AC3Db
|
||||
MATERIAL "DefaultWhite" rgb 1.0000 1.0000 1.0000 amb 0.2000 0.2000 0.2000 emis 0.0000 0.0000 0.0000 spec 0.5000 0.5000 0.5000 shi 10 trans 0.0000
|
||||
MATERIAL "DefaultWhite" rgb 1.0000 1.0000 1.0000 amb 1.0000 1.0000 1.0000 emis 0.0000 0.0000 0.0000 spec 0.0800 0.0800 0.0800 shi 50 trans 0.0000
|
||||
OBJECT world
|
||||
name "Blender_export__GreenLight-flat2.ac"
|
||||
kids 1
|
||||
OBJECT poly
|
||||
name "Light"
|
||||
loc 0.0154000 0.0000000 0.2400000
|
||||
texture "lights.png"
|
||||
texrep 1 1
|
||||
numvert 4
|
||||
0.5000000 0.5000000 0.0000000
|
||||
-0.5000000 0.5000000 0.0000000
|
||||
-0.5000000 -0.5000000 0.0000000
|
||||
0.5000000 -0.5000000 0.0000000
|
||||
numsurf 1
|
||||
SURF 0X20
|
||||
mat 1
|
||||
refs 4
|
||||
0 0.448961 0.948961
|
||||
1 0.063538 0.948961
|
||||
2 0.063538 0.557538
|
||||
3 0.448961 0.557538
|
||||
kids 0
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<model>
|
||||
<name>GreenLightFlare</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/Flares/GreenLight-flare.xml</path>
|
||||
</model>
|
||||
|
||||
<model>
|
||||
<name>GreenLightRemb</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/Rembrandt/GreenLight-remb.xml</path>
|
||||
</model>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>GreenLightFlare</object-name>
|
||||
<object-name>GreenLightRemb</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<property>lightpack/nav-lights-intensity</property>
|
||||
<not><property>sim/crashed</property></not>
|
||||
</and>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<model>
|
||||
<name>LandingLightFlash</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/Flares/LandingLight-flash.xml</path>
|
||||
</model>
|
||||
|
||||
<model>
|
||||
<name>LandingLightRemb</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/Rembrandt/LandingLight-remb.xml</path>
|
||||
</model>
|
||||
|
||||
<!--><model>
|
||||
<name>LandingLightCone</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/LightCone/LandingLight-cone.xml</path>
|
||||
</model><--> <!-- uncomment for fake non-rembrandt cones -->
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>LandingLightFlash</object-name>
|
||||
<object-name>LandingLightRemb</object-name>
|
||||
<!--><object-name>LandingLightCone</object-name><--> <!-- uncomment for fake non-rembrandt cones -->
|
||||
<condition>
|
||||
<and>
|
||||
<property>lightpack/landing-lights-intensity</property>
|
||||
<not><property>sim/crashed</property></not>
|
||||
</and>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>LightCone.ac</path>
|
||||
|
||||
<animation>
|
||||
<type>blend</type>
|
||||
<expression>
|
||||
<sum>
|
||||
<product>
|
||||
<product>
|
||||
<property>lightpack/landing-lights-intensity</property>
|
||||
<value>-1</value>
|
||||
</product>
|
||||
<sum>
|
||||
<max>
|
||||
<pow>
|
||||
<cos><property>/sim/time/sun-angle-rad</property></cos>
|
||||
<value>0.3</value>
|
||||
</pow>
|
||||
<value>0</value>
|
||||
</max>
|
||||
<value>-1.8</value>
|
||||
</sum>
|
||||
<value>-0.2</value>
|
||||
</product>
|
||||
<value>1</value>
|
||||
</sum>
|
||||
</expression>
|
||||
</animation>
|
||||
|
||||
<effect>
|
||||
<inherits-from>Effects/light-cone</inherits-from>
|
||||
<object-name>Cone</object-name>
|
||||
</effect>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>Cone</object-name>
|
||||
<object-name>Cone-texture</object-name>
|
||||
<object-name>Light</object-name>
|
||||
<condition>
|
||||
<not><property>/sim/rendering/rembrandt/enabled</property></not>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>LightCone.ac</path>
|
||||
|
||||
<animation>
|
||||
<type>blend</type>
|
||||
<expression>
|
||||
<sum>
|
||||
<product>
|
||||
<product>
|
||||
<property>lightpack/taxi-light-intensity</property>
|
||||
<value>-1</value>
|
||||
</product>
|
||||
<sum>
|
||||
<max>
|
||||
<pow>
|
||||
<cos><property>/sim/time/sun-angle-rad</property></cos>
|
||||
<value>0.3</value>
|
||||
</pow>
|
||||
<value>0</value>
|
||||
</max>
|
||||
<value>-1.8</value>
|
||||
</sum>
|
||||
<value>-0.2</value>
|
||||
</product>
|
||||
<value>1</value>
|
||||
</sum>
|
||||
</expression>
|
||||
</animation>
|
||||
|
||||
<effect>
|
||||
<inherits-from>Effects/light-cone</inherits-from>
|
||||
<object-name>Cone</object-name>
|
||||
</effect>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>Cone</object-name>
|
||||
<object-name>Cone-texture</object-name>
|
||||
<object-name>Light</object-name>
|
||||
<condition>
|
||||
<not><property>/sim/rendering/rembrandt/enabled</property></not>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
@@ -0,0 +1,157 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<!-- nav lights -->
|
||||
<!-- green and red navigation lights, usually mounted on the wingtips -->
|
||||
<!-- note: default orientation is up -->
|
||||
|
||||
<model>
|
||||
<name>GreenLight</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/GreenLight.xml</path>
|
||||
<offsets>
|
||||
<x-m> 0.2146</x-m>
|
||||
<y-m> 9.2889</y-m>
|
||||
<z-m> 0.4382</z-m>
|
||||
<roll-deg>-90</roll-deg>
|
||||
<pitch-deg>-5</pitch-deg> <!-- due to roll, this tunes heading - I want it to point 5 deg more forward -->
|
||||
</offsets>
|
||||
</model>
|
||||
|
||||
<model>
|
||||
<name>RedLight</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/RedLight.xml</path>
|
||||
<offsets>
|
||||
<x-m> 0.2146</x-m>
|
||||
<y-m>-9.2889</y-m>
|
||||
<z-m> 0.4382</z-m>
|
||||
<roll-deg>90</roll-deg>
|
||||
<pitch-deg>-5</pitch-deg> <!-- due to roll, this tunes heading - I want it to point 5 deg more forward -->
|
||||
</offsets>
|
||||
</model>
|
||||
|
||||
<!-- beacon -->
|
||||
<!-- bright red flashing light -->
|
||||
<!-- note: default orientation is up -->
|
||||
|
||||
<model>
|
||||
<name>Beacon1</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/Beacon.xml</path>
|
||||
<offsets>
|
||||
<x-m>2.9797</x-m>
|
||||
<y-m>0.0000</y-m>
|
||||
<z-m>1.4505</z-m>
|
||||
<pitch-deg>6</pitch-deg>
|
||||
</offsets>
|
||||
</model>
|
||||
|
||||
<!-- landing lights -->
|
||||
<!-- a powerful front facing spotlight -->
|
||||
<!--
|
||||
<model>
|
||||
<name>LandingLight1</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/LandingLight.xml</path>
|
||||
<offsets>
|
||||
<x-m>-1.7680</x-m>
|
||||
<y-m>4.7054</y-m>
|
||||
<z-m>-0.7316</z-m>
|
||||
<pitch-deg>-5.7</pitch-deg>
|
||||
</offsets>
|
||||
</model>
|
||||
|
||||
<model>
|
||||
<name>LandingLight2</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/LandingLight.xml</path>
|
||||
<offsets>
|
||||
<x-m>-1.7680</x-m>
|
||||
<y-m>-4.688</y-m>
|
||||
<z-m>-0.7293</z-m>
|
||||
<pitch-deg>-5.7</pitch-deg>
|
||||
</offsets>
|
||||
</model>
|
||||
-->
|
||||
<!-- taxi light -->
|
||||
<!-- a weaker front facing spotlight, often mounted on the front gear -->
|
||||
<!--
|
||||
<model>
|
||||
<name>TaxiLight</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/TaxiLight.xml</path>
|
||||
<offsets>
|
||||
<x-m>-4.5571</x-m>
|
||||
<y-m>0.01601</y-m>
|
||||
<z-m>-1.6480</z-m>
|
||||
<pitch-deg>-1.5</pitch-deg>
|
||||
</offsets>
|
||||
</model>
|
||||
-->
|
||||
<!-- front gear turning: include TaxiLight in the list of animated objects in the rotate animation of the gear in the top-level model XML file -->
|
||||
<!-- retracted gear makes it dissapear - use only if mounted on front gear -->
|
||||
<!--
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>TaxiLight</object-name>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>gear/gear[0]/position-norm</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</condition>
|
||||
</animation>
|
||||
-->
|
||||
<!-- probe light -->
|
||||
<!-- this is best included in the probe model xml file, not here - just an example -->
|
||||
<!-- if you have an extendable/optional fuel probe, including this in its own model file makes sure the light moves/disappears together with the probe -->
|
||||
<!-- in case of extendable probe, you might want to add a select animation (to turn off the light when not fully extended), similar as for the taxi light on the front gear -->
|
||||
<!--><model>
|
||||
<path>Aircraft/MQ-9/Models/Lights/ProbeLight.xml</path>
|
||||
<offsets>
|
||||
<x-m>-4.4867</x-m>
|
||||
<y-m>0.4922</y-m>
|
||||
<z-m>-0.4929</z-m>
|
||||
</offsets>
|
||||
</model><-->
|
||||
|
||||
<!-- strobes -->
|
||||
<!-- a bright briefly flashing white light -->
|
||||
<!-- note: default orientation is up -->
|
||||
|
||||
<model>
|
||||
<name>Strobe1</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/Strobe.xml</path>
|
||||
<offsets>
|
||||
<x-m> 0.3993</x-m>
|
||||
<y-m> 9.3400</y-m>
|
||||
<z-m> 0.4433</z-m>
|
||||
<roll-deg>-90</roll-deg>
|
||||
<pitch-deg>-3</pitch-deg> <!-- due to roll, this tunes heading - I want it to point 3 deg more forward -->
|
||||
</offsets>
|
||||
</model>
|
||||
|
||||
<model>
|
||||
<name>Strobe2</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/Strobe.xml</path>
|
||||
<offsets>
|
||||
<x-m> 0.3993</x-m>
|
||||
<y-m>-9.3400</y-m>
|
||||
<z-m> 0.4433</z-m>
|
||||
<roll-deg>90</roll-deg>
|
||||
<pitch-deg>-3</pitch-deg> <!-- due to roll, this tunes heading - I want it to point 3 deg more forward -->
|
||||
</offsets>
|
||||
</model>
|
||||
|
||||
<!-- white light -->
|
||||
<!-- a white stable light, usually used as a visibility feature on the tail -->
|
||||
<!-- note: default orientation is up -->
|
||||
<!--
|
||||
<model>
|
||||
<name>WhiteLight</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/WhiteLight.xml</path>
|
||||
<offsets>
|
||||
<x-m>5.81421</x-m>
|
||||
<y-m>0.00868</y-m>
|
||||
<z-m>2.78899</z-m>
|
||||
<pitch-deg>93</pitch-deg>
|
||||
</offsets>
|
||||
</model>
|
||||
-->
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<model>
|
||||
<name>ProbeLightFlash</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/Flares/ProbeLight-flash.xml</path>
|
||||
</model>
|
||||
|
||||
<model>
|
||||
<name>ProbeLightRemb</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/Rembrandt/ProbeLight-remb.xml</path>
|
||||
</model>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>ProbeLightFlash</object-name>
|
||||
<object-name>ProbeLightRemb</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<property>lightpack/probe-light-intensity</property>
|
||||
<not><property>sim/crashed</property></not>
|
||||
</and>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,155 @@
|
||||
|
||||
=== COMBINED REMBRANDT/NON REMBRANDT LIGHTING KIT ===
|
||||
by FGUK.eu
|
||||
|
||||
This lighting kit lets you easily add both Rembrandt and non Rembrandt external lighting to an aircraft only by including the base pack XML and editing the coordinates there. This pack heavily depends on the Nasal script which is included both as a standalone script file (for direct inclusion in the aircrafts -set.xml file) and also in the multiplayer code inside the aircraft model xml file (in the <nasal></nasal> tags).
|
||||
The XML files contained in this archive contain an auto switching code to change between Rembrandt and non Rembrandt lighting. Fake non Rembrandt light cones are included, but commented out by default (see files Lights/LandingLight.xml and Lights/TaxiLight.xml).
|
||||
Flares, fake cones and Rembrandt lights properly fade out in daylight.
|
||||
IMPORTANT NOTE: once applied to an aircraft, it will be compatible with FlightGear versions 2.11+ only.
|
||||
|
||||
Some of the Rembrandt light features show only with the light shader being set high enough (landing, taxi >0, nav lights, beacon and other external lights >1).
|
||||
|
||||
|
||||
=== INSTRUCTIONS ===
|
||||
|
||||
IMPORTANT: You don't need to go through any other files than explicitly mentioned in this readme. Multiplayer support is handled by Nasal code mirroring the multiplayer transferred properties to their original counterparts. Don't include any properties like sim/multiplay/generic/int[3] anywhere else than in the variables specially designed for this in the Nasal code. All the output properties (written to by Nasal) are placed in the node "/lightpack" and are not supposed to be changed.
|
||||
|
||||
|
||||
You only need to embed one xml file in your aircraft model xml: LightPack.xml
|
||||
Most further editing will take place in that file. Include it in your aircraft model file like this:
|
||||
|
||||
<!-- LIGHTS -->
|
||||
<model>
|
||||
<name>LightPack</name>
|
||||
<path>Aircraft/YOURAIRCRAFT/Models/Lights/LightPack.xml</path>
|
||||
</model>
|
||||
|
||||
In this file, all the light files (which are themselves including the Rembrandt, flare, etc. model files) are referenced.
|
||||
Modify the coordinates of placement of the lights here. Follow any instructions in comments.
|
||||
|
||||
|
||||
Place the folder "Lights" in the folder "Models" in your aircraft base folder. The capital letter on the start (both Lights and Models) matters - if you change the letter case, all the xml files will fail to load on other systems than Windows (Windows does not have case sensitive paths, other systems usually have).
|
||||
If you already have your Models folder with lowercase m (or any other name change), you will need to change this in all the paths where you changed the YOURAIRCRAFT string to the aircraft base folder name (list of the files follows later in this readme).
|
||||
Note that this pack cannot handle material animations on your aircraft parts (reflectors of landing lights, nav lights models etc.). If desired, you need to include them in your aircraft's model file. Chances are you already have these done, in this case you only need to change the properties they depend on. The properties for this are:
|
||||
|
||||
lightpack/nav-lights-intensity
|
||||
lightpack/beacon-state/state
|
||||
lightpack/strobe-state/state
|
||||
lightpack/landing-lights-intensity
|
||||
lightpack/taxi-light-intensity
|
||||
lightpack/probe-light-intensity
|
||||
lightpack/white-light-intensity
|
||||
|
||||
The names are self-explanatory. Use these properties, not the switch properties - these properties are nicely interpolated when turned on/off etc.
|
||||
As will be explained later, they are also the only properties that guarantee multiplayer support (they are manipulated exclusively by Nasal).
|
||||
|
||||
|
||||
You will need to replace all occurrences of YOURAIRCRAFT string in paths with your aircraft base folder name. This needs to be done in the following files:
|
||||
|
||||
TaxiLight.xml
|
||||
RedLight.xml
|
||||
LandingLight.xml
|
||||
WhiteLight.xml
|
||||
Strobe.xml
|
||||
LightPack.xml
|
||||
Beacon.xml
|
||||
ProbeLight.xml
|
||||
GreenLight.xml
|
||||
|
||||
Those are just all the files in the base folder, there is no other file where you need to do this. You can easily use mass search and replace with your favorite text editor.
|
||||
|
||||
|
||||
You need to add the file Lights.nas to your aircraft's folder with Nasal scripts and reference it in your Aircraft-set.xml file, like this:
|
||||
|
||||
<nasal>
|
||||
<!-- other Nasal includes -->
|
||||
<lights>
|
||||
<file>Aircraft/YOURAIRCRAFT/Nasal/Lights.nas</file>
|
||||
</lights>
|
||||
<!-- other Nasal includes -->
|
||||
</nasal>
|
||||
|
||||
You need to edit some simple property bindings in this file. On the beginning of the file, you will see these lines:
|
||||
|
||||
#list of switches for lights - if you don't intend to use some light, assign it nil value instead, like whateverSwitch = nil; and you don't need to care about anything else
|
||||
var navSwitch = "/controls/lighting/nav-lights-switch";
|
||||
var beaconSwitch = "/controls/lighting/beacon-switch";
|
||||
var strobeSwitch = "/controls/lighting/strobe-switch";
|
||||
var landingSwitch = "/controls/lighting/landing-lights-switch";
|
||||
var taxiSwitch = "/controls/lighting/taxi-light-switch";
|
||||
var probeSwitch = "/controls/lighting/probe-light-switch";
|
||||
var whiteSwitch = "/controls/lighting/white-light-switch";
|
||||
|
||||
Edit those property bindings. They are used as a boolean on/off switch and are supposed to be MP transferred by binding them to the MP trasferred integers. You can set those properties as you wish, according to your current switch setup.
|
||||
If you don't want to use some of the lights provided at all, just assign a nil value here instead of the string:
|
||||
|
||||
var whateverSwitch = nil;
|
||||
|
||||
The code handles this properly and doesn't create the output property for it. It's not entirely necessary, but preferred to delete/comment out any of the unused lights in the file LightPack.xml
|
||||
|
||||
|
||||
Now you are one last step from the finish. All that is left is to add a multiplayer support.
|
||||
As mentioned in the Nasal part, the on/off switch properties are expected to be bound to MP transferred properties. You need to embed a Nasal code in your aircraft's model xml file, between the <nasal></nasal> tags. The code is too long to be included here (>90% is the same as in Lights.nas), find the code in the file YOURAIRCRAFT.xml
|
||||
You will find there part very similar to the previous switches bindings in the local Nasal:
|
||||
|
||||
#list of switches for lights - if you don't intend to use some light, assign it nil value instead, like whateverSwitch = nil; and you don't need to care about anything else
|
||||
#IMPORTANT: don't put / on the start of the string, it's already included in the mpPath property
|
||||
var navSwitch = mpPath~"controls/lighting/nav-lights-switch";
|
||||
var beaconSwitch = mpPath~"controls/lighting/beacon-switch";
|
||||
var strobeSwitch = mpPath~"controls/lighting/strobe-switch";
|
||||
var landingSwitch = mpPath~"controls/lighting/landing-lights-switch";
|
||||
var taxiSwitch = mpPath~"controls/lighting/taxi-light-switch";
|
||||
var probeSwitch = mpPath~"controls/lighting/probe-light-switch";
|
||||
var whiteSwitch = mpPath~"controls/lighting/white-light-switch";
|
||||
|
||||
You need to put there the same property paths as before, but now the string is appended to a previously generated MP prefix. Don't include the leading slash, it is in the prefix already. It is crucial those bindings are the same as in the local Nasal.
|
||||
|
||||
You also need to specify the MP properties used for transfer, so Nasal knows which MP property should be watched and mirrored to which original property. Look for a chunk of code looking like this:
|
||||
|
||||
#init any property copy object needed in this array (anything you need to transfer over MP, but you are using the original paths in your xmls)
|
||||
#also used for properties you are using a listener on, or properties which you maybe want to manipulate during the <unload>
|
||||
#if you're just using the pack, change the values according to the MP bindings in the -set.xml file
|
||||
#you don't need to delete the entries if the path is nil - it gets skipped automatically and the MP path is just ignored
|
||||
var mirrorValues = [
|
||||
mpVar.new(mpPath~"sim/multiplay/generic/int[7]", mpPath~"sim/crashed"),
|
||||
mpVar.new(mpPath~"sim/multiplay/generic/int[0]", navSwitch),
|
||||
mpVar.new(mpPath~"sim/multiplay/generic/int[1]", beaconSwitch),
|
||||
mpVar.new(mpPath~"sim/multiplay/generic/int[1]", strobeSwitch),
|
||||
mpVar.new(mpPath~"sim/multiplay/generic/int[2]", landingSwitch),
|
||||
mpVar.new(mpPath~"sim/multiplay/generic/int[3]", taxiSwitch),
|
||||
mpVar.new(mpPath~"sim/multiplay/generic/int[3]", probeSwitch),
|
||||
mpVar.new(mpPath~"sim/multiplay/generic/int[0]", whiteSwitch),
|
||||
];
|
||||
|
||||
Here you see the previously assembled strings. You don't need to care about those at all - just change the number in the square brackets to whatever is the index of the MP property that represents the property on the right. It is essential that this is paired in exactly the same way as the properties are assigned in your -set file.
|
||||
If you assigned nil to some switch, you don't need to care about the line where it is used. It just gets ignored, so the index doesn't matter.
|
||||
If you want to add any light unrelated property to the copy mechanism, just add a new line in the array, following the same pattern.
|
||||
|
||||
|
||||
And that's it, you just got yourself a brand new and awesome lighting effects :)
|
||||
|
||||
|
||||
|
||||
=== FURTHER TUNING ===
|
||||
|
||||
If you want to have the navigation lights use nice periodically fading behavior instead of being continuously on when the switch is on, change the line just below the switch property path assignments in the file Lights.nas:
|
||||
|
||||
#switch this from 1 to 0 if you want to use advanced cyclical fading animation of the the nav lights instead of being stable on when the switch is on
|
||||
navStillOn = 1;
|
||||
|
||||
This doesn't mean they are on all the time, they still depend on the switch property. They just don't perform periodical fade-in-out animation when the value is 1.
|
||||
Change it in the MP support Nasal code in your aircraft model xml file as well.
|
||||
In case you use the fading animation, you can easily change the duration of the phases just after line 80 in Lights.nas. Of course equivalent change needs to be done in the MP code as well.
|
||||
|
||||
|
||||
If you want the landing and taxi lights switches bound to the landing gear, change this line below the switch property path assignments in the file Lights.nas:
|
||||
|
||||
#switch this from 0 to 1 if you want to bind the landing and taxi lights to the landing gear
|
||||
gearBind = 0;
|
||||
|
||||
This again handles the nil values correctly if you're not using one of the lights.
|
||||
|
||||
|
||||
If you want to tune the lights, like setting custom animation times, read through the Nasal, there are comments explaining the variables. The code uses object-oriented approach - don't edit the class implementation! Only assign the values to the members of the created objects. You will need to do this in both the local and the model-embedded Nasal code, but don't be afraid, thanks to a good design they are identical (except for the first few lines needed to set up the environment).
|
||||
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<model>
|
||||
<name>RedLightFlare</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/Flares/RedLight-flare.xml</path>
|
||||
</model>
|
||||
|
||||
<model>
|
||||
<name>RedLightRemb</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/Rembrandt/RedLight-remb.xml</path>
|
||||
</model>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>RedLightFlare</object-name>
|
||||
<object-name>RedLightRemb</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<property>lightpack/nav-lights-intensity</property>
|
||||
<not><property>sim/crashed</property></not>
|
||||
</and>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,86 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>HalfSphere.ac</path>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>Sphere</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<property>/sim/rendering/rembrandt/enabled</property>
|
||||
<greater-than>
|
||||
<property>/sim/rendering/shaders/lights</property>
|
||||
<value>1</value>
|
||||
</greater-than>
|
||||
</and>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>light</type>
|
||||
<light-type>spot</light-type>
|
||||
<name>BeaconR</name>
|
||||
<object-name>Sphere</object-name>
|
||||
<nopreview/>
|
||||
<position>
|
||||
<x>0.0</x>
|
||||
<y>0.0</y>
|
||||
<z>0.0</z>
|
||||
</position>
|
||||
<direction>
|
||||
<x>0.0</x>
|
||||
<y>0.0</y>
|
||||
<z>1.0</z>
|
||||
</direction>
|
||||
<ambient>
|
||||
<r>0.03</r>
|
||||
<g>0.01</g>
|
||||
<b>0.01</b>
|
||||
<a>1.0</a>
|
||||
</ambient>
|
||||
<diffuse>
|
||||
<r>0.80</r>
|
||||
<g>0.10</g>
|
||||
<b>0.10</b>
|
||||
<a>1.0</a>
|
||||
</diffuse>
|
||||
<specular>
|
||||
<r>1.00</r>
|
||||
<g>0.20</g>
|
||||
<b>0.20</b>
|
||||
<a>1.0</a>
|
||||
</specular>
|
||||
<dim-factor>
|
||||
<expression>
|
||||
<product>
|
||||
<value>-1</value>
|
||||
<sum>
|
||||
<product>
|
||||
<max>
|
||||
<pow>
|
||||
<cos><property>/sim/time/sun-angle-rad</property></cos>
|
||||
<value>0.3</value>
|
||||
</pow>
|
||||
<value>0</value>
|
||||
</max>
|
||||
<value>0.6</value>
|
||||
</product>
|
||||
<value>-1</value>
|
||||
</sum>
|
||||
</product>
|
||||
</expression>
|
||||
</dim-factor>
|
||||
<attenuation>
|
||||
<c>1.0</c>
|
||||
<l>0.05</l>
|
||||
<q>0.1</q>
|
||||
</attenuation>
|
||||
<exponent>0.5</exponent>
|
||||
<cutoff>90</cutoff>
|
||||
<near-m>0.001</near-m>
|
||||
<far-m>30</far-m>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,87 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>HalfSphere.ac</path>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>Sphere</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<property>/sim/rendering/rembrandt/enabled</property>
|
||||
<greater-than>
|
||||
<property>/sim/rendering/shaders/lights</property>
|
||||
<value>1</value>
|
||||
</greater-than>
|
||||
</and>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>light</type>
|
||||
<light-type>spot</light-type>
|
||||
<name>GreenLightR</name>
|
||||
<object-name>Sphere</object-name>
|
||||
<nopreview/>
|
||||
<position>
|
||||
<x>0.0</x>
|
||||
<y>0.0</y>
|
||||
<z>0.0</z>
|
||||
</position>
|
||||
<direction>
|
||||
<x>0.0</x>
|
||||
<y>0.0</y>
|
||||
<z>1.0</z>
|
||||
</direction>
|
||||
<ambient>
|
||||
<r>0.01</r>
|
||||
<g>0.03</g>
|
||||
<b>0.01</b>
|
||||
<a>1.0</a>
|
||||
</ambient>
|
||||
<diffuse>
|
||||
<r>0.20</r>
|
||||
<g>0.80</g>
|
||||
<b>0.20</b>
|
||||
<a>1.0</a>
|
||||
</diffuse>
|
||||
<specular>
|
||||
<r>0.30</r>
|
||||
<g>1.00</g>
|
||||
<b>0.30</b>
|
||||
<a>1.0</a>
|
||||
</specular>
|
||||
<dim-factor>
|
||||
<expression>
|
||||
<product>
|
||||
<property>lightpack/nav-lights-intensity</property>
|
||||
<value>-0.35</value>
|
||||
<sum>
|
||||
<product>
|
||||
<max>
|
||||
<pow>
|
||||
<cos><property>/sim/time/sun-angle-rad</property></cos>
|
||||
<value>0.3</value>
|
||||
</pow>
|
||||
<value>0</value>
|
||||
</max>
|
||||
<value>1.2</value>
|
||||
</product>
|
||||
<value>-1</value>
|
||||
</sum>
|
||||
</product>
|
||||
</expression>
|
||||
</dim-factor>
|
||||
<attenuation>
|
||||
<c>1.0</c>
|
||||
<l>0.05</l>
|
||||
<q>0.01</q>
|
||||
</attenuation>
|
||||
<exponent>0.65</exponent>
|
||||
<cutoff>90</cutoff>
|
||||
<near-m>0.001</near-m>
|
||||
<far-m>30</far-m>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,326 @@
|
||||
AC3Db
|
||||
MATERIAL "DefaultWhite" rgb 1.0000 1.0000 1.0000 amb 0.2000 0.2000 0.2000 emis 0.0000 0.0000 0.0000 spec 0.5000 0.5000 0.5000 shi 10 trans 0.0000
|
||||
MATERIAL "DefaultWhite" rgb 1.0000 1.0000 1.0000 amb 0.2000 0.2000 0.2000 emis 0.0000 0.0000 0.0000 spec 0.0500 0.0500 0.0500 shi 50 trans 0.0000
|
||||
OBJECT world
|
||||
name "Blender_export__HalfSphere.ac"
|
||||
kids 1
|
||||
OBJECT poly
|
||||
name "Sphere"
|
||||
loc 0.0000000 0.0000000 0.0000000
|
||||
numvert 26
|
||||
8.2916403 13.4165955 25.5194778
|
||||
20.6456814 15.7720861 14.9999075
|
||||
4.8736668 25.5196304 14.9998579
|
||||
-7.8860645 15.7721291 24.2703495
|
||||
17.6335678 0.0000000 24.2705002
|
||||
15.7718935 25.5195503 0.0000000
|
||||
-12.7596807 25.5196247 9.2703419
|
||||
0.0000000 0.0000000 29.9999981
|
||||
28.5317364 0.0000000 9.2703791
|
||||
0.0000000 30.0000000 0.0000000
|
||||
26.8327866 13.4164686 0.0000000
|
||||
-21.7082195 13.4165859 15.7717590
|
||||
-17.6335678 0.0000000 24.2705002
|
||||
4.8736668 25.5196304 -14.9998579
|
||||
20.6456814 15.7720861 -14.9999075
|
||||
-12.7596807 25.5196247 -9.2703419
|
||||
-25.5194359 15.7720776 0.0000000
|
||||
28.5317364 0.0000000 -9.2703791
|
||||
-28.5317364 0.0000000 9.2703791
|
||||
8.2916403 13.4165955 -25.5194778
|
||||
-7.8860645 15.7721291 -24.2703495
|
||||
17.6335678 0.0000000 -24.2705002
|
||||
-21.7082195 13.4165859 -15.7717590
|
||||
-28.5317364 0.0000000 -9.2703791
|
||||
0.0000000 0.0000000 -29.9999981
|
||||
-17.6335678 0.0000000 -24.2705002
|
||||
numsurf 48
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
0 0 0
|
||||
1 0 0
|
||||
2 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
3 0 0
|
||||
0 0 0
|
||||
2 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
4 0 0
|
||||
1 0 0
|
||||
0 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
2 0 0
|
||||
1 0 0
|
||||
5 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
6 0 0
|
||||
3 0 0
|
||||
2 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
7 0 0
|
||||
0 0 0
|
||||
3 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
7 0 0
|
||||
4 0 0
|
||||
0 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
4 0 0
|
||||
8 0 0
|
||||
1 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
2 0 0
|
||||
5 0 0
|
||||
9 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
1 0 0
|
||||
10 0 0
|
||||
5 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
6 0 0
|
||||
2 0 0
|
||||
9 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
11 0 0
|
||||
3 0 0
|
||||
6 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
12 0 0
|
||||
7 0 0
|
||||
3 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
8 0 0
|
||||
10 0 0
|
||||
1 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
5 0 0
|
||||
13 0 0
|
||||
9 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
10 0 0
|
||||
14 0 0
|
||||
5 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
15 0 0
|
||||
6 0 0
|
||||
9 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
16 0 0
|
||||
11 0 0
|
||||
6 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
12 0 0
|
||||
3 0 0
|
||||
11 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
8 0 0
|
||||
17 0 0
|
||||
10 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
5 0 0
|
||||
14 0 0
|
||||
13 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
13 0 0
|
||||
15 0 0
|
||||
9 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
17 0 0
|
||||
14 0 0
|
||||
10 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
15 0 0
|
||||
16 0 0
|
||||
6 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
18 0 0
|
||||
11 0 0
|
||||
16 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
18 0 0
|
||||
12 0 0
|
||||
11 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
14 0 0
|
||||
19 0 0
|
||||
13 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
13 0 0
|
||||
20 0 0
|
||||
15 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
17 0 0
|
||||
21 0 0
|
||||
14 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
22 0 0
|
||||
16 0 0
|
||||
15 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
23 0 0
|
||||
18 0 0
|
||||
16 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
21 0 0
|
||||
19 0 0
|
||||
14 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
19 0 0
|
||||
20 0 0
|
||||
13 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
20 0 0
|
||||
22 0 0
|
||||
15 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
23 0 0
|
||||
16 0 0
|
||||
22 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
21 0 0
|
||||
24 0 0
|
||||
19 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
24 0 0
|
||||
20 0 0
|
||||
19 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
25 0 0
|
||||
22 0 0
|
||||
20 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
25 0 0
|
||||
23 0 0
|
||||
22 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
24 0 0
|
||||
25 0 0
|
||||
20 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
8 0 0
|
||||
4 0 0
|
||||
17 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
4 0 0
|
||||
7 0 0
|
||||
12 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
12 0 0
|
||||
18 0 0
|
||||
23 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
23 0 0
|
||||
25 0 0
|
||||
24 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
24 0 0
|
||||
21 0 0
|
||||
17 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
4 0 0
|
||||
12 0 0
|
||||
17 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
12 0 0
|
||||
23 0 0
|
||||
24 0 0
|
||||
SURF 0X0
|
||||
mat 1
|
||||
refs 3
|
||||
12 0 0
|
||||
24 0 0
|
||||
17 0 0
|
||||
kids 0
|
||||
@@ -0,0 +1,87 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>LandingLightCone.ac</path>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>light</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<property>/sim/rendering/rembrandt/enabled</property>
|
||||
<greater-than>
|
||||
<property>/sim/rendering/shaders/lights</property>
|
||||
<value>0</value>
|
||||
</greater-than>
|
||||
</and>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>light</type>
|
||||
<light-type>spot</light-type>
|
||||
<name>LandingR</name>
|
||||
<object-name>light</object-name>
|
||||
<nopreview/>
|
||||
<position>
|
||||
<x>0.0</x>
|
||||
<y>0.0</y>
|
||||
<z>0.0</z>
|
||||
</position>
|
||||
<direction>
|
||||
<x>-1.0</x>
|
||||
<y>0.0</y>
|
||||
<z>0.0</z>
|
||||
</direction>
|
||||
<ambient>
|
||||
<r>0.03</r>
|
||||
<g>0.03</g>
|
||||
<b>0.03</b>
|
||||
<a>1.0</a>
|
||||
</ambient>
|
||||
<diffuse>
|
||||
<r>0.80</r>
|
||||
<g>0.80</g>
|
||||
<b>0.70</b>
|
||||
<a>1.0</a>
|
||||
</diffuse>
|
||||
<specular>
|
||||
<r>1.00</r>
|
||||
<g>0.75</g>
|
||||
<b>0.75</b>
|
||||
<a>1.0</a>
|
||||
</specular>
|
||||
<dim-factor>
|
||||
<expression>
|
||||
<product>
|
||||
<value>-1</value>
|
||||
<sum>
|
||||
<product>
|
||||
<max>
|
||||
<pow>
|
||||
<cos><property>/sim/time/sun-angle-rad</property></cos>
|
||||
<value>0.3</value>
|
||||
</pow>
|
||||
<value>0</value>
|
||||
</max>
|
||||
<value>1.0</value>
|
||||
</product>
|
||||
<value>-1</value>
|
||||
</sum>
|
||||
<property>lightpack/landing-lights-intensity</property>
|
||||
</product>
|
||||
</expression>
|
||||
</dim-factor>
|
||||
<attenuation>
|
||||
<c>0.08</c>
|
||||
<l>0.002</l>
|
||||
<q>0.0001</q>
|
||||
</attenuation>
|
||||
<exponent>80</exponent>
|
||||
<cutoff>45</cutoff>
|
||||
<near-m>0.01</near-m>
|
||||
<far-m>550</far-m>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,88 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>ProbeLightCone.ac</path>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>light</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<property>/sim/rendering/rembrandt/enabled</property>
|
||||
<greater-than>
|
||||
<property>/sim/rendering/shaders/lights</property>
|
||||
<value>1</value>
|
||||
</greater-than>
|
||||
</and>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
|
||||
<animation>
|
||||
<type>light</type>
|
||||
<light-type>spot</light-type>
|
||||
<name>ProbeR</name>
|
||||
<object-name>light</object-name>
|
||||
<nopreview/>
|
||||
<position>
|
||||
<x>0.0</x>
|
||||
<y>0.0</y>
|
||||
<z>0.0</z>
|
||||
</position>
|
||||
<direction>
|
||||
<x>-1.0</x>
|
||||
<y>0.0</y>
|
||||
<z>0.0</z>
|
||||
</direction>
|
||||
<ambient>
|
||||
<r>0.03</r>
|
||||
<g>0.03</g>
|
||||
<b>0.03</b>
|
||||
<a>1.0</a>
|
||||
</ambient>
|
||||
<diffuse>
|
||||
<r>0.80</r>
|
||||
<g>0.80</g>
|
||||
<b>0.70</b>
|
||||
<a>1.0</a>
|
||||
</diffuse>
|
||||
<specular>
|
||||
<r>1.00</r>
|
||||
<g>0.75</g>
|
||||
<b>0.75</b>
|
||||
<a>1.0</a>
|
||||
</specular>
|
||||
<dim-factor>
|
||||
<expression>
|
||||
<product>
|
||||
<value>-1</value>
|
||||
<sum>
|
||||
<product>
|
||||
<max>
|
||||
<pow>
|
||||
<cos><property>/sim/time/sun-angle-rad</property></cos>
|
||||
<value>0.3</value>
|
||||
</pow>
|
||||
<value>0</value>
|
||||
</max>
|
||||
<value>1.0</value>
|
||||
</product>
|
||||
<value>-1</value>
|
||||
</sum>
|
||||
<property>lightpack/probe-light-intensity</property>
|
||||
</product>
|
||||
</expression>
|
||||
</dim-factor>
|
||||
<attenuation>
|
||||
<c>0.1</c>
|
||||
<l>0.002</l>
|
||||
<q>0.008</q>
|
||||
</attenuation>
|
||||
<exponent>6</exponent>
|
||||
<cutoff>70</cutoff>
|
||||
<near-m>0.04</near-m>
|
||||
<far-m>130</far-m>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,87 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>HalfSphere.ac</path>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>Sphere</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<property>/sim/rendering/rembrandt/enabled</property>
|
||||
<greater-than>
|
||||
<property>/sim/rendering/shaders/lights</property>
|
||||
<value>1</value>
|
||||
</greater-than>
|
||||
</and>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>light</type>
|
||||
<light-type>spot</light-type>
|
||||
<name>RedLightRemb</name>
|
||||
<object-name>Sphere</object-name>
|
||||
<nopreview/>
|
||||
<position>
|
||||
<x>0.0</x>
|
||||
<y>0.0</y>
|
||||
<z>0.0</z>
|
||||
</position>
|
||||
<direction>
|
||||
<x>0.0</x>
|
||||
<y>0.0</y>
|
||||
<z>1.0</z>
|
||||
</direction>
|
||||
<ambient>
|
||||
<r>0.03</r>
|
||||
<g>0.01</g>
|
||||
<b>0.01</b>
|
||||
<a>1.0</a>
|
||||
</ambient>
|
||||
<diffuse>
|
||||
<r>0.80</r>
|
||||
<g>0.20</g>
|
||||
<b>0.20</b>
|
||||
<a>1.0</a>
|
||||
</diffuse>
|
||||
<specular>
|
||||
<r>1.00</r>
|
||||
<g>0.30</g>
|
||||
<b>0.30</b>
|
||||
<a>1.0</a>
|
||||
</specular>
|
||||
<dim-factor>
|
||||
<expression>
|
||||
<product>
|
||||
<property>lightpack/nav-lights-intensity</property>
|
||||
<value>-0.35</value>
|
||||
<sum>
|
||||
<product>
|
||||
<max>
|
||||
<pow>
|
||||
<cos><property>/sim/time/sun-angle-rad</property></cos>
|
||||
<value>0.3</value>
|
||||
</pow>
|
||||
<value>0</value>
|
||||
</max>
|
||||
<value>1.2</value>
|
||||
</product>
|
||||
<value>-1</value>
|
||||
</sum>
|
||||
</product>
|
||||
</expression>
|
||||
</dim-factor>
|
||||
<attenuation>
|
||||
<c>1.0</c>
|
||||
<l>0.05</l>
|
||||
<q>0.01</q>
|
||||
</attenuation>
|
||||
<exponent>0.65</exponent>
|
||||
<cutoff>90</cutoff>
|
||||
<near-m>0.001</near-m>
|
||||
<far-m>30</far-m>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,86 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>HalfSphere.ac</path>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>Sphere</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<property>/sim/rendering/rembrandt/enabled</property>
|
||||
<greater-than>
|
||||
<property>/sim/rendering/shaders/lights</property>
|
||||
<value>1</value>
|
||||
</greater-than>
|
||||
</and>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>light</type>
|
||||
<light-type>spot</light-type>
|
||||
<name>StrobeR</name>
|
||||
<object-name>Sphere</object-name>
|
||||
<nopreview/>
|
||||
<position>
|
||||
<x>0.0</x>
|
||||
<y>0.0</y>
|
||||
<z>0.0</z>
|
||||
</position>
|
||||
<direction>
|
||||
<x>0.0</x>
|
||||
<y>0.0</y>
|
||||
<z>1.0</z>
|
||||
</direction>
|
||||
<ambient>
|
||||
<r>0.08</r>
|
||||
<g>0.08</g>
|
||||
<b>0.08</b>
|
||||
<a>1.0</a>
|
||||
</ambient>
|
||||
<diffuse>
|
||||
<r>0.80</r>
|
||||
<g>0.80</g>
|
||||
<b>0.80</b>
|
||||
<a>1.0</a>
|
||||
</diffuse>
|
||||
<specular>
|
||||
<r>1.00</r>
|
||||
<g>1.00</g>
|
||||
<b>1.10</b>
|
||||
<a>1.0</a>
|
||||
</specular>
|
||||
<dim-factor>
|
||||
<expression>
|
||||
<product>
|
||||
<value>-1</value>
|
||||
<sum>
|
||||
<product>
|
||||
<max>
|
||||
<pow>
|
||||
<cos><property>/sim/time/sun-angle-rad</property></cos>
|
||||
<value>0.3</value>
|
||||
</pow>
|
||||
<value>0</value>
|
||||
</max>
|
||||
<value>0.6</value>
|
||||
</product>
|
||||
<value>-1</value>
|
||||
</sum>
|
||||
</product>
|
||||
</expression>
|
||||
</dim-factor>
|
||||
<attenuation>
|
||||
<c>1.0</c>
|
||||
<l>0.05</l>
|
||||
<q>0.1</q>
|
||||
</attenuation>
|
||||
<exponent>0.6</exponent>
|
||||
<cutoff>90</cutoff>
|
||||
<near-m>0.001</near-m>
|
||||
<far-m>30</far-m>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,87 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>TaxiLightCone.ac</path>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>light</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<property>/sim/rendering/rembrandt/enabled</property>
|
||||
<greater-than>
|
||||
<property>/sim/rendering/shaders/lights</property>
|
||||
<value>0</value>
|
||||
</greater-than>
|
||||
</and>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>light</type>
|
||||
<light-type>spot</light-type>
|
||||
<name>TaxiR</name>
|
||||
<object-name>light</object-name>
|
||||
<nopreview/>
|
||||
<position>
|
||||
<x>0.0</x>
|
||||
<y>0.0</y>
|
||||
<z>0.0</z>
|
||||
</position>
|
||||
<direction>
|
||||
<x>-1.0</x>
|
||||
<y>0.0</y>
|
||||
<z>0.0</z>
|
||||
</direction>
|
||||
<ambient>
|
||||
<r>0.03</r>
|
||||
<g>0.03</g>
|
||||
<b>0.03</b>
|
||||
<a>1.0</a>
|
||||
</ambient>
|
||||
<diffuse>
|
||||
<r>0.80</r>
|
||||
<g>0.80</g>
|
||||
<b>0.70</b>
|
||||
<a>1.0</a>
|
||||
</diffuse>
|
||||
<specular>
|
||||
<r>1.00</r>
|
||||
<g>0.75</g>
|
||||
<b>0.75</b>
|
||||
<a>1.0</a>
|
||||
</specular>
|
||||
<dim-factor>
|
||||
<expression>
|
||||
<product>
|
||||
<value>-1</value>
|
||||
<sum>
|
||||
<product>
|
||||
<max>
|
||||
<pow>
|
||||
<cos><property>/sim/time/sun-angle-rad</property></cos>
|
||||
<value>0.3</value>
|
||||
</pow>
|
||||
<value>0</value>
|
||||
</max>
|
||||
<value>1.0</value>
|
||||
</product>
|
||||
<value>-1</value>
|
||||
</sum>
|
||||
<property>lightpack/taxi-light-intensity</property>
|
||||
</product>
|
||||
</expression>
|
||||
</dim-factor>
|
||||
<attenuation>
|
||||
<c>0.005</c>
|
||||
<l>0.002</l>
|
||||
<q>0.002</q>
|
||||
</attenuation>
|
||||
<exponent>70</exponent>
|
||||
<cutoff>45</cutoff>
|
||||
<near-m>0.01</near-m>
|
||||
<far-m>250</far-m>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,87 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>HalfSphere.ac</path>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>Sphere</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<property>/sim/rendering/rembrandt/enabled</property>
|
||||
<greater-than>
|
||||
<property>/sim/rendering/shaders/lights</property>
|
||||
<value>1</value>
|
||||
</greater-than>
|
||||
</and>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>light</type>
|
||||
<light-type>spot</light-type>
|
||||
<name>WhiteR</name>
|
||||
<object-name>Sphere</object-name>
|
||||
<nopreview/>
|
||||
<position>
|
||||
<x>0.0</x>
|
||||
<y>0.0</y>
|
||||
<z>0.0</z>
|
||||
</position>
|
||||
<direction>
|
||||
<x>0.0</x>
|
||||
<y>0.0</y>
|
||||
<z>1.0</z>
|
||||
</direction>
|
||||
<ambient>
|
||||
<r>0.08</r>
|
||||
<g>0.08</g>
|
||||
<b>0.08</b>
|
||||
<a>1.0</a>
|
||||
</ambient>
|
||||
<diffuse>
|
||||
<r>0.80</r>
|
||||
<g>0.80</g>
|
||||
<b>0.80</b>
|
||||
<a>1.0</a>
|
||||
</diffuse>
|
||||
<specular>
|
||||
<r>1.00</r>
|
||||
<g>1.00</g>
|
||||
<b>1.10</b>
|
||||
<a>1.0</a>
|
||||
</specular>
|
||||
<dim-factor>
|
||||
<expression>
|
||||
<product>
|
||||
<value>-1</value>
|
||||
<sum>
|
||||
<product>
|
||||
<max>
|
||||
<pow>
|
||||
<cos><property>/sim/time/sun-angle-rad</property></cos>
|
||||
<value>0.3</value>
|
||||
</pow>
|
||||
<value>0</value>
|
||||
</max>
|
||||
<value>0.6</value>
|
||||
</product>
|
||||
<value>-1</value>
|
||||
</sum>
|
||||
<property>lightpack/white-light-intensity</property>
|
||||
</product>
|
||||
</expression>
|
||||
</dim-factor>
|
||||
<attenuation>
|
||||
<c>1.0</c>
|
||||
<l>0.05</l>
|
||||
<q>0.1</q>
|
||||
</attenuation>
|
||||
<exponent>0.6</exponent>
|
||||
<cutoff>90</cutoff>
|
||||
<near-m>0.001</near-m>
|
||||
<far-m>30</far-m>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<model>
|
||||
<name>BeaconFlare</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/Flares/Strobe-flare.xml</path>
|
||||
</model>
|
||||
|
||||
<model>
|
||||
<name>BeaconRemb</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/Rembrandt/Strobe-remb.xml</path>
|
||||
</model>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>BeaconFlare</object-name>
|
||||
<object-name>BeaconRemb</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<property>lightpack/strobe-state/state</property>
|
||||
<not><property>sim/crashed</property></not>
|
||||
</and>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<model>
|
||||
<name>TaxiLightFlash</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/Flares/TaxiLight-flash.xml</path>
|
||||
</model>
|
||||
|
||||
<model>
|
||||
<name>TaxiLightRemb</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/Rembrandt/TaxiLight-remb.xml</path>
|
||||
</model>
|
||||
|
||||
<!--><model>
|
||||
<name>TaxiLightCone</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/LightCone/TaxiLight-cone.xml</path>
|
||||
</model><--> <!-- uncomment for fake non-rembrandt cones -->
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>TaxiLightFlash</object-name>
|
||||
<object-name>TaxiLightRemb</object-name>
|
||||
<!--><object-name>TaxiLightCone</object-name><--> <!-- uncomment for fake non-rembrandt cones -->
|
||||
<condition>
|
||||
<and>
|
||||
<property>lightpack/taxi-light-intensity</property>
|
||||
<not><property>sim/crashed</property></not>
|
||||
</and>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<model>
|
||||
<name>WhiteLightFlare</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/Flares/WhiteLight-flare.xml</path>
|
||||
</model>
|
||||
|
||||
<model>
|
||||
<name>WhiteLightRemb</name>
|
||||
<path>Aircraft/MQ-9/Models/Lights/Rembrandt/WhiteLight-remb.xml</path>
|
||||
</model>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>WhiteLightFlare</object-name>
|
||||
<object-name>WhiteLightRemb</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<property>lightpack/white-light-intensity</property>
|
||||
<not><property>sim/crashed</property></not>
|
||||
</and>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
Reference in New Issue
Block a user