1
0
Fork 0

Self-contained AI Spitfire.

This commit is contained in:
Stuart Buchanan 2018-07-29 19:33:49 +01:00
parent d7e5e9e4d3
commit 3d716220d7
30 changed files with 152209 additions and 1727 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

View file

@ -0,0 +1,55 @@
AC3Db
MATERIAL "ac3dmat1" rgb 1 1 1 amb 1 1 1 emis 1 1 1 spec 1 1 1 shi 128 trans 0
OBJECT world
kids 1
OBJECT poly
name "Green-Light-Flare"
loc 0 0 -0.00720754
texture "green.rgb"
crease 61.000000
numvert 7
0.0442092 1.80304e-008 0.00720754
0.0221046 0.0442092 0.00720754
-0.0221046 0.0442092 0.00720754
-0.0442092 1.80304e-008 0.00720754
-0.0221046 -0.0442092 0.00720754
0.0221046 -0.0442092 0.00720754
0 1.80304e-008 0.00720754
numsurf 6
SURF 0x20
mat 0
refs 3
6 0.5 0.500001
0 1 0.500001
5 0.750001 0
SURF 0x20
mat 0
refs 3
6 0.5 0.500001
5 0.750001 0
4 0.249999 0
SURF 0x20
mat 0
refs 3
6 0.5 0.500001
4 0.249999 0
3 0 0.500001
SURF 0x20
mat 0
refs 3
6 0.5 0.500001
3 0 0.500001
2 0.249999 1
SURF 0x20
mat 0
refs 3
6 0.5 0.500001
2 0.249999 1
1 0.750001 1
SURF 0x20
mat 0
refs 3
6 0.5 0.500001
1 0.750001 1
0 1 0.500001
kids 0

View file

@ -0,0 +1,71 @@
<?xml version="1.0"?>
<!-- Light - Green Flare-->
<PropertyList>
<path>light-green-flare.ac</path>
<animation>
<type>alpha-test</type>
<object-name>Green-Light-Flare</object-name>
<alpha-factor>0.01</alpha-factor>
</animation>
<animation>
<type>billboard</type>
<spherical>true</spherical>
<object-name>Green-Light-Flare</object-name>
</animation>
<animation>
<type>select</type>
<object-name>Green-Light-Flare</object-name>
<condition>
<or>
<equals>
<property>/controls/lighting/nav-lights</property>
<value>1</value>
</equals>
<equals>
<property>/controls/lighting/nav-lights[1]</property>
<value>1</value>
</equals>
</or>
</condition>
</animation>
<animation>
<type>dist-scale</type>
<object-name>Green-Light-Flare</object-name>
<interpolation>
<entry>
<ind>0.001</ind>
<dep>2</dep>
</entry>
<entry>
<ind>40000</ind>
<dep>100</dep>
</entry>
</interpolation>
</animation>
<animation>
<type>scale</type>
<object-name>Green-Light-Flare</object-name>
<property>/sim/time/sun-angle-rad</property>
<offset>-1.4</offset>
<x-min>1</x-min>
<y-min>1</y-min>
<z-min>1</z-min>
<x-factor>2</x-factor>
<y-factor>2</y-factor>
<z-factor>2</z-factor>
</animation>
<!-- *** LoD ***
<animation>
<type>range</type>
<object-name>Green-Flare</object-name>
<min-m>0</min-m>
<max-m>5000</max-m>
</animation>-->
</PropertyList>

View file

@ -0,0 +1,55 @@
AC3Db
MATERIAL "ac3dmat1" rgb 1 1 1 amb 1 1 1 emis 1 1 1 spec 1 1 1 shi 128 trans 0
OBJECT world
kids 1
OBJECT poly
name "Red-Light-Flare"
loc 0 0 -0.00720754
texture "red.rgb"
crease 61.000000
numvert 7
0.0442092 1.80304e-008 0.00720754
0.0221046 0.0442092 0.00720754
-0.0221046 0.0442092 0.00720754
-0.0442092 1.80304e-008 0.00720754
-0.0221046 -0.0442092 0.00720754
0.0221046 -0.0442092 0.00720754
0 1.80304e-008 0.00720754
numsurf 6
SURF 0x20
mat 0
refs 3
6 0.5 0.500001
0 1 0.500001
5 0.750001 0
SURF 0x20
mat 0
refs 3
6 0.5 0.500001
5 0.750001 0
4 0.249999 0
SURF 0x20
mat 0
refs 3
6 0.5 0.500001
4 0.249999 0
3 0 0.500001
SURF 0x20
mat 0
refs 3
6 0.5 0.500001
3 0 0.500001
2 0.249999 1
SURF 0x20
mat 0
refs 3
6 0.5 0.500001
2 0.249999 1
1 0.750001 1
SURF 0x20
mat 0
refs 3
6 0.5 0.500001
1 0.750001 1
0 1 0.500001
kids 0

View file

@ -0,0 +1,73 @@
<?xml version="1.0"?>
<!-- Light - Red Flare-->
<PropertyList>
<path>light-red-flare.ac</path>
<animation>
<type>alpha-test</type>
<object-name>Red-Light-Flare</object-name>
<alpha-factor>0.01</alpha-factor>
</animation>
<animation>
<type>billboard</type>
<spherical>true</spherical>
<object-name>Red-Light-Flare</object-name>
</animation>
<animation>
<type>dist-scale</type>
<object-name>Red-Light-Flare</object-name>
<interpolation>
<entry>
<ind>0.001</ind>
<dep>2</dep>
</entry>
<entry>
<ind>40000</ind>
<dep>100</dep>
</entry>
</interpolation>
</animation>
<animation>
<type>scale</type>
<object-name>Red-Light-Flare</object-name>
<property>/sim/time/sun-angle-rad</property>
<offset>-1.4</offset>
<x-min>1</x-min>
<y-min>1</y-min>
<z-min>1</z-min>
<x-factor>2</x-factor>
<y-factor>2</y-factor>
<z-factor>2</z-factor>
</animation>
<animation>
<type>select</type>
<object-name>Red-Light-Flare</object-name>
<condition>
<or>
<equals>
<property>/controls/lighting/nav-lights</property>
<value>1</value>
</equals>
<equals>
<property>/controls/lighting/nav-lights[1]</property>
<value>1</value>
</equals>
</or>
</condition>
</animation>
<!-- *** LoD ***
<animation>
<type>range</type>
<object-name>Green-Flare</object-name>
<min-m>0</min-m>
<max-m>5000</max-m>
</animation>-->
</PropertyList>

View file

@ -0,0 +1,55 @@
AC3Db
MATERIAL "ac3dmat1" rgb 1 1 1 amb 1 1 1 emis 1 1 1 spec 1 1 1 shi 128 trans 0
OBJECT world
kids 1
OBJECT poly
name "White-Light-Flare"
loc 0 0 -0.00720754
texture "white.rgb"
crease 61.000000
numvert 7
0.0442092 1.80304e-008 0.00720754
0.0221046 0.0442092 0.00720754
-0.0221046 0.0442092 0.00720754
-0.0442092 1.80304e-008 0.00720754
-0.0221046 -0.0442092 0.00720754
0.0221046 -0.0442092 0.00720754
0 1.80304e-008 0.00720754
numsurf 6
SURF 0x20
mat 0
refs 3
6 0.5 0.500001
0 1 0.500001
5 0.750001 0
SURF 0x20
mat 0
refs 3
6 0.5 0.500001
5 0.750001 0
4 0.249999 0
SURF 0x20
mat 0
refs 3
6 0.5 0.500001
4 0.249999 0
3 0 0.500001
SURF 0x20
mat 0
refs 3
6 0.5 0.500001
3 0 0.500001
2 0.249999 1
SURF 0x20
mat 0
refs 3
6 0.5 0.500001
2 0.249999 1
1 0.750001 1
SURF 0x20
mat 0
refs 3
6 0.5 0.500001
1 0.750001 1
0 1 0.500001
kids 0

View file

@ -0,0 +1,75 @@
<?xml version="1.0"?>
<!-- Light - White Flare-->
<PropertyList>
<path>light-white-flare.ac</path>
<animation>
<type>alpha-test</type>
<object-name>White-Light-Flare</object-name>
<alpha-factor>0.01</alpha-factor>
</animation>
<animation>
<type>billboard</type>
<spherical>true</spherical>
<object-name>White-Light-Flare</object-name>
</animation>
<animation>
<type>dist-scale</type>
<object-name>White-Light-Flare</object-name>
<interpolation>
<entry>
<ind>0.001</ind>
<dep>2</dep>
</entry>
<entry>
<ind>40000</ind>
<dep>100</dep>
</entry>
</interpolation>
</animation>
<animation>
<type>scale</type>
<object-name>White-Light-Flare</object-name>
<property>/sim/time/sun-angle-rad</property>
<offset>-1.4</offset>
<x-min>1</x-min>
<y-min>1</y-min>
<z-min>1</z-min>
<x-factor>2</x-factor>
<y-factor>2</y-factor>
<z-factor>2</z-factor>
</animation>
<animation>
<type>select</type>
<object-name>White-Light-Flare</object-name>
<condition>
<or>
<equals>
<property>/controls/lighting/nav-lights</property>
<value>1</value>
</equals>
<equals>
<property>/controls/lighting/nav-lights[1]</property>
<value>1</value>
</equals>
</or>
</condition>
</animation>
<!-- *** LoD ***
<animation>
<type>range</type>
<object-name>White-Flare</object-name>
<min-m>0</min-m>
<max-m>5000</max-m>
</animation>-->
</PropertyList>

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

File diff suppressed because it is too large Load diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 688 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 KiB

File diff suppressed because it is too large Load diff

View file

@ -5,8 +5,7 @@ $Id$
<PropertyList> <PropertyList>
<path>../../../../Aircraft/Spitfire/Models/spitfireIIa.ac</path> <path>spitfireIIa.ac</path>
<texture-path>../../../../Aircraft/Spifire/Models</texture-path>
<nasal> <nasal>
<load> <load>
@ -338,52 +337,9 @@ $Id$
</offsets> </offsets>
</model>--> </model>-->
<!-- non-panel models -->
<model>
<path>Aircraft/Spitfire/Models/throttle.xml</path>
<offsets>
<x-m>3.40</x-m>
<y-m>-0.39</y-m>
<z-m>-0.10</z-m>
</offsets>
</model>
<model>
<path>Aircraft/Spitfire/Models/control-stick.xml</path>
<offsets>
<x-m>3.45</x-m>
<y-m>-0.0</y-m>
<z-m>-0.80</z-m>
</offsets>
</model>
<model>
<path>Aircraft/Spitfire/Models/trim-wheel-elev.xml</path>
<offsets>
<x-m>3.52</x-m>
<y-m>-0.3725</y-m>
<z-m>-0.135</z-m>
</offsets>
</model>
<model>
<path>Aircraft/Spitfire/Models/trim-knob-rudder.xml</path>
<offsets>
<x-m>3.64</x-m>
<y-m>-0.3725</y-m>
<z-m>-0.16</z-m>
</offsets>
</model>
<model>
<path>Aircraft/Spitfire/Models/rgs.xml</path>
<name>Gunsight</name>
<offsets>
<x-m>3.38</x-m>
<y-m>-0.0</y-m>
<z-m>0.53</z-m>
</offsets>
</model>
<!-- ***** Navigation Lights ****** --> <!-- ***** Navigation Lights ****** -->
<model> <model>
<path>Aircraft/Spitfire/Models/light-green.xml</path> <path>light-green.xml</path>
<name>Stbd-Light</name> <name>Stbd-Light</name>
<offsets> <offsets>
<x-m>2.35</x-m> <x-m>2.35</x-m>
@ -393,7 +349,7 @@ $Id$
</model> </model>
<model> <model>
<path>Aircraft/Spitfire/Models/light-red.xml</path> <path>light-red.xml</path>
<name>Port-Light</name> <name>Port-Light</name>
<offsets> <offsets>
<x-m>2.35</x-m> <x-m>2.35</x-m>
@ -403,7 +359,7 @@ $Id$
</model> </model>
<model> <model>
<path>Aircraft/Spitfire/Models/light-white.xml</path> <path>light-white.xml</path>
<name>Tail-Light</name> <name>Tail-Light</name>
<offsets> <offsets>
<x-m>9.05</x-m> <x-m>9.05</x-m>
@ -412,133 +368,6 @@ $Id$
</offsets> </offsets>
</model> </model>
<!-- Tutorial -->
<model>
<path>Aircraft/Generic/marker.xml</path>
</model>
<!-- hide all of the model not visible from the cockpit -->
<animation>
<type>select</type>
<object-name>Hull-Aft</object-name>
<object-name>Stub-Wing-R</object-name>
<object-name>Stub-Wing-L</object-name>
<object-name>Flap-Inner-R</object-name>
<object-name>Flap-Inner-L</object-name>
<object-name>Flap-Outer-R</object-name>
<object-name>Flap-Outer-L</object-name>
<object-name>Cover-Lower-M</object-name>
<object-name>Cover-Lower-F</object-name>
<object-name>Cover-Lower-A</object-name>
<object-name>Cover-Engine-Side-L</object-name>
<object-name>Cover-Engine-Side-R</object-name>
<object-name>UC-Main-L</object-name>
<object-name>UC-Main-R</object-name>
<condition>
<not>
<equals>
<property>sim/current-view/view-number</property>
<value>0</value>
</equals>
</not>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>UC-Tail</object-name>
<object-name>Spinner</object-name>
<object-name>Exhausts</object-name>
<object-name>Wing-B-L</object-name>
<object-name>Wing-B-R</object-name>
<object-name>Wing-Tip-B-L</object-name>
<object-name>Wing-Tip-B-R</object-name>
<object-name>Oil-Cooler</object-name>
<object-name>Radiator</object-name>
<object-name>Carburettor-Air-Intake</object-name>
<object-name>Tail-Light</object-name>
<condition>
<not>
<equals>
<property>sim/current-view/view-number</property>
<value>0</value>
</equals>
</not>
</condition>
</animation>
<!-- make sure that all the rest of the aircraft is visible-->
<animation>
<!--<type>select</type>-->
<object-name>Hull</object-name>
<object-name>Port-Light</object-name>
<object-name>Stbd-Light</object-name>
<object-name>Gunsight</object-name>
<object-name>Altimeter</object-name>
<object-name>Attitude</object-name>
<object-name>Gear-Indicator</object-name>
<object-name>Turn</object-name>
<object-name>Pilot</object-name>
<object-name>Port-Nav-Lt-Cover</object-name>
<object-name>Stbd-Nav-Lt-Cover</object-name>
<object-name>Tail-Lt-Cover</object-name>
<object-name>Dirt-Oil</object-name>
<object-name>Dirt-Exhaust</object-name>
<object-name>Canopy</object-name>
<!--<object-name>Blackout</object-name>-->
<!--<condition>
<greater-than-equals>
<property>sim/current-view/view-number</property>
<value>0</value>
</greater-than-equals>
</condition>-->
</animation>
<animation>
<type>select</type>
<object-name>Canopy-Rear-Rain</object-name>
<condition>
<greater-than>
<property>sim/model/rain/raining-norm</property>
<value>0.01</value>
</greater-than>
</condition>
</animation>
<animation>
<type>select</type>
<nopreview/>
<object-name>Canopy-FP-Rain</object-name>
<condition>
<greater-than>
<property>sim/model/rain/raining-norm</property>
<value>0.01</value>
</greater-than>
</condition>
</animation>
<animation>
<type>select</type>
<nopreview/>
<object-name>Canopy-F-Rain</object-name>
<condition>
<greater-than>
<property>sim/model/rain/raining-norm</property>
<value>0.01</value>
</greater-than>
</condition>
</animation>
<animation>
<type>select</type>
<nopreview/>
<object-name>Canopy-Main-Rain</object-name>
<condition>
<greater-than>
<property>sim/model/rain/raining-norm</property>
<value>0.01</value>
</greater-than>
</condition>
</animation>
<animation> <animation>
<type>select</type> <type>select</type>
<object-name>Canopy-Main</object-name> <object-name>Canopy-Main</object-name>
@ -553,50 +382,6 @@ $Id$
</animation> </animation>
<!-- **************************** Pilot ******************************* --> <!-- **************************** Pilot ******************************* -->
<animation>
<type>select</type>
<object-name>Pilot</object-name>
<condition>
<or>
<not>
<property>sim/model/spitfire/show-pilot</property>
</not>
<not>
<equals>
<property>sim/current-view/view-number</property>
<value>0</value>
</equals>
</not>
</or>
</condition>
</animation>
<!-- conceal Pilot Head etc in Cockpit View-->
<animation>
<type>select</type>
<object-name>Pilot-Head</object-name>
<condition>
<not>
<equals>
<property>sim/current-view/view-number</property>
<value>0</value>
</equals>
</not>
</condition>
</animation>
<!-- seat height -->
<animation>
<type>translate</type>
<object-name>Pilot</object-name>
<object-name>Seat</object-name>
<property>controls/seat/vertical-adjust</property>
<axis>
<x>0</x>
<y>0</y>
<z>1</z>
</axis>
</animation>
<!-- ***************** Flight Surfaces ************** --> <!-- ***************** Flight Surfaces ************** -->
<!-- ailerons --> <!-- ailerons -->
<animation> <animation>
@ -1076,16 +861,6 @@ $Id$
</condition> </condition>
</animation> </animation>
--> -->
<animation>
<type>material</type>
<object-name>Panel</object-name>
<emission>
<factor-prop>/controls/lighting/panel-norm</factor-prop>
<red>0.6</red>
<green>0.20</green>
<blue>0.20</blue>
</emission>
</animation>
<!-- ========== Dirt textures ========= --> <!-- ========== Dirt textures ========= -->
@ -1171,87 +946,6 @@ $Id$
</offsets> </offsets>
</model> </model>
<animation>
<type>textranslate</type>
<object-name>Canopy-FP-Rain</object-name>
<property>sim/model/rain/flow-mps</property>
<factor>1</factor>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>textranslate</type>
<object-name>Canopy-F-Rain</object-name>
<property>sim/model/rain/flow-mps</property>
<factor>1</factor>
<offset>0.33</offset>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>textranslate</type>
<object-name>Canopy-Rear-Rain</object-name>
<property>sim/model/rain/flow-mps</property>
<factor>1</factor>
<axis>
<x>-1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>textranslate</type>
<object-name>Canopy-Main-Rain</object-name>
<property>sim/model/rain/flow-mps</property>
<factor>1</factor>
<axis>
<x>-1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>material</type>
<object-name>Canopy-FP-Rain</object-name>
<object-name>Canopy-Rear-Rain</object-name>
<object-name>Canopy-F-Rain</object-name>
<object-name>Canopy-Main-Rain</object-name>
<transparency>
<alpha-prop>velocities/airspeed-kt</alpha-prop>
<factor>-0.00333</factor>
<offset>1</offset>
<max>0.3</max>
<min>0.0075</min>
</transparency>
<!--<threshold>0.001</threshold>-->
</animation>
<animation>
<type>material</type>
<object-name>Canopy-FP-Rain</object-name>
<object-name>Canopy-Rear-Rain</object-name>
<object-name>Canopy-F-Rain</object-name>
<object-name>Canopy-Main-Rain</object-name>
<transparency>
<alpha-prop>sim/model/rain/raining-norm</alpha-prop>
<factor>0.7</factor>
<offset>0</offset>
<max>0.3</max>
<min>0.0075</min>
</transparency>
<!--<threshold>0.001</threshold>-->
</animation>
<animation> <animation>
<type>shader</type> <type>shader</type>
<shader>chrome</shader> <shader>chrome</shader>
@ -1261,11 +955,4 @@ $Id$
<object-name>Canopy-F</object-name> <object-name>Canopy-F</object-name>
</animation> </animation>
<!-- *** LoD for the whole model *** -->
<animation>
<type>range</type>
<min-m>0</min-m>
<max-m>10000</max-m>
</animation>
</PropertyList> </PropertyList>

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 KiB

Binary file not shown.