1
0
Fork 0

Merge branch 'master' of git://gitorious.org/fg/fgdata

This commit is contained in:
BARANGER Emmanuel 2012-02-24 21:56:26 +01:00
commit 99b1e58ea9
11 changed files with 50 additions and 58 deletions

11
Effects/runway-dds.eff Normal file
View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
<name>Effects/runway-dds</name>
<inherits-from>Effects/runway</inherits-from>
<parameters>
<texture n="4">
<image>Textures/Runway/rwy-normalmap.dds</image>
</texture>
<normalmap_dds>1.0</normalmap_dds>
</parameters>
</PropertyList>

View file

@ -4,7 +4,7 @@
<inherits-from>Effects/terrain-default</inherits-from> <inherits-from>Effects/terrain-default</inherits-from>
<parameters> <parameters>
<texture n="4"> <texture n="4">
<image>Textures.high/Runway/rwy-normalmap.dds</image> <image>Textures/Runway/rwy-normalmap.png</image>
<filter>linear-mipmap-linear</filter> <filter>linear-mipmap-linear</filter>
<wrap-s>repeat</wrap-s> <wrap-s>repeat</wrap-s>
<wrap-t>repeat</wrap-t> <wrap-t>repeat</wrap-t>
@ -15,7 +15,7 @@
<!-- use this form for a cube cross --> <!-- use this form for a cube cross -->
<!--<image>Aircraft/Generic/Effects/CubeCrosses/blue_sky_big.jpg</image>--> <!--<image>Aircraft/Generic/Effects/CubeCrosses/blue_sky_big.jpg</image>-->
<!-- use this form for a 6 image cube map --> <!-- use this form for a 6 image cube map -->
<images> <images>
<positive-x>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_px.png</positive-x> <positive-x>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_px.png</positive-x>
<negative-x>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_nx.png</negative-x> <negative-x>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_nx.png</negative-x>
@ -41,7 +41,7 @@
<internal-format>normalized</internal-format> <internal-format>normalized</internal-format>
</texture> </texture>
<texture n="8"> <texture n="8">
<image>Textures.high/Runway/rwy-reflect.png</image> <image>Textures/Runway/rwy-reflect.png</image>
<filter>linear-mipmap-linear</filter> <filter>linear-mipmap-linear</filter>
<wrap-s>repeat</wrap-s> <wrap-s>repeat</wrap-s>
<wrap-t>repeat</wrap-t> <wrap-t>repeat</wrap-t>
@ -50,11 +50,10 @@
<rendering-hint>transparent</rendering-hint> <rendering-hint>transparent</rendering-hint>
<shade-model>smooth</shade-model> <shade-model>smooth</shade-model>
<rainbowiness type="float">0.01</rainbowiness> <rainbowiness type="float">0.01</rainbowiness>
<fresneliness>0.01</fresneliness> <fresneliness type="float">0.01</fresneliness>
<noisiness>0.15</noisiness> <noisiness type="float">0.15</noisiness>
<!-- <refl_correction>0.0</refl_correction> --> <ambient_correction type="float">-0.15</ambient_correction>
<ambient_correction>-0.15</ambient_correction> <normalmap_dds type="float">0.0</normalmap_dds>
<normalmap_dds>1</normalmap_dds>
<vertex-program-two-side type="bool">false</vertex-program-two-side> <vertex-program-two-side type="bool">false</vertex-program-two-side>
<cull-face>back</cull-face> <cull-face>back</cull-face>
<wetness> <wetness>

View file

@ -330,7 +330,7 @@
<sea> <sea>
<config> <config>
<wind-filter-time type="double">60.0</wind-filter-time> <wind-filter-time type="double">0.05</wind-filter-time>
</config> </config>
</sea> </sea>

View file

@ -26,9 +26,7 @@
<filter> <filter>
<name>EnvironmentInterpolator:temperature-sea-level-degc</name> <name>EnvironmentInterpolator:temperature-sea-level-degc</name>
<enable> <enable>
<condition> <property>/environment/config/enabled</property>
<property>/environment/config/enabled</property>
</condition>
</enable> </enable>
<input>/environment/config/interpolated/temperature-sea-level-degc</input> <input>/environment/config/interpolated/temperature-sea-level-degc</input>
<output>/environment/temperature-sea-level-degc</output> <output>/environment/temperature-sea-level-degc</output>
@ -39,9 +37,7 @@
<filter> <filter>
<name>EnvironmentInterpolator:dewpoint-sea-level-degc</name> <name>EnvironmentInterpolator:dewpoint-sea-level-degc</name>
<enable> <enable>
<condition> <property>/environment/config/enabled</property>
<property>/environment/config/enabled</property>
</condition>
</enable> </enable>
<input>/environment/config/interpolated/dewpoint-sea-level-degc</input> <input>/environment/config/interpolated/dewpoint-sea-level-degc</input>
<output>/environment/dewpoint-sea-level-degc</output> <output>/environment/dewpoint-sea-level-degc</output>
@ -58,9 +54,7 @@
<type>noise-spike</type> <type>noise-spike</type>
<max-rate-of-change>0.03</max-rate-of-change> <max-rate-of-change>0.03</max-rate-of-change>
<enable> <enable>
<condition> <property>/environment/config/enabled</property>
<property>/environment/config/enabled</property>
</condition>
</enable> </enable>
<input>/environment/config/interpolated/pressure-sea-level-inhg</input> <input>/environment/config/interpolated/pressure-sea-level-inhg</input>
<output>/environment/pressure-sea-level-inhg</output> <output>/environment/pressure-sea-level-inhg</output>
@ -69,9 +63,7 @@
<filter> <filter>
<name>EnvironmentInterpolator:visibility-m</name> <name>EnvironmentInterpolator:visibility-m</name>
<enable> <enable>
<condition> <property>/environment/config/enabled</property>
<property>/environment/config/enabled</property>
</condition>
</enable> </enable>
<input> <input>
<condition> <condition>
@ -91,9 +83,7 @@
<filter> <filter>
<name>EnvironmentInterpolator:wind-from-north</name> <name>EnvironmentInterpolator:wind-from-north</name>
<enable> <enable>
<condition> <property>/environment/config/enabled</property>
<property>/environment/config/enabled</property>
</condition>
</enable> </enable>
<input> <input>
<condition> <condition>
@ -103,16 +93,14 @@
</input> </input>
<input>/environment/config/interpolated/wind-from-north-fps</input> <input>/environment/config/interpolated/wind-from-north-fps</input>
<output>/environment/wind-from-north-fps</output> <output>/environment/wind-from-north-fps</output>
<type>exponential</type> <type>noise-spike</type>
<filter-time>5</filter-time> <max-rate-of-change>0.5</max-rate-of-change>
</filter> </filter>
<filter> <filter>
<name>EnvironmentInterpolator:wind-from-east</name> <name>EnvironmentInterpolator:wind-from-east</name>
<enable> <enable>
<condition> <property>/environment/config/enabled</property>
<property>/environment/config/enabled</property>
</condition>
</enable> </enable>
<input> <input>
<condition> <condition>
@ -122,8 +110,8 @@
</input> </input>
<input>/environment/config/interpolated/wind-from-east-fps</input> <input>/environment/config/interpolated/wind-from-east-fps</input>
<output>/environment/wind-from-east-fps</output> <output>/environment/wind-from-east-fps</output>
<type>exponential</type> <type>noise-spike</type>
<filter-time>5</filter-time> <max-rate-of-change>0.5</max-rate-of-change>
</filter> </filter>
<filter> <filter>
@ -138,16 +126,14 @@
</expression> </expression>
</input> </input>
<output>/environment/wind-from-down-fps</output> <output>/environment/wind-from-down-fps</output>
<type>exponential</type> <type>noise-spike</type>
<filter-time>0.5</filter-time> <max-rate-of-change>2.0</max-rate-of-change>
</filter> </filter>
<filter> <filter>
<name>EnvironmentInterpolator:turbulence-raw-magnitude</name> <name>EnvironmentInterpolator:turbulence-raw-magnitude</name>
<enable> <enable>
<condition> <property>/environment/config/enabled</property>
<property>/environment/config/enabled</property>
</condition>
</enable> </enable>
<input> <input>
<condition> <condition>
@ -159,16 +145,14 @@
<property>/environment/config/interpolated/turbulence/magnitude-norm</property> <property>/environment/config/interpolated/turbulence/magnitude-norm</property>
</input> </input>
<output>/environment/turbulence/raw-magnitude-norm</output> <output>/environment/turbulence/raw-magnitude-norm</output>
<type>exponential</type> <type>noise-spike</type>
<filter-time>1</filter-time> <max-rate-of-change>0.2</max-rate-of-change>
</filter> </filter>
<filter> <filter>
<name>EnvironmentInterpolator:turbulence-magnitude</name> <name>EnvironmentInterpolator:turbulence-magnitude</name>
<enable> <enable>
<condition> <property>/environment/config/enabled</property>
<property>/environment/config/enabled</property>
</condition>
</enable> </enable>
<input> <input>
<expression> <expression>
@ -186,9 +170,7 @@
<filter> <filter>
<name>EnvironmentInterpolator:turbulence-rate</name> <name>EnvironmentInterpolator:turbulence-rate</name>
<enable> <enable>
<condition> <property>/environment/config/enabled</property>
<property>/environment/config/enabled</property>
</condition>
</enable> </enable>
<input>/environment/config/interpolated/turbulence/rate-hz</input> <input>/environment/config/interpolated/turbulence/rate-hz</input>
<output>/environment/turbulence/rate-hz</output> <output>/environment/turbulence/rate-hz</output>
@ -205,16 +187,16 @@
<name>EnvironmentInterpolator:wave:wind-from-east-fps</name> <name>EnvironmentInterpolator:wave:wind-from-east-fps</name>
<input>/environment/config/boundary/entry[0]/wind-from-east-fps</input> <input>/environment/config/boundary/entry[0]/wind-from-east-fps</input>
<output>/environment/sea/surface/wind-from-east-fps</output> <output>/environment/sea/surface/wind-from-east-fps</output>
<type>exponential</type> <type>noise-spike</type>
<filter-time>/environment/sea/config/wind-filter-time</filter-time> <max-rate-of-change>/environment/sea/config/wind-filter-time</max-rate-of-change>
</filter> </filter>
<filter> <filter>
<name>EnvironmentInterpolator:wave:wind-from-north-fps</name> <name>EnvironmentInterpolator:wave:wind-from-north-fps</name>
<input>/environment/config/boundary/entry[0]/wind-from-north-fps</input> <input>/environment/config/boundary/entry[0]/wind-from-north-fps</input>
<output>/environment/sea/surface/wind-from-north-fps</output> <output>/environment/sea/surface/wind-from-north-fps</output>
<type>exponential</type> <type>noise-spike</type>
<filter-time>/environment/sea/config/wind-filter-time</filter-time> <max-rate-of-change>/environment/sea/config/wind-filter-time</max-rate-of-change>
</filter> </filter>
<!--filter> unused? <!--filter> unused?

View file

@ -149,8 +149,8 @@
<!-- interpolate the wind vector's components --> <!-- interpolate the wind vector's components -->
<filter> <filter>
<name>MetarController:wind-from-north-fps</name> <name>MetarController:wind-from-north-fps</name>
<type>exponential</type> <type>noise-spike</type>
<filter-time>30</filter-time> <max-rate-of-change>1.0</max-rate-of-change>
<enable> <enable>
<condition> <condition>
<property>/environment/metar/valid</property> <property>/environment/metar/valid</property>
@ -163,8 +163,8 @@
<filter> <filter>
<name>MetarController:wind-from-east-fps</name> <name>MetarController:wind-from-east-fps</name>
<type>exponential</type> <type>noise-spike</type>
<filter-time>30</filter-time> <max-rate-of-change>1.0</max-rate-of-change>
<enable> <enable>
<condition> <condition>
<property>/environment/metar/valid</property> <property>/environment/metar/valid</property>
@ -396,8 +396,8 @@
</filter> </filter>
<filter> <filter>
<name>MetarController:cloud-alpha</name> <name>MetarController:cloud-alpha</name>
<type>exponential</type> <type>noise-spike</type>
<filter-time>5</filter-time> <max-rate-of-change>0.2</max-rate-of-change>
<enable> <enable>
<condition> <condition>
<property>/environment/metar/valid</property> <property>/environment/metar/valid</property>

View file

@ -54,8 +54,8 @@ void relWind(out float rel_wind_speed_kts, out float rel_wind_from_rad)
float rel_wind_speed_from_north_kts = WindN*fps2kts + speed_north_kts; float rel_wind_speed_from_north_kts = WindN*fps2kts + speed_north_kts;
//combine relative speeds north and east to get relative windspeed in kts //combine relative speeds north and east to get relative windspeed in kts
rel_wind_speed_kts = sqrt(pow(abs(rel_wind_speed_from_east_kts), 2) rel_wind_speed_kts = sqrt(rel_wind_speed_from_east_kts*rel_wind_speed_from_east_kts
+ pow(abs(rel_wind_speed_from_north_kts), 2)); + rel_wind_speed_from_north_kts*rel_wind_speed_from_north_kts);
//calculate the relative wind direction //calculate the relative wind direction
float rel_wind_from_deg = degrees(atan(rel_wind_speed_from_east_kts, rel_wind_speed_from_north_kts)); float rel_wind_from_deg = degrees(atan(rel_wind_speed_from_east_kts, rel_wind_speed_from_north_kts));

View file

@ -72,7 +72,7 @@ void main(void)
//bool Status = true; //bool Status = true;
float windEffect = sqrt(pow(abs(WindE),2)+pow(abs(WindN),2)) * 0.6; //wind speed in kt float windEffect = sqrt( WindE*WindE + WindN*WindN ) * 0.6; //wind speed in kt
float windScale = 15.0/(3.0 + windEffect); //wave scale float windScale = 15.0/(3.0 + windEffect); //wave scale
float windEffect_low = 0.3 + 0.7 * smoothstep(0.0, 5.0, windEffect); //low windspeed wave filter float windEffect_low = 0.3 + 0.7 * smoothstep(0.0, 5.0, windEffect); //low windspeed wave filter
float waveRoughness = 0.05 + smoothstep(0.0, 20.0, windEffect); //wave roughness filter float waveRoughness = 0.05 + smoothstep(0.0, 20.0, windEffect); //wave roughness filter

View file

@ -143,7 +143,7 @@ void main(void)
float cover = 0.0; float cover = 0.0;
//bool Status = true; //bool Status = true;
float windEffect = sqrt(pow(abs(WindE),2)+pow(abs(WindN),2)) * 0.6; //wind speed in kt float windEffect = sqrt( WindE*WindE + WindN*WindN ) * 0.6; //wind speed in kt
float windScale = 15.0/(3.0 + windEffect); //wave scale float windScale = 15.0/(3.0 + windEffect); //wave scale
float windEffect_low = 0.3 + 0.7 * smoothstep(0.0, 5.0, windEffect); //low windspeed wave filter float windEffect_low = 0.3 + 0.7 * smoothstep(0.0, 5.0, windEffect); //low windspeed wave filter
float waveRoughness = 0.01 + smoothstep(0.0, 40.0, windEffect); //wave roughness filter float waveRoughness = 0.01 + smoothstep(0.0, 40.0, windEffect); //wave roughness filter

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB