diff --git a/Models/A320-common.xml b/Models/A320-common.xml index cdc9eb18..ac81a6d9 100644 --- a/Models/A320-common.xml +++ b/Models/A320-common.xml @@ -317,11 +317,11 @@ Left strobe light ALS sharklet - Aircraft/A320-family/Models/Lights/right-strobe.xml + Aircraft/A320-family/Models/Lights/left-strobe.xml 2.31 -17.1 - 0.66 + 0.69 @@ -357,7 +357,7 @@ 2.31 17.1 - 0.66 + 0.69 diff --git a/Models/Lights/green-navlight.ac b/Models/Lights/green-navlight.ac deleted file mode 100644 index 6b9f683d..00000000 --- a/Models/Lights/green-navlight.ac +++ /dev/null @@ -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 diff --git a/Models/Lights/green-navlight.eff b/Models/Lights/green-navlight.eff deleted file mode 100644 index cf58a49f..00000000 --- a/Models/Lights/green-navlight.eff +++ /dev/null @@ -1,35 +0,0 @@ - - - - Effects/green-navlight - Effects/procedural-light - - - - white - - - 0 - 0.5 - 0 - 0.7 - 1.0 - 0.7 - /sim/model/lights/nav-lights - 1.0 - -0.97629600712 - 0.0 - true - false - 0.707106781187 - 0.939692620786 - 0.017452406437 - 0.1 - /environment/ground-visibility-m - /environment/visibility-m - /environment/ground-haze-thickness-m - /environment/mean-terrain-elevation-m - /sim/rendering/eye-altitude-m - /environment/terminator-relative-position-m - - diff --git a/Models/Lights/greennav.xml b/Models/Lights/greennav.xml index 980a3b53..2d606abe 100644 --- a/Models/Lights/greennav.xml +++ b/Models/Lights/greennav.xml @@ -4,44 +4,39 @@ - green-navlight.ac - - - - noshadow - green-navlightals - - - - Aircraft/A320-family/Models/lights/ALS/green-navlight - green-navlightals - - - - scale - 0.5 - 0.5 - 0.5 - - - - dist-scale - green-navlightals - - - 0 - 1 - - - 300 - 4 - - - 1500 - 8 - - - + + + + green-navlight + Aircraft/Generic/spotlight.xml + + + GreenLight + /sim/model/lights/nav-lights + + 1.0 + -0.97629600712 + 0 + + + 0 + 1 + 0 + + + 0.7 + 1.0 + 0.7 + + + 1.0 + 0.22 + 0.20 + + 1 + + + diff --git a/Models/Lights/left-strobe.ac b/Models/Lights/left-strobe.ac deleted file mode 100644 index 2ab845d0..00000000 --- a/Models/Lights/left-strobe.ac +++ /dev/null @@ -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 diff --git a/Models/Lights/left-strobe.eff b/Models/Lights/left-strobe.eff deleted file mode 100644 index 0a9f0525..00000000 --- a/Models/Lights/left-strobe.eff +++ /dev/null @@ -1,35 +0,0 @@ - - - - Effects/left-strobe - Effects/procedural-light - - - - white - - - 0.46 - 0.46 - 0.63 - 1.00 - 0.93 - 0.87 - sim/model/lights/strobe/state - -1 - 0.70710678 - 0.0 - false - false - 0.5 - 0.34202014 - 0.017452406437 - 1.0 - /environment/ground-visibility-m - /environment/visibility-m - /environment/ground-haze-thickness-m - /environment/mean-terrain-elevation-m - /sim/rendering/eye-altitude-m - /environment/terminator-relative-position-m - - diff --git a/Models/Lights/left-strobe.xml b/Models/Lights/left-strobe.xml index df5afc19..137f157d 100644 --- a/Models/Lights/left-strobe.xml +++ b/Models/Lights/left-strobe.xml @@ -4,43 +4,39 @@ - left-strobe.ac - - - - noshadow - left-strobeals - - - - Aircraft/A320-family/Models/lights/ALS/left-strobe - left-strobeals - - - - scale - 0.75 - 0.75 - 0.75 - - - - dist-scale - left-strobeals - - - 0 - 1 - - - 300 - 4 - - - 1500 - 8 - - - + + + + left-strobe + Aircraft/Generic/spotlight.xml + + + leftstrobe + /sim/model/lights/strobe/state + + -0.1 + 1.0 + 0 + + + 1 + 1 + 1 + + + 1.0 + 1.0 + 1.0 + + + 1.0 + 0.010 + 0.007 + + 75 + 5.08 + + + diff --git a/Models/Lights/red-navlight.ac b/Models/Lights/red-navlight.ac deleted file mode 100644 index 6d061971..00000000 --- a/Models/Lights/red-navlight.ac +++ /dev/null @@ -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 diff --git a/Models/Lights/red-navlight.eff b/Models/Lights/red-navlight.eff deleted file mode 100644 index 5d6e63f6..00000000 --- a/Models/Lights/red-navlight.eff +++ /dev/null @@ -1,35 +0,0 @@ - - - - Effects/red-navlight - Effects/procedural-light - - - - white - - - 0.5 - 0.0 - 0.0 - 1.0 - 0.7 - 0.7 - /sim/model/lights/nav-lights - 1.0 - 0.97629600712 - 0.0 - true - false - 0.707106781187 - 0.939692620786 - 0.017452406437 - 0.1 - /environment/ground-visibility-m - /environment/visibility-m - /environment/ground-haze-thickness-m - /environment/mean-terrain-elevation-m - /sim/rendering/eye-altitude-m - /environment/terminator-relative-position-m - - diff --git a/Models/Lights/rednav.xml b/Models/Lights/rednav.xml index f9674677..6845ef5c 100644 --- a/Models/Lights/rednav.xml +++ b/Models/Lights/rednav.xml @@ -4,43 +4,38 @@ - red-navlight.ac - - - - noshadow - red-navlightals - - - - Aircraft/A320-family/Models/lights/ALS/red-navlight - red-navlightals - - - - scale - 0.5 - 0.5 - 0.5 - - - - dist-scale - red-navlightals - - - 0 - 1 - - - 300 - 4 - - - 1500 - 8 - - - + + + + red-navlight + Aircraft/Generic/spotlight.xml + + + RedLight + /sim/model/lights/nav-lights + + 1.0 + 0.97629600712 + 0 + + + 1 + 0 + 0 + + + 1.0 + 0.7 + 0.7 + + + 1.0 + 0.22 + 0.20 + + 1 + + + diff --git a/Models/Lights/right-strobe.ac b/Models/Lights/right-strobe.ac deleted file mode 100644 index c1340b5b..00000000 --- a/Models/Lights/right-strobe.ac +++ /dev/null @@ -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 diff --git a/Models/Lights/right-strobe.eff b/Models/Lights/right-strobe.eff deleted file mode 100644 index 57875ee9..00000000 --- a/Models/Lights/right-strobe.eff +++ /dev/null @@ -1,35 +0,0 @@ - - - - Effects/right-strobe - Effects/procedural-light - - - - white - - - 0.46 - 0.46 - 0.63 - 1.00 - 0.93 - 0.87 - sim/model/lights/strobe/state - -1 - -0.70710678 - 0.0 - false - false - 0.5 - 0.34202014 - 0.017452406437 - 1.0 - /environment/ground-visibility-m - /environment/visibility-m - /environment/ground-haze-thickness-m - /environment/mean-terrain-elevation-m - /sim/rendering/eye-altitude-m - /environment/terminator-relative-position-m - - diff --git a/Models/Lights/right-strobe.xml b/Models/Lights/right-strobe.xml index 9628f2b2..34064a49 100644 --- a/Models/Lights/right-strobe.xml +++ b/Models/Lights/right-strobe.xml @@ -4,43 +4,39 @@ - right-strobe.ac - - - - noshadow - right-strobeals - - - - Aircraft/A320-family/Models/lights/ALS/right-strobe - right-strobeals - - - - scale - 0.75 - 0.75 - 0.75 - - - - dist-scale - right-strobeals - - - 0 - 1 - - - 300 - 4 - - - 1500 - 8 - - - + + + + right-strobe + Aircraft/Generic/spotlight.xml + + + rightstrobe + /sim/model/lights/strobe/state + + -0.1 + -1.0 + 0 + + + 1 + 1 + 1 + + + 1.0 + 1.0 + 1.0 + + + 1.0 + 0.010 + 0.007 + + 75 + 5.08 + + + diff --git a/Models/Lights/tail-strobe.ac b/Models/Lights/tail-strobe.ac deleted file mode 100644 index 5eeedab2..00000000 --- a/Models/Lights/tail-strobe.ac +++ /dev/null @@ -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 diff --git a/Models/Lights/tail-strobe.eff b/Models/Lights/tail-strobe.eff deleted file mode 100644 index f8445961..00000000 --- a/Models/Lights/tail-strobe.eff +++ /dev/null @@ -1,35 +0,0 @@ - - - - Effects/tail-strobe - Effects/procedural-light - - - - white - - - 0.46 - 0.46 - 0.63 - 1.00 - 0.93 - 0.87 - sim/model/lights/tailstrobe/state - -1.0 - 0.0 - 0.0 - true - false - 0.5 - 0.766 - 0.939 - 0.9 - /environment/ground-visibility-m - /environment/visibility-m - /environment/ground-haze-thickness-m - /environment/mean-terrain-elevation-m - /sim/rendering/eye-altitude-m - /environment/terminator-relative-position-m - - diff --git a/Models/Lights/tail-strobe.xml b/Models/Lights/tail-strobe.xml index 76b6fe21..6706df8a 100644 --- a/Models/Lights/tail-strobe.xml +++ b/Models/Lights/tail-strobe.xml @@ -4,43 +4,38 @@ - tail-strobe.ac - - - - noshadow - tailstrobeals - - - - Aircraft/A320-family/Models/lights/ALS/tail-strobe - tailstrobeals - - - - scale - 0.75 - 0.75 - 0.75 - - - - dist-scale - tailstrobeals - - - 0 - 1 - - - 300 - 4 - - - 1500 - 8 - - - + + + + tail-strobe + Aircraft/Generic/spotlight.xml + + + tailstrobe + /sim/model/lights/tailstrobe/state + + -1.0 + 0 + 0 + + + 1 + 1 + 1 + + + 1.0 + 1.0 + 1.0 + + + 1.0 + 0.030 + 0.025 + + 5.08 + + + diff --git a/Models/Lights/tailnav.ac b/Models/Lights/tailnav.ac deleted file mode 100644 index 13176da9..00000000 --- a/Models/Lights/tailnav.ac +++ /dev/null @@ -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 diff --git a/Models/Lights/tailnav.eff b/Models/Lights/tailnav.eff deleted file mode 100644 index e02fdeb6..00000000 --- a/Models/Lights/tailnav.eff +++ /dev/null @@ -1,35 +0,0 @@ - - - - Effects/tail-navlight - Effects/procedural-light - - - - white - - - 0.85 - 0.85 - 0.99 - 1.00 - 0.93 - 0.87 - /sim/model/lights/nav-lights - -1.0 - 0 - 0.0 - true - false - 0.5 - 0.766 - 0.939 - 0.9 - /environment/ground-visibility-m - /environment/visibility-m - /environment/ground-haze-thickness-m - /environment/mean-terrain-elevation-m - /sim/rendering/eye-altitude-m - /environment/terminator-relative-position-m - - diff --git a/Models/Lights/tailnav.xml b/Models/Lights/tailnav.xml index 97df2dc1..b2f1224b 100644 --- a/Models/Lights/tailnav.xml +++ b/Models/Lights/tailnav.xml @@ -4,43 +4,38 @@ - tailnav.ac - - - - noshadow - tailnavlightals - - - - Aircraft/A320-family/Models/lights/ALS/tailnav - tailnavlightals - - - - scale - 0.5 - 0.5 - 0.5 - - - - dist-scale - tailnavlightals - - - 0 - 1 - - - 300 - 4 - - - 1500 - 8 - - - + + + + tail-navlight + Aircraft/Generic/spotlight.xml + + + TailLight + /sim/model/lights/nav-lights + + -1.0 + 0.0 + 0 + + + 0.85 + 0.85 + 0.99 + + + 1 + 0.93 + 0.87 + + + 1.0 + 0.22 + 0.20 + + 1.3 + + + diff --git a/Nasal/Effects/light-manager.nas b/Nasal/Effects/light-manager.nas index b80302fe..34a55573 100644 --- a/Nasal/Effects/light-manager.nas +++ b/Nasal/Effects/light-manager.nas @@ -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);