See #316: Caused issues with sky becoming black in dense fog.
Also: when the fog issue is solved, we could configure the constant
(black) clear color once only (during init), no need to do it in every
loop. Also, entire "if (skyblend) { ... } else {..}" was redundant,
since "if" and "else" clauses were all identical - and the "clearColor"
variables were unused. => Once the fog issue is solved, we can easily
improve the clearColor configuration here.
ThorstenB [Fri, 20 May 2011 17:48:05 +0000 (19:48 +0200)]
issue #316: panning not working when center-on-aircraft enabled
Panning feature looked broken to some users since auto-center is enabled
by default which blocks panning. center-on-aircraft is now disabled
automatically when view is panned.
Torsten Dreyer [Fri, 6 May 2011 12:12:17 +0000 (14:12 +0200)]
Remove unused class SGEnviro
This class and their source files visual_enviro.[h|c]xx were
unused since OSG transition. It's only functionality was to
keep a variable for the enable-state of rendering of precipitation.
This has now been moved to SGPrecipitation.
This patch also removes all references to this class and
visual_enviro.hxx. Wxradar needs a new implementation for cloud
echoes which probably should be part of fgclouds.
ThorstenB [Wed, 4 May 2011 19:34:15 +0000 (21:34 +0200)]
#310: c++ header dependency
Header's dependency is to <cstring> not <memory>. <memory> itself had
dependency to <cstring> for earlier GCC version though.
Curtis L. Olson [Tue, 3 May 2011 16:12:55 +0000 (11:12 -0500)]
Bruce Hellstrom @ ATC Flight Sim.
New module contributed: AV400WSim.
Supports communication with external (aka real) Garmin 400/500 WAAS flight
sim units. Includes changes to options.cxx and fg_io.cxx to support
invoking and configuring the new module.
Automatic tower positioning
New "auto-position" switch to always use closest tower for tower-view.
Exposes new "/sim/airport/closest-airport-id" property.
Display closest airport on groundradar by default.
Adrian Musceac: #303, YASim solver settings
The internal solver of YASim which computes drag and lift
coefficients now actually uses the values configured in
the XML input file for approach fuel, cruise fuel and cruise
glide angle.
fgpanel is basically the stripped down 2D-Panel code from
FlightGear. It is designed as a standalone lightweight panel
rendering engine to draw 2d panels on a lowcost computer/graphic card
without 3d acceleration at reasonablel framerates.
Patches for inclusion into the build system will follow.
Improve OSG caching.
Ensure property tree is provided early to modellib.
To disable: --prop:sim/rendering/cache=0 (enabled by default)
(also requires simgear update)
On-demand loading of Nasal modules.
Load a module whenever its /nasal/foo/enabled flag is set,
even if it was disabled at start-up. Also expose a property if it was
successfully loaded.
Support optional Nasal modules in fgdata/Nasal/MyModuleFoo
- Allow structuring generic Nasal sources into modules (i.e. support
separate source folders for multiplayer/local weather/... sources)
- Option to enable/disable loading of generic Nasal modules (i.e we only
need to load stuff that is really needed/enabled).
- Provide basic loading sequence: subfolders are strictly loaded _after_
the base directory. So submodules can rely on .nas-scripts like math.nas,
io.nas, debug.nas, ... to be already loaded - dropping the need for
awkward listeners/timers to delay module initialization (loading order
within Nasal/*.nas is still random)
Curtis L. Olson [Thu, 24 Mar 2011 19:31:13 +0000 (14:31 -0500)]
Variant of innosetup config file for developer snapshot release. Uses separate
paths so it can install along side the official release and not overwrite or
conflict with any files.
ThorstenB [Wed, 23 Mar 2011 22:52:36 +0000 (23:52 +0100)]
Bertrand Coconnier: Fix instant replay with JSBSim aircraft (bug #294)
Avoid re-trim to be triggered by property listeners during instant
replay (when the FDM is suspended).
ThorstenB [Mon, 21 Mar 2011 22:07:05 +0000 (23:07 +0100)]
replay/FDM shell subsystem refactoring
Move final bits of replay code to where it belongs.
Use subsystem suspend/resume for FDM shell during instant replay.
ThorstenB [Wed, 9 Mar 2011 22:02:19 +0000 (23:02 +0100)]
Fixed an property tieing issue on sim reset.
Oops, my commit f6fde388a2037341c7ce2a00e8ac199dff3c59a1 untied the
tank properties also on reset - should also re-tie them after the
reset then...
ThorstenB [Wed, 9 Mar 2011 21:04:03 +0000 (22:04 +0100)]
Fix navreceiver to make DME work with ILS signals.
Property "dme-in-range" should also work with ILS signals, which include
a DME. The nav database (dme_list) doesn't have separate entries for
"ILS-DME" (unlike for "VOR-DME"), so searching a DME by frequency didn't
work for ILS.
=> "instrumentation/nav[*]/dme-in-range" can now be used to enable/disable
cockpit DME displays.
ThorstenB [Mon, 7 Mar 2011 18:37:04 +0000 (19:37 +0100)]
Untie all TiedPropertyLists before destruction.
Untieing needs to be done prior to the destruction of the object which
aggregated the TiedPropertyList. So the TiedPropertyLists destructor can't
untie the properties automatically (and it doesn't). So, do some manual
clean-up.
ThorstenB [Mon, 7 Mar 2011 18:34:52 +0000 (19:34 +0100)]
Fix another (tiny) memory leak.
SGCloudField::addCloud does *not* keep a reference to SGNewCloud - so we
only need a temporary object. Also adapt to changed addCloud interface
to make things a little more obvious.
Curtis L. Olson [Mon, 28 Feb 2011 14:08:08 +0000 (08:08 -0600)]
Variant of the iss script for packaging "developers snapshot" releases.
Paths and variables have been carefully selected so this install can
coexist with the release install. The only thing shared is the "terrasync"
directory.
ThorstenB [Wed, 29 Dec 2010 21:13:04 +0000 (22:13 +0100)]
Expose vertical speed for MP planes
vertical speed of MP planes was always 0,
calculate their (average) vertical speed since
it's required for TCAS and TCAS display
ThorstenB [Wed, 29 Dec 2010 20:57:49 +0000 (21:57 +0100)]
Make voiceplayer independent
- former mk-viii voiceplayer is now an independent FGVoicePlayer
- voiceplayer still sits in mk-viii module for now
- add option to configure location/prefix of voice samples
- add pause/resume to voiceplayer
ThorstenB [Tue, 15 Feb 2011 23:49:00 +0000 (00:49 +0100)]
Fix huge multiplayer memory leak.
Almost all FGPropertyData elements received via MP were leaked.
Property data is now cleanly deallocated in the FGExternalMotionData destructor.
Thanks to Jester for reporting rising mem consumption in MP mode.
ThorstenB [Sun, 13 Feb 2011 15:50:23 +0000 (16:50 +0100)]
Avoid crash and/or long delay on shutdown in METAR loader.
Catching loader thread on subsystem destruction is too late, since it
depends on other subsystems (which are destroyed earlier).
=> Need to stop & join thread during subsystem shutdown.
Also changed loader sleep logic - to avoid excessive delays (up to
30 seconds) on shutdown.
(Issues mostly happened when running offline with realwx enabled.)
ThorstenB [Sun, 13 Feb 2011 15:50:23 +0000 (16:50 +0100)]
Avoid crash and/or long delay on shutdown in METAR loader.
Catching loader thread on subsystem destruction is too late, since it
depends on other subsystems (which are destroyed earlier).
=> Need to stop & join thread during subsystem shutdown.
Also changed loader sleep logic - to avoid excessive delays (up to
30 seconds) on shutdown.
(Issues mostly happened when running offline with realwx enabled.)