1
0
Fork 0

Added Lighting to AI A330-200 Freighter

This commit is contained in:
Yves Tolosa-Joas 2017-12-16 21:53:10 +11:00 committed by James Turner
parent ce47de71b3
commit 9db7957baf
4 changed files with 59 additions and 3 deletions

View file

@ -2,18 +2,38 @@
<PropertyList>
<description>A330-200 Freighter</description>
<author>3D Model Innis Cunningham, UV map Ian Tolosa</author>
<author>3D Model Innis Cunningham, UV map liveries Brett Harrison</author>
<path>Models/A33X.ac</path>
<!-- Show Gear only when speed under 200 knots for parking and taxi and take off phases -->
<animation>
<type>select</type>
<object-name>gear</object-name>
<condition>
<less-than>
<property>velocities/true-airspeed-kt</property>
<value>200</value>
<value>165</value>
</less-than>
</condition>
</animation>
<!-- Tail and Windows Lightmap Effect -->
<effect>
<inherits-from>AI/Aircraft/A332/Effects/33X-LightMap</inherits-from>
<object-name>body</object-name>
<object-name>gear</object-name>
</effect>
<!-- Add Navigation Lights Objects -->
<model>
<path>Lights/332-NavLights.xml</path>
</model>
<!-- Enable Beacons and Strobes Pulse Behaviour -->
<nasal>
<load><![CDATA[
aircraft.light.new("/sim/model/A332/lighting/beacon", [0.7, 1.3]);
aircraft.light.new("/sim/model/A332/lighting/strobes", [0.02, 0.1, 0.02, 1.86]);
setprop("/sim/model/A332/lighting/beacon/enabled", 1);
setprop("/sim/model/A332/lighting/strobes/enabled", 1);
]]></load>
<unload></unload>
</nasal>
</PropertyList>

View file

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Lighting of Tail, Flanks and Windows -->
<PropertyList>
<name>A33X-LightMap</name>
<inherits-from>Effects/model-combined-deferred</inherits-from>
<parameters>
<normalmap-enabled type="int">0</normalmap-enabled>
<reflection-enabled type="int">0</reflection-enabled>
<reflection-dynamic type="int">0</reflection-dynamic>
<reflect_map-enabled type="int">0</reflect_map-enabled>
<reflection-correction type="float">0</reflection-correction>
<!-- Enable 3 colors RGB LigntMap -->
<lightmap-enabled type="int"><use>/environment/lightmap-factor</use></lightmap-enabled>
<lightmap-multi type="int">1</lightmap-multi>
<!-- Red Channel (Tail) - Night Activation and Color -->
<lightmap-factor type="float" n="0">1</lightmap-factor>
<lightmap-color type="vec3d" n="0">1.0 1.0 1.0</lightmap-color>
<!-- Green Channel (Windows) Multiplying Factor and Color -->
<lightmap-factor type="float" n="1">1.5</lightmap-factor>
<lightmap-color type="vec3d" n="1">1.0 1.0 1.0</lightmap-color>
<!-- Blue Channel (UnUsed) Multiplying Factor and Color -->
<lightmap-factor type="float" n="2">0</lightmap-factor>
<lightmap-color type="vec3d" n="2">1.0 1.0 1.0</lightmap-color>
<!-- Alpha Channel (UnUsed) Multiplying Factor and Color -->
<lightmap-factor type="float" n="3">0.0</lightmap-factor>
<lightmap-color type="vec3d" n="3">1.0 1.0 1.0</lightmap-color>
<!-- LightMap Image Location -->
<texture n="3">
<image>AI/Aircraft/A332/Effects/33X-LightMap.png</image>
<filter>linear-mipmap-linear</filter>
<wrap-s>clamp</wrap-s>
<wrap-t>clamp</wrap-t>
<internal-format>normalized</internal-format>
</texture>
</parameters>
</PropertyList>

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB