1
0
Fork 0
flightgear/src/Environment
Torsten Dreyer 06e8fe747f Precipitation updates from ThorstenR
required SimGear commit 75271c44a82ae0fb1ff9c91e93a12fa8b10099fd

Since the consensus seems to be that the precipitation clipping issue is with the panel code, attached is  my proposed update for the precipitation system in SG and FG

* without corresponding control structures in FGData it falls back to default, except I have fixed an inconsistency in freezing behavior - previously rain changed suddenly to snow when the temperature dropped below zero, but the reverse transition was dragged out and gave odd visible motion with the wind as snow gradually changed back to rain with the particle speed not well defined. Now both transitions are sudden. And I see no more particles flow against the wind

* with

 <!-- definitions for the detailed precipitation manager -->
 <precipitation-control>
     <rain-droplet-size type="float" userarchive="n">0.015</rain-droplet-size>
     <snow-flake-size type="float" userarchive="n">0.03</snow-flake-size>
     <detailed-precipitation type="bool" userarchive="n">false</detailed-precipitation>
     <illumination type="float" userarchive="n">1.0</illumination>
     <clip-distance type="float" userarchive="n">5.0</clip-distance>
  </precipitation-control>

added to Environment/environment.xml, the new system allows to switch more detailed management on. This provides

* explicit setting of rain droplet size and snow flake size by the weather system

* automatic sqrt(r) scaling of the vertical speed of raindrops

* automatic transition to snow when freezing for small droplets but hail for large droplet sizes (looks like snow, but has different particle dynamics)

* an illumination scaling factor to dim the precipitating based on the light we have in the scene (I still need to devise a property rule to set this automatically)

The clip distance is also exposed now and considered at startup of the system - might be useful for e.g. airships when the gas bag provides rain cover (?)   or to be simply off for open airplanes
2014-10-21 10:47:32 +02:00
..
atmosphere.cxx add atmosphere layer 8 for space exploration 2014-04-22 09:20:25 +02:00
atmosphere.hxx Fix unused private vars. 2013-07-04 20:24:56 +01:00
CMakeLists.txt A new comm radio and atis implementation 2014-02-28 11:45:49 +01:00
environment.cxx #918: fix jsbsim in-air repositioning issue 2012-11-15 20:20:40 +01:00
environment.hxx Move tiedpropertylist from flightgear to simgear 2011-02-06 15:44:09 +01:00
environment_ctrl.cxx Clean-up some SGMath dependencies. 2012-05-05 00:56:29 +02:00
environment_ctrl.hxx Environment controller overhaul 2010-09-11 16:11:35 +02:00
environment_mgr.cxx Bugfix: avoid sky colour errors when vis < 1000m 2013-12-19 17:18:09 +00:00
environment_mgr.hxx Environment manager: use aircraft_pos helper 2013-11-16 12:28:51 +00:00
ephemeris.cxx Defer SGEphemeris creation until ::init() 2012-09-24 00:37:46 +01:00
ephemeris.hxx Add license / copyright info to newly added files. 2010-06-27 20:34:00 +01:00
fgclouds.cxx Reset: remove commands 2013-11-12 22:47:46 +00:00
fgclouds.hxx Minor cleanup of cloud commands. 2013-03-27 22:48:47 +00:00
fgmetar.cxx Fix METAR-download bug on Windows. 2014-01-01 21:05:29 +00:00
fgmetar.hxx Update FGMetar for revised SGMetar constructor. 2011-10-21 10:57:45 +01:00
fgwind.cxx added GPL license header 2009-06-25 10:20:24 +02:00
fgwind.hxx added GPL license header 2009-06-25 10:20:24 +02:00
gravity.cxx remove inclusion of useless stdio.h 2011-05-31 20:39:32 +02:00
gravity.hxx Compute gravitational acceleration 2011-05-31 15:28:32 +02:00
magvarmanager.cxx Adapt to revised SGTime API 2012-09-24 00:03:23 +01:00
magvarmanager.hxx Make magavr a regular subsystem. 2012-09-18 00:58:27 +01:00
metarairportfilter.cxx Keep MSVC happy with the Environment updates 2010-09-11 20:32:37 +02:00
metarairportfilter.hxx Give the FGAirport class a sane filename. 2013-02-21 11:32:02 +00:00
metarproperties.cxx Bind the CAVOK flag to metarproperties 2014-02-25 09:42:00 +01:00
metarproperties.hxx Bind the CAVOK flag to metarproperties 2014-02-25 09:42:00 +01:00
precipitation_mgr.cxx Precipitation updates from ThorstenR 2014-10-21 10:47:32 +02:00
precipitation_mgr.hxx Remove unused class SGEnviro 2011-05-06 14:12:17 +02:00
presets.cxx Clean-up some SGMath dependencies. 2012-05-05 00:56:29 +02:00
presets.hxx #84: John Denker: Set correct file modes 2011-02-19 11:55:43 +01:00
realwx_ctrl.cxx Metar: finalise-position fast if Metar fails 2014-02-24 19:43:21 +00:00
realwx_ctrl.hxx Reset: ensure Wx controller destroys cleanly. 2013-10-29 23:01:29 +00:00
ridge_lift.cxx Spring-cleaning: some minor optimization 2012-03-06 22:28:18 +01:00
ridge_lift.hxx Refactor ridgelift: use simgear::TiedPropertyList 2011-02-14 20:26:39 +01:00
terrainsampler.cxx Fix classes derived from SubsystemGroup. 2012-09-19 11:37:19 +01:00
terrainsampler.hxx Oups - terrainsamplers header was modified, too 2010-08-23 17:52:19 +02:00