1
0
Fork 0

Added field-of-view to the save file of my aircraft

Updated the radar to a 2d screen , still not working 100%
This commit is contained in:
sydadams 2007-12-27 03:27:09 +00:00
parent 9b16db56f0
commit 1ef0b7cf8a
6 changed files with 1213 additions and 958 deletions

View file

@ -7,25 +7,24 @@ Syd Adams
<path>RDR160.ac</path>
<animation>
<type>material</type>
<object-name>RDR160.screen</object-name>
<emission>
<red>0.8</red>
<green>0.9</green>
<blue>0.8</blue>
<factor-prop>/instrumentation/radar/dim</factor-prop>
</emission>
</animation>
<animation>
<type>material</type>
<object-name>RDR160.labels</object-name>
<object-name>RDR160.rngup</object-name>
<object-name>RDR160.rngdwn</object-name>
<object-name>RDR160.modeup</object-name>
<object-name>RDR160.modedwn</object-name>
<object-name>RDR160.hold</object-name>
<object-name>RDR160.trkdwn</object-name>
<object-name>RDR160.trkup</object-name>
<object-name>RDR160.nav</object-name>
<object-name>RDR160.power</object-name>
<object-name>RDR160.tilt</object-name>
<emission>
<red>1.0</red>
<green>0.2</green>
<blue>0.0</blue>
<factor-prop>/sim/model//material/instruments/factor</factor-prop>
<red>0.025</red>
<green>0.025</green>
<blue>0.025</blue>
<factor-prop>systems/electrical/outputs/instrument-lights</factor-prop>
</emission>
</animation>
@ -93,7 +92,7 @@ Syd Adams
</animation>
<!-- OSG Pick Animations -->
<!--
<animation>
<type>pick</type>
<object-name>brt.up</object-name>
@ -249,5 +248,5 @@ Syd Adams
</binding>
</action>
</animation>
-->
</PropertyList>

File diff suppressed because it is too large Load diff

View file

@ -10,8 +10,6 @@
RADAR = props.globals.getNode("/instrumentation/radar",1);
FDM_ON = 0;
P_Str =["off","stby", "tst","on"];
RADAR.getNode("radar-texture-path",1).setValue("Aircraft/Instruments-3d/RDR-160/od_wxradar.rgb");
RADAR.getNode("echo-texture-path",1).setValue("Aircraft/Instruments/Textures/wxecho.rgb");
RADAR.getNode("serviceable",1).setBoolValue(1);
RADAR.getNode("range",1).setIntValue(20);
RADAR.getNode("heading-marker",1).setBoolValue(0);

Binary file not shown.

View file

@ -4,31 +4,254 @@
<PropertyList>
<name>wxradar hotspots</name>
<w-base>170</w-base>
<h-base>130</h-base>
<w>170</w>
<h>130</h>
<w-base>160</w-base>
<h-base>120</h-base>
<w>160</w>
<h>120</h>
<layers>
<layer>
<name>background</name>
<w>92</w>
<h>75</h>
<condition>
<not-equals>
<property>instrumentation/radar/switch</property>
<value>off</value>
</not-equals>
</condition>
<texture>
<path>Aircraft/Instruments-3d/RDR-160/bkgrd.rgb</path>
<x1>0.030</x1>
<y1>0.112</y1>
<x2>0.979</x2>
<y2>0.884</y2>
</texture>
<emissive>true</emissive>
<transformations>
<transformation>
<type>y-shift</type>
<offset>8.3</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>radar data</name>
<emissive>true</emissive>
<w>92</w>
<h>75</h>
<condition>
<equals>
<property>instrumentation/radar/switch</property>
<value>on</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments_3d/RDR-160/od_wxradar.rgb</path>
<x1>0.0</x1>
<y1>0.0</y1>
<x2>1.0</x2>
<y2>1.0</y2>
</texture>
<transformations>
<transformation>
<type>y-shift</type>
<offset>8.3</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>Status</name>
<type>text</type>
<font>helvetica_bold</font>
<point-size>4</point-size>
<color>
<red>0.2</red>
<green>0.6</green>
<blue>0.8</blue>
</color>
<chunks>
<chunk>
<type>text-value</type>
<property>instrumentation/radar/status</property>
</chunk>
</chunks>
<transformations>
<transformation>
<type>y-shift</type>
<offset>-18.0</offset>
</transformation>
<transformation>
<type>x-shift</type>
<offset>-48.0</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>Range1</name>
<condition>
<not-equals>
<property>instrumentation/radar/switch</property>
<value>off</value>
</not-equals>
</condition>
<type>text</type>
<font>helvetica_bold</font>
<point-size>4</point-size>
<color>
<red>0.2</red>
<green>0.6</green>
<blue>0.8</blue>
</color>
<chunks>
<chunk>
<type>number-value</type>
<property>instrumentation/radar/range</property>
<scale>1</scale>
<format>%3.0f</format>
</chunk>
</chunks>
<transformations>
<transformation>
<type>y-shift</type>
<offset>28.0</offset>
</transformation>
<transformation>
<type>x-shift</type>
<offset>41.0</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>Range2</name>
<condition>
<not-equals>
<property>instrumentation/radar/switch</property>
<value>off</value>
</not-equals>
</condition>
<type>text</type>
<font>helvetica_bold</font>
<point-size>4</point-size>
<color>
<red>0.2</red>
<green>0.6</green>
<blue>0.8</blue>
</color>
<chunks>
<chunk>
<type>number-value</type>
<property>instrumentation/radar/range</property>
<scale>0.75</scale>
<format>%2.0f</format>
</chunk>
</chunks>
<transformations>
<transformation>
<type>y-shift</type>
<offset>-1.0</offset>
</transformation>
<transformation>
<type>x-shift</type>
<offset>41.0</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>Range3</name>
<condition>
<not-equals>
<property>instrumentation/radar/switch</property>
<value>off</value>
</not-equals>
</condition>
<type>text</type>
<font>helvetica_bold</font>
<point-size>4</point-size>
<color>
<red>0.2</red>
<green>0.6</green>
<blue>0.8</blue>
</color>
<chunks>
<chunk>
<type>number-value</type>
<property>instrumentation/radar/range</property>
<scale>0.5</scale>
<format>%2.0f</format>
</chunk>
</chunks>
<transformations>
<transformation>
<type>y-shift</type>
<offset>-13.0</offset>
</transformation>
<transformation>
<type>x-shift</type>
<offset>32.0</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>Range4</name>
<condition>
<not-equals>
<property>instrumentation/radar/switch</property>
<value>off</value>
</not-equals>
</condition>
<type>text</type>
<font>helvetica_bold</font>
<point-size>4</point-size>
<color>
<red>0.2</red>
<green>0.6</green>
<blue>0.8</blue>
</color>
<chunks>
<chunk>
<type>number-value</type>
<property>instrumentation/radar/range</property>
<scale>0.25</scale>
<format>%2.0f</format>
</chunk>
</chunks>
<transformations>
<transformation>
<type>y-shift</type>
<offset>-24.0</offset>
</transformation>
<transformation>
<type>x-shift</type>
<offset>19.0</offset>
</transformation>
</transformations>
</layer>
</layers>
<actions>
<!--
<action>
<name>outline</name>
<button>0</button>
<x>-85</x>
<y>-65</y>
<w>170</w>
<h>130</h>
<x>-80</x>
<y>-60</y>
<w>160</w>
<h>120</h>
</action>
-->
<action>
<name>data toggle</name>
<button>0</button>
<x>-73</x>
<x>-74</x>
<y>-2</y>
<w>12</w>
<h>8</h>
@ -41,7 +264,7 @@
<action>
<name>pos toggle</name>
<button>0</button>
<x>-73</x>
<x>-74</x>
<y>-20</y>
<w>12</w>
<h>8</h>