Merge pull request #266 from ltoenning/new_lighting
Use compositor lights for strobes and nav lights if available
This commit is contained in:
commit
0764a0f1ee
20 changed files with 211 additions and 585 deletions
|
@ -317,11 +317,11 @@
|
|||
|
||||
<model>
|
||||
<name>Left strobe light ALS sharklet</name>
|
||||
<path>Aircraft/A320-family/Models/Lights/right-strobe.xml</path>
|
||||
<path>Aircraft/A320-family/Models/Lights/left-strobe.xml</path>
|
||||
<offsets>
|
||||
<x-m>2.31</x-m>
|
||||
<y-m>-17.1</y-m>
|
||||
<z-m>0.66</z-m>
|
||||
<z-m>0.69</z-m>
|
||||
</offsets>
|
||||
</model>
|
||||
|
||||
|
@ -357,7 +357,7 @@
|
|||
<offsets>
|
||||
<x-m>2.31</x-m>
|
||||
<y-m>17.1</y-m>
|
||||
<z-m>0.66</z-m>
|
||||
<z-m>0.69</z-m>
|
||||
</offsets>
|
||||
</model>
|
||||
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
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 "DefaultWhite.001" rgb 1 1 1 amb 0.2 0.2 0.2 emis 0 0 0 spec 0.025 0.025 0.025 shi 50 trans 0.1
|
||||
OBJECT world
|
||||
kids 1
|
||||
OBJECT poly
|
||||
name "green-navlightals"
|
||||
data 8
|
||||
Mesh.001
|
||||
crease 30.000000
|
||||
numvert 4
|
||||
-2e-06 -1 -1
|
||||
0 1 -1
|
||||
0 -1 1
|
||||
2e-06 1 1
|
||||
numsurf 1
|
||||
SURF 0x20
|
||||
mat 1
|
||||
refs 4
|
||||
1 0.0 0.0
|
||||
0 0.0 0.0
|
||||
2 0.0 0.0
|
||||
3 0.0 0.0
|
||||
kids 0
|
|
@ -1,35 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<PropertyList>
|
||||
<name>Effects/green-navlight</name>
|
||||
<inherits-from>Effects/procedural-light</inherits-from>
|
||||
|
||||
<parameters>
|
||||
<texture n="0">
|
||||
<type>white</type>
|
||||
</texture>
|
||||
|
||||
<light_color_base_r type="float">0</light_color_base_r>
|
||||
<light_color_base_g type="float">0.5</light_color_base_g>
|
||||
<light_color_base_b type="float">0</light_color_base_b>
|
||||
<light_color_center_r type="float">0.7</light_color_center_r>
|
||||
<light_color_center_g type="float">1.0</light_color_center_g>
|
||||
<light_color_center_b type="float">0.7</light_color_center_b>
|
||||
<intensity_scale type="float"><use>/sim/model/lights/nav-lights</use></intensity_scale>
|
||||
<pointing_x type="float">1.0</pointing_x>
|
||||
<pointing_y type="float">-0.97629600712</pointing_y>
|
||||
<pointing_z type="float">0.0</pointing_z>
|
||||
<is_directional type="bool">true</is_directional>
|
||||
<is_strobe type="bool">false</is_strobe>
|
||||
<inner_angle type="float">0.707106781187</inner_angle>
|
||||
<outer_angle type="float">0.939692620786</outer_angle>
|
||||
<zero_angle type="float">0.017452406437</zero_angle>
|
||||
<outer_gain type="float">0.1</outer_gain>
|
||||
<visibility><use>/environment/ground-visibility-m</use></visibility>
|
||||
<avisibility><use>/environment/visibility-m</use></avisibility>
|
||||
<lthickness><use>/environment/ground-haze-thickness-m</use></lthickness>
|
||||
<terrain_alt><use>/environment/mean-terrain-elevation-m</use></terrain_alt>
|
||||
<eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt>
|
||||
<terminator><use>/environment/terminator-relative-position-m</use></terminator>
|
||||
</parameters>
|
||||
</PropertyList>
|
|
@ -4,44 +4,39 @@
|
|||
|
||||
<PropertyList>
|
||||
|
||||
<path>green-navlight.ac</path>
|
||||
<nopreview/>
|
||||
|
||||
<animation>
|
||||
<type>noshadow</type>
|
||||
<object-name>green-navlightals</object-name>
|
||||
</animation>
|
||||
|
||||
<effect>
|
||||
<inherits-from>Aircraft/A320-family/Models/lights/ALS/green-navlight</inherits-from>
|
||||
<object-name>green-navlightals</object-name>
|
||||
</effect>
|
||||
|
||||
<animation>
|
||||
<type>scale</type>
|
||||
<x-offset>0.5</x-offset>
|
||||
<y-offset>0.5</y-offset>
|
||||
<z-offset>0.5</z-offset>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>dist-scale</type>
|
||||
<object-name>green-navlightals</object-name>
|
||||
<interpolation>
|
||||
<entry>
|
||||
<ind>0</ind>
|
||||
<dep>1</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>300</ind>
|
||||
<dep>4</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>1500</ind>
|
||||
<dep>8</dep>
|
||||
</entry>
|
||||
</interpolation>
|
||||
</animation>
|
||||
<!-- https://wiki.flightgear.org/Howto:Add_aircraft_lights#Combined_ALS_procedural_lights_and_Compositor_lights -->
|
||||
<!-- Thanks to erik -->
|
||||
<model>
|
||||
<name>green-navlight</name>
|
||||
<path>Aircraft/Generic/spotlight.xml</path>
|
||||
<overlay>
|
||||
<params>
|
||||
<name>GreenLight</name>
|
||||
<power-source>/sim/model/lights/nav-lights</power-source>
|
||||
<direction>
|
||||
<x>1.0</x>
|
||||
<y>-0.97629600712</y>
|
||||
<z>0</z>
|
||||
</direction>
|
||||
<ambient>
|
||||
<r>0</r>
|
||||
<g>1</g>
|
||||
<b>0</b>
|
||||
</ambient>
|
||||
<specular>
|
||||
<r>0.7</r>
|
||||
<g>1.0</g>
|
||||
<b>0.7</b>
|
||||
</specular>
|
||||
<attenuation>
|
||||
<c>1.0</c>
|
||||
<l>0.22</l>
|
||||
<q>0.20</q>
|
||||
</attenuation>
|
||||
<spot-exponent>1</spot-exponent>
|
||||
</params>
|
||||
</overlay>
|
||||
</model>
|
||||
|
||||
|
||||
</PropertyList>
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
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 "DefaultWhite.005" rgb 1 1 1 amb 0.2 0.2 0.2 emis 0 0 0 spec 0.025 0.025 0.025 shi 50 trans 0.1
|
||||
OBJECT world
|
||||
kids 1
|
||||
OBJECT poly
|
||||
name "left-strobeals"
|
||||
data 8
|
||||
Mesh.001
|
||||
crease 30.000000
|
||||
numvert 4
|
||||
-0.048971 -0.991468 -0.999611
|
||||
-0.04897 1.008532 -0.999611
|
||||
-0.048969 -0.991468 1.000389
|
||||
-0.048967 1.008532 1.000389
|
||||
numsurf 1
|
||||
SURF 0x20
|
||||
mat 1
|
||||
refs 4
|
||||
1 0.0 0.0
|
||||
0 0.0 0.0
|
||||
2 0.0 0.0
|
||||
3 0.0 0.0
|
||||
kids 0
|
|
@ -1,35 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<PropertyList>
|
||||
<name>Effects/left-strobe</name>
|
||||
<inherits-from>Effects/procedural-light</inherits-from>
|
||||
|
||||
<parameters>
|
||||
<texture n="0">
|
||||
<type>white</type>
|
||||
</texture>
|
||||
|
||||
<light_color_base_r type="float">0.46</light_color_base_r>
|
||||
<light_color_base_g type="float">0.46</light_color_base_g>
|
||||
<light_color_base_b type="float">0.63</light_color_base_b>
|
||||
<light_color_center_r type="float">1.00</light_color_center_r> <!-- aviation white converted from 5500 K temp -->
|
||||
<light_color_center_g type="float">0.93</light_color_center_g>
|
||||
<light_color_center_b type="float">0.87</light_color_center_b>
|
||||
<intensity_scale type="float"><use>sim/model/lights/strobe/state</use></intensity_scale>
|
||||
<pointing_x type="float">-1</pointing_x>
|
||||
<pointing_y type="float">0.70710678</pointing_y>
|
||||
<pointing_z type="float">0.0</pointing_z>
|
||||
<is_directional type="bool">false</is_directional>
|
||||
<is_strobe type="bool">false</is_strobe>
|
||||
<inner_angle type="float">0.5</inner_angle>
|
||||
<outer_angle type="float">0.34202014</outer_angle>
|
||||
<zero_angle type="float">0.017452406437</zero_angle>
|
||||
<outer_gain type="float">1.0</outer_gain>
|
||||
<visibility><use>/environment/ground-visibility-m</use></visibility>
|
||||
<avisibility><use>/environment/visibility-m</use></avisibility>
|
||||
<lthickness><use>/environment/ground-haze-thickness-m</use></lthickness>
|
||||
<terrain_alt><use>/environment/mean-terrain-elevation-m</use></terrain_alt>
|
||||
<eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt>
|
||||
<terminator><use>/environment/terminator-relative-position-m</use></terminator>
|
||||
</parameters>
|
||||
</PropertyList>
|
|
@ -4,43 +4,39 @@
|
|||
|
||||
<PropertyList>
|
||||
|
||||
<path>left-strobe.ac</path>
|
||||
<nopreview/>
|
||||
|
||||
<animation>
|
||||
<type>noshadow</type>
|
||||
<object-name>left-strobeals</object-name>
|
||||
</animation>
|
||||
|
||||
<effect>
|
||||
<inherits-from>Aircraft/A320-family/Models/lights/ALS/left-strobe</inherits-from>
|
||||
<object-name>left-strobeals</object-name>
|
||||
</effect>
|
||||
|
||||
<animation>
|
||||
<type>scale</type>
|
||||
<x-offset>0.75</x-offset>
|
||||
<y-offset>0.75</y-offset>
|
||||
<z-offset>0.75</z-offset>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>dist-scale</type>
|
||||
<object-name>left-strobeals</object-name>
|
||||
<interpolation>
|
||||
<entry>
|
||||
<ind>0</ind>
|
||||
<dep>1</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>300</ind>
|
||||
<dep>4</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>1500</ind>
|
||||
<dep>8</dep>
|
||||
</entry>
|
||||
</interpolation>
|
||||
</animation>
|
||||
<!-- https://wiki.flightgear.org/Howto:Add_aircraft_lights#Combined_ALS_procedural_lights_and_Compositor_lights -->
|
||||
<!-- Thanks to erik -->
|
||||
<model>
|
||||
<name>left-strobe</name>
|
||||
<path>Aircraft/Generic/spotlight.xml</path>
|
||||
<overlay>
|
||||
<params>
|
||||
<name>leftstrobe</name>
|
||||
<power-source>/sim/model/lights/strobe/state</power-source>
|
||||
<direction>
|
||||
<x>-0.1</x>
|
||||
<y>1.0</y>
|
||||
<z>0</z>
|
||||
</direction>
|
||||
<ambient>
|
||||
<r>1</r>
|
||||
<g>1</g>
|
||||
<b>1</b>
|
||||
</ambient>
|
||||
<specular>
|
||||
<r>1.0</r>
|
||||
<g>1.0</g>
|
||||
<b>1.0</b>
|
||||
</specular>
|
||||
<attenuation>
|
||||
<c>1.0</c>
|
||||
<l>0.010</l>
|
||||
<q>0.007</q>
|
||||
</attenuation>
|
||||
<spot-cutoff>75</spot-cutoff>
|
||||
<spot-exponent>5.08</spot-exponent>
|
||||
</params>
|
||||
</overlay>
|
||||
</model>
|
||||
|
||||
</PropertyList>
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
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 "DefaultWhite.001" rgb 1 1 1 amb 0.2 0.2 0.2 emis 0 0 0 spec 0.025 0.025 0.025 shi 50 trans 0.1
|
||||
OBJECT world
|
||||
kids 1
|
||||
OBJECT poly
|
||||
name "red-navlightals"
|
||||
data 4
|
||||
Mesh
|
||||
crease 30.000000
|
||||
numvert 4
|
||||
-2e-06 -1 -1
|
||||
0 1 -1
|
||||
0 -1 1
|
||||
2e-06 1 1
|
||||
numsurf 1
|
||||
SURF 0x20
|
||||
mat 1
|
||||
refs 4
|
||||
1 0.0 0.0
|
||||
0 0.0 0.0
|
||||
2 0.0 0.0
|
||||
3 0.0 0.0
|
||||
kids 0
|
|
@ -1,35 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<PropertyList>
|
||||
<name>Effects/red-navlight</name>
|
||||
<inherits-from>Effects/procedural-light</inherits-from>
|
||||
|
||||
<parameters>
|
||||
<texture n="0">
|
||||
<type>white</type>
|
||||
</texture>
|
||||
|
||||
<light_color_base_r type="float">0.5</light_color_base_r>
|
||||
<light_color_base_g type="float">0.0</light_color_base_g>
|
||||
<light_color_base_b type="float">0.0</light_color_base_b>
|
||||
<light_color_center_r type="float">1.0</light_color_center_r>
|
||||
<light_color_center_g type="float">0.7</light_color_center_g>
|
||||
<light_color_center_b type="float">0.7</light_color_center_b>
|
||||
<intensity_scale type="float"><use>/sim/model/lights/nav-lights</use></intensity_scale>
|
||||
<pointing_x type="float">1.0</pointing_x>
|
||||
<pointing_y type="float">0.97629600712</pointing_y>
|
||||
<pointing_z type="float">0.0</pointing_z>
|
||||
<is_directional type="bool">true</is_directional>
|
||||
<is_strobe type="bool">false</is_strobe>
|
||||
<inner_angle type="float">0.707106781187</inner_angle>
|
||||
<outer_angle type="float">0.939692620786</outer_angle>
|
||||
<zero_angle type="float">0.017452406437</zero_angle>
|
||||
<outer_gain type="float">0.1</outer_gain>
|
||||
<visibility><use>/environment/ground-visibility-m</use></visibility>
|
||||
<avisibility><use>/environment/visibility-m</use></avisibility>
|
||||
<lthickness><use>/environment/ground-haze-thickness-m</use></lthickness>
|
||||
<terrain_alt><use>/environment/mean-terrain-elevation-m</use></terrain_alt>
|
||||
<eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt>
|
||||
<terminator><use>/environment/terminator-relative-position-m</use></terminator>
|
||||
</parameters>
|
||||
</PropertyList>
|
|
@ -4,43 +4,38 @@
|
|||
|
||||
<PropertyList>
|
||||
|
||||
<path>red-navlight.ac</path>
|
||||
<nopreview/>
|
||||
|
||||
<animation>
|
||||
<type>noshadow</type>
|
||||
<object-name>red-navlightals</object-name>
|
||||
</animation>
|
||||
|
||||
<effect>
|
||||
<inherits-from>Aircraft/A320-family/Models/lights/ALS/red-navlight</inherits-from>
|
||||
<object-name>red-navlightals</object-name>
|
||||
</effect>
|
||||
|
||||
<animation>
|
||||
<type>scale</type>
|
||||
<x-offset>0.5</x-offset>
|
||||
<y-offset>0.5</y-offset>
|
||||
<z-offset>0.5</z-offset>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>dist-scale</type>
|
||||
<object-name>red-navlightals</object-name>
|
||||
<interpolation>
|
||||
<entry>
|
||||
<ind>0</ind>
|
||||
<dep>1</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>300</ind>
|
||||
<dep>4</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>1500</ind>
|
||||
<dep>8</dep>
|
||||
</entry>
|
||||
</interpolation>
|
||||
</animation>
|
||||
<!-- https://wiki.flightgear.org/Howto:Add_aircraft_lights#Combined_ALS_procedural_lights_and_Compositor_lights -->
|
||||
<!-- Thanks to erik -->
|
||||
<model>
|
||||
<name>red-navlight</name>
|
||||
<path>Aircraft/Generic/spotlight.xml</path>
|
||||
<overlay>
|
||||
<params>
|
||||
<name>RedLight</name>
|
||||
<power-source>/sim/model/lights/nav-lights</power-source>
|
||||
<direction>
|
||||
<x>1.0</x>
|
||||
<y>0.97629600712</y>
|
||||
<z>0</z>
|
||||
</direction>
|
||||
<ambient>
|
||||
<r>1</r>
|
||||
<g>0</g>
|
||||
<b>0</b>
|
||||
</ambient>
|
||||
<specular>
|
||||
<r>1.0</r>
|
||||
<g>0.7</g>
|
||||
<b>0.7</b>
|
||||
</specular>
|
||||
<attenuation>
|
||||
<c>1.0</c>
|
||||
<l>0.22</l>
|
||||
<q>0.20</q>
|
||||
</attenuation>
|
||||
<spot-exponent>1</spot-exponent>
|
||||
</params>
|
||||
</overlay>
|
||||
</model>
|
||||
|
||||
</PropertyList>
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
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 "DefaultWhite.007" rgb 1 1 1 amb 0.2 0.2 0.2 emis 0 0 0 spec 0.025 0.025 0.025 shi 50 trans 0.1
|
||||
OBJECT world
|
||||
kids 1
|
||||
OBJECT poly
|
||||
name "right-strobeals"
|
||||
data 8
|
||||
Mesh.003
|
||||
crease 30.000000
|
||||
numvert 4
|
||||
-0.050333 -1 -0.999806
|
||||
-0.050331 1 -0.999806
|
||||
-0.05033 -1 1.000194
|
||||
-0.050329 1 1.000194
|
||||
numsurf 1
|
||||
SURF 0x20
|
||||
mat 1
|
||||
refs 4
|
||||
1 0.0 0.0
|
||||
0 0.0 0.0
|
||||
2 0.0 0.0
|
||||
3 0.0 0.0
|
||||
kids 0
|
|
@ -1,35 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<PropertyList>
|
||||
<name>Effects/right-strobe</name>
|
||||
<inherits-from>Effects/procedural-light</inherits-from>
|
||||
|
||||
<parameters>
|
||||
<texture n="0">
|
||||
<type>white</type>
|
||||
</texture>
|
||||
|
||||
<light_color_base_r type="float">0.46</light_color_base_r>
|
||||
<light_color_base_g type="float">0.46</light_color_base_g>
|
||||
<light_color_base_b type="float">0.63</light_color_base_b>
|
||||
<light_color_center_r type="float">1.00</light_color_center_r> <!-- aviation white converted from 5500 K temp -->
|
||||
<light_color_center_g type="float">0.93</light_color_center_g>
|
||||
<light_color_center_b type="float">0.87</light_color_center_b>
|
||||
<intensity_scale type="float"><use>sim/model/lights/strobe/state</use></intensity_scale>
|
||||
<pointing_x type="float">-1</pointing_x>
|
||||
<pointing_y type="float">-0.70710678</pointing_y>
|
||||
<pointing_z type="float">0.0</pointing_z>
|
||||
<is_directional type="bool">false</is_directional>
|
||||
<is_strobe type="bool">false</is_strobe>
|
||||
<inner_angle type="float">0.5</inner_angle>
|
||||
<outer_angle type="float">0.34202014</outer_angle>
|
||||
<zero_angle type="float">0.017452406437</zero_angle>
|
||||
<outer_gain type="float">1.0</outer_gain>
|
||||
<visibility><use>/environment/ground-visibility-m</use></visibility>
|
||||
<avisibility><use>/environment/visibility-m</use></avisibility>
|
||||
<lthickness><use>/environment/ground-haze-thickness-m</use></lthickness>
|
||||
<terrain_alt><use>/environment/mean-terrain-elevation-m</use></terrain_alt>
|
||||
<eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt>
|
||||
<terminator><use>/environment/terminator-relative-position-m</use></terminator>
|
||||
</parameters>
|
||||
</PropertyList>
|
|
@ -4,43 +4,39 @@
|
|||
|
||||
<PropertyList>
|
||||
|
||||
<path>right-strobe.ac</path>
|
||||
<nopreview/>
|
||||
|
||||
<animation>
|
||||
<type>noshadow</type>
|
||||
<object-name>right-strobeals</object-name>
|
||||
</animation>
|
||||
|
||||
<effect>
|
||||
<inherits-from>Aircraft/A320-family/Models/lights/ALS/right-strobe</inherits-from>
|
||||
<object-name>right-strobeals</object-name>
|
||||
</effect>
|
||||
|
||||
<animation>
|
||||
<type>scale</type>
|
||||
<x-offset>0.75</x-offset>
|
||||
<y-offset>0.75</y-offset>
|
||||
<z-offset>0.75</z-offset>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>dist-scale</type>
|
||||
<object-name>right-strobeals</object-name>
|
||||
<interpolation>
|
||||
<entry>
|
||||
<ind>0</ind>
|
||||
<dep>1</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>300</ind>
|
||||
<dep>4</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>1500</ind>
|
||||
<dep>8</dep>
|
||||
</entry>
|
||||
</interpolation>
|
||||
</animation>
|
||||
<!-- https://wiki.flightgear.org/Howto:Add_aircraft_lights#Combined_ALS_procedural_lights_and_Compositor_lights -->
|
||||
<!-- Thanks to erik -->
|
||||
<model>
|
||||
<name>right-strobe</name>
|
||||
<path>Aircraft/Generic/spotlight.xml</path>
|
||||
<overlay>
|
||||
<params>
|
||||
<name>rightstrobe</name>
|
||||
<power-source>/sim/model/lights/strobe/state</power-source>
|
||||
<direction>
|
||||
<x>-0.1</x>
|
||||
<y>-1.0</y>
|
||||
<z>0</z>
|
||||
</direction>
|
||||
<ambient>
|
||||
<r>1</r>
|
||||
<g>1</g>
|
||||
<b>1</b>
|
||||
</ambient>
|
||||
<specular>
|
||||
<r>1.0</r>
|
||||
<g>1.0</g>
|
||||
<b>1.0</b>
|
||||
</specular>
|
||||
<attenuation>
|
||||
<c>1.0</c>
|
||||
<l>0.010</l>
|
||||
<q>0.007</q>
|
||||
</attenuation>
|
||||
<spot-cutoff>75</spot-cutoff>
|
||||
<spot-exponent>5.08</spot-exponent>
|
||||
</params>
|
||||
</overlay>
|
||||
</model>
|
||||
|
||||
</PropertyList>
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
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 "DefaultWhite.005" rgb 1 1 1 amb 0.2 0.2 0.2 emis 0 0 0 spec 0.025 0.025 0.025 shi 50 trans 0.1
|
||||
OBJECT world
|
||||
kids 1
|
||||
OBJECT poly
|
||||
name "tailstrobeals"
|
||||
data 8
|
||||
Mesh.001
|
||||
crease 30.000000
|
||||
numvert 4
|
||||
-0.048971 -0.991468 -0.999611
|
||||
-0.04897 1.008532 -0.999611
|
||||
-0.048969 -0.991468 1.000389
|
||||
-0.048967 1.008532 1.000389
|
||||
numsurf 1
|
||||
SURF 0x20
|
||||
mat 1
|
||||
refs 4
|
||||
1 0.0 0.0
|
||||
0 0.0 0.0
|
||||
2 0.0 0.0
|
||||
3 0.0 0.0
|
||||
kids 0
|
|
@ -1,35 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<PropertyList>
|
||||
<name>Effects/tail-strobe</name>
|
||||
<inherits-from>Effects/procedural-light</inherits-from>
|
||||
|
||||
<parameters>
|
||||
<texture n="0">
|
||||
<type>white</type>
|
||||
</texture>
|
||||
|
||||
<light_color_base_r type="float">0.46</light_color_base_r>
|
||||
<light_color_base_g type="float">0.46</light_color_base_g>
|
||||
<light_color_base_b type="float">0.63</light_color_base_b>
|
||||
<light_color_center_r type="float">1.00</light_color_center_r> <!-- aviation white converted from 5500 K temp -->
|
||||
<light_color_center_g type="float">0.93</light_color_center_g>
|
||||
<light_color_center_b type="float">0.87</light_color_center_b>
|
||||
<intensity_scale type="float"><use>sim/model/lights/tailstrobe/state</use></intensity_scale>
|
||||
<pointing_x type="float">-1.0</pointing_x>
|
||||
<pointing_y type="float">0.0</pointing_y>
|
||||
<pointing_z type="float">0.0</pointing_z>
|
||||
<is_directional type="bool">true</is_directional>
|
||||
<is_strobe type="bool">false</is_strobe>
|
||||
<inner_angle type="float">0.5</inner_angle>
|
||||
<outer_angle type="float">0.766</outer_angle>
|
||||
<zero_angle type="float">0.939</zero_angle>
|
||||
<outer_gain type="float">0.9</outer_gain>
|
||||
<visibility><use>/environment/ground-visibility-m</use></visibility>
|
||||
<avisibility><use>/environment/visibility-m</use></avisibility>
|
||||
<lthickness><use>/environment/ground-haze-thickness-m</use></lthickness>
|
||||
<terrain_alt><use>/environment/mean-terrain-elevation-m</use></terrain_alt>
|
||||
<eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt>
|
||||
<terminator><use>/environment/terminator-relative-position-m</use></terminator>
|
||||
</parameters>
|
||||
</PropertyList>
|
|
@ -4,43 +4,38 @@
|
|||
|
||||
<PropertyList>
|
||||
|
||||
<path>tail-strobe.ac</path>
|
||||
<nopreview/>
|
||||
|
||||
<animation>
|
||||
<type>noshadow</type>
|
||||
<object-name>tailstrobeals</object-name>
|
||||
</animation>
|
||||
|
||||
<effect>
|
||||
<inherits-from>Aircraft/A320-family/Models/lights/ALS/tail-strobe</inherits-from>
|
||||
<object-name>tailstrobeals</object-name>
|
||||
</effect>
|
||||
|
||||
<animation>
|
||||
<type>scale</type>
|
||||
<x-offset>0.75</x-offset>
|
||||
<y-offset>0.75</y-offset>
|
||||
<z-offset>0.75</z-offset>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>dist-scale</type>
|
||||
<object-name>tailstrobeals</object-name>
|
||||
<interpolation>
|
||||
<entry>
|
||||
<ind>0</ind>
|
||||
<dep>1</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>300</ind>
|
||||
<dep>4</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>1500</ind>
|
||||
<dep>8</dep>
|
||||
</entry>
|
||||
</interpolation>
|
||||
</animation>
|
||||
<!-- https://wiki.flightgear.org/Howto:Add_aircraft_lights#Combined_ALS_procedural_lights_and_Compositor_lights -->
|
||||
<!-- Thanks to erik -->
|
||||
<model>
|
||||
<name>tail-strobe</name>
|
||||
<path>Aircraft/Generic/spotlight.xml</path>
|
||||
<overlay>
|
||||
<params>
|
||||
<name>tailstrobe</name>
|
||||
<power-source>/sim/model/lights/tailstrobe/state</power-source>
|
||||
<direction>
|
||||
<x>-1.0</x>
|
||||
<y>0</y>
|
||||
<z>0</z>
|
||||
</direction>
|
||||
<ambient>
|
||||
<r>1</r>
|
||||
<g>1</g>
|
||||
<b>1</b>
|
||||
</ambient>
|
||||
<specular>
|
||||
<r>1.0</r>
|
||||
<g>1.0</g>
|
||||
<b>1.0</b>
|
||||
</specular>
|
||||
<attenuation>
|
||||
<c>1.0</c>
|
||||
<l>0.030</l>
|
||||
<q>0.025</q>
|
||||
</attenuation>
|
||||
<spot-exponent>5.08</spot-exponent>
|
||||
</params>
|
||||
</overlay>
|
||||
</model>
|
||||
|
||||
</PropertyList>
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
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 "DefaultWhite.001" rgb 1 1 1 amb 0.2 0.2 0.2 emis 0 0 0 spec 0.025 0.025 0.025 shi 50 trans 0.1
|
||||
OBJECT world
|
||||
kids 1
|
||||
OBJECT poly
|
||||
name "tailnavlightals"
|
||||
data 4
|
||||
Mesh
|
||||
crease 30.000000
|
||||
numvert 4
|
||||
-2e-06 -1 -1
|
||||
0 1 -1
|
||||
0 -1 1
|
||||
2e-06 1 1
|
||||
numsurf 1
|
||||
SURF 0x20
|
||||
mat 1
|
||||
refs 4
|
||||
1 0.0 0.0
|
||||
0 0.0 0.0
|
||||
2 0.0 0.0
|
||||
3 0.0 0.0
|
||||
kids 0
|
|
@ -1,35 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<PropertyList>
|
||||
<name>Effects/tail-navlight</name>
|
||||
<inherits-from>Effects/procedural-light</inherits-from>
|
||||
|
||||
<parameters>
|
||||
<texture n="0">
|
||||
<type>white</type>
|
||||
</texture>
|
||||
|
||||
<light_color_base_r type="float">0.85</light_color_base_r>
|
||||
<light_color_base_g type="float">0.85</light_color_base_g>
|
||||
<light_color_base_b type="float">0.99</light_color_base_b>
|
||||
<light_color_center_r type="float">1.00</light_color_center_r> <!-- aviation white converted from 5500 K temp -->
|
||||
<light_color_center_g type="float">0.93</light_color_center_g>
|
||||
<light_color_center_b type="float">0.87</light_color_center_b>
|
||||
<intensity_scale type="float"><use>/sim/model/lights/nav-lights</use></intensity_scale>
|
||||
<pointing_x type="float">-1.0</pointing_x>
|
||||
<pointing_y type="float">0</pointing_y>
|
||||
<pointing_z type="float">0.0</pointing_z>
|
||||
<is_directional type="bool">true</is_directional>
|
||||
<is_strobe type="bool">false</is_strobe>
|
||||
<inner_angle type="float">0.5</inner_angle>
|
||||
<outer_angle type="float">0.766</outer_angle>
|
||||
<zero_angle type="float">0.939</zero_angle>
|
||||
<outer_gain type="float">0.9</outer_gain>
|
||||
<visibility><use>/environment/ground-visibility-m</use></visibility>
|
||||
<avisibility><use>/environment/visibility-m</use></avisibility>
|
||||
<lthickness><use>/environment/ground-haze-thickness-m</use></lthickness>
|
||||
<terrain_alt><use>/environment/mean-terrain-elevation-m</use></terrain_alt>
|
||||
<eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt>
|
||||
<terminator><use>/environment/terminator-relative-position-m</use></terminator>
|
||||
</parameters>
|
||||
</PropertyList>
|
|
@ -4,43 +4,38 @@
|
|||
|
||||
<PropertyList>
|
||||
|
||||
<path>tailnav.ac</path>
|
||||
<nopreview/>
|
||||
|
||||
<animation>
|
||||
<type>noshadow</type>
|
||||
<object-name>tailnavlightals</object-name>
|
||||
</animation>
|
||||
|
||||
<effect>
|
||||
<inherits-from>Aircraft/A320-family/Models/lights/ALS/tailnav</inherits-from>
|
||||
<object-name>tailnavlightals</object-name>
|
||||
</effect>
|
||||
|
||||
<animation>
|
||||
<type>scale</type>
|
||||
<x-offset>0.5</x-offset>
|
||||
<y-offset>0.5</y-offset>
|
||||
<z-offset>0.5</z-offset>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>dist-scale</type>
|
||||
<object-name>tailnavlightals</object-name>
|
||||
<interpolation>
|
||||
<entry>
|
||||
<ind>0</ind>
|
||||
<dep>1</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>300</ind>
|
||||
<dep>4</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>1500</ind>
|
||||
<dep>8</dep>
|
||||
</entry>
|
||||
</interpolation>
|
||||
</animation>
|
||||
<!-- https://wiki.flightgear.org/Howto:Add_aircraft_lights#Combined_ALS_procedural_lights_and_Compositor_lights -->
|
||||
<!-- Thanks to erik -->
|
||||
<model>
|
||||
<name>tail-navlight</name>
|
||||
<path>Aircraft/Generic/spotlight.xml</path>
|
||||
<overlay>
|
||||
<params>
|
||||
<name>TailLight</name>
|
||||
<power-source>/sim/model/lights/nav-lights</power-source>
|
||||
<direction>
|
||||
<x>-1.0</x>
|
||||
<y>0.0</y>
|
||||
<z>0</z>
|
||||
</direction>
|
||||
<ambient>
|
||||
<r>0.85</r>
|
||||
<g>0.85</g>
|
||||
<b>0.99</b>
|
||||
</ambient>
|
||||
<specular>
|
||||
<r>1</r>
|
||||
<g>0.93</g>
|
||||
<b>0.87</b>
|
||||
</specular>
|
||||
<attenuation>
|
||||
<c>1.0</c>
|
||||
<l>0.22</l>
|
||||
<q>0.20</q>
|
||||
</attenuation>
|
||||
<spot-exponent>1.3</spot-exponent>
|
||||
</params>
|
||||
</overlay>
|
||||
</model>
|
||||
|
||||
</PropertyList>
|
||||
|
|
|
@ -85,6 +85,14 @@ var lightManager = {
|
|||
},
|
||||
|
||||
init: func() {
|
||||
var fgVersion = split(".", getprop("/sim/version/flightgear"));
|
||||
var fgVersionMajor = fgVersion[0];
|
||||
var fgVersionMinor = fgVersion[1];
|
||||
if (fgVersionMajor >= 2020 and fgVersionMinor >= 4) {
|
||||
# Using compositor lights
|
||||
return;
|
||||
}
|
||||
|
||||
setprop("/sim/rendering/als-secondary-lights/flash-radius", 13);
|
||||
setprop("/sim/rendering/als-secondary-lights/num-lightspots", 5);
|
||||
|
||||
|
|
Loading…
Reference in a new issue