]> git.mxchange.org Git - flightgear.git/log
flightgear.git
15 years agoDivision by zero fixes from Vivian Meazza.
timoore [Sun, 18 Jan 2009 21:56:55 +0000 (21:56 +0000)]
Division by zero fixes from Vivian Meazza.

15 years agoCsaba/Jester : initialize all per-engine and per-tank attributes ( follow-up )
fredb [Sat, 17 Jan 2009 15:44:13 +0000 (15:44 +0000)]
Csaba/Jester :  initialize all per-engine and per-tank attributes ( follow-up )

15 years agoCsaba/Jester : initialize all per-engine and per-tank attributes
fredb [Sat, 17 Jan 2009 10:05:05 +0000 (10:05 +0000)]
Csaba/Jester :  initialize all per-engine and per-tank attributes

15 years agoUpdate MSVC 7.1 project
fredb [Fri, 16 Jan 2009 07:31:01 +0000 (07:31 +0000)]
Update MSVC 7.1 project

15 years agoPad T_PositionMsg to a multiple of 8 bytes, and check for messages that aren't.
Tim Moore [Thu, 15 Jan 2009 15:03:34 +0000 (16:03 +0100)]
Pad T_PositionMsg to a multiple of 8 bytes, and check for messages that aren't.

T_PositionMsg had different sizes on 32 and 64 bit systems, which is bad when
a struct is put directly into an network message.

Try to work around this difference in old clients still on the network.

15 years agoFGMultiplayMgr: use binary search to find a property by id
Tim Moore [Thu, 15 Jan 2009 12:05:23 +0000 (13:05 +0100)]
FGMultiplayMgr: use binary search to find a property by id

15 years agoApply Ron Jensen's fix for Csaba's atan2() fix. Also remove some dead code,
jmt [Wed, 14 Jan 2009 11:18:06 +0000 (11:18 +0000)]
Apply Ron Jensen's fix for Csaba's atan2() fix. Also remove some dead code,
and use SG_NORMALIZE_RANGE.

15 years agoFGClouds: initialize clouds_3d_enabled in constructor.
Tim Moore [Wed, 14 Jan 2009 10:33:00 +0000 (11:33 +0100)]
FGClouds: initialize clouds_3d_enabled in constructor.

From Csaba Halász

15 years agoHUD::Ladder::draw was capturing the value of a freed temporary
Tim Moore [Wed, 14 Jan 2009 10:22:18 +0000 (11:22 +0100)]
HUD::Ladder::draw was capturing the value of a freed temporary

Fix from Csaba Halász

15 years agoFGEnvironment: fix broken copy constructor.
Tim Moore [Wed, 14 Jan 2009 08:19:41 +0000 (09:19 +0100)]
FGEnvironment: fix broken copy constructor.

Noticed by Csaba Halász.

15 years agoChange the near plane value back to .1
Tim Moore [Fri, 9 Jan 2009 23:11:41 +0000 (00:11 +0100)]
Change the near plane value back to .1

By popular demand...

15 years agoDivide-by-zero fixes from Csaba Halász
timoore [Thu, 8 Jan 2009 07:57:04 +0000 (07:57 +0000)]
Divide-by-zero fixes from Csaba Halász

15 years agoPrevent exceptions in getRunwayByIdent when a malformed rwyuse.xml means
jmt [Tue, 6 Jan 2009 16:56:26 +0000 (16:56 +0000)]
Prevent exceptions in getRunwayByIdent when a malformed rwyuse.xml means
there is no valid active runway. This is not ideal, since it masks underlying
problems - the real fix is to make the runway-use code more robust and
validate input XML.

15 years agoProtect against divide-by-zero in setCameraParameters
timoore [Sat, 3 Jan 2009 00:15:58 +0000 (00:15 +0000)]
Protect against divide-by-zero in setCameraParameters

Found by Csaba Halász

15 years agoNaN fix by Csaba/Jester - prefer atan2(x,y) to atan(a/y).
jmt [Fri, 2 Jan 2009 12:34:28 +0000 (12:34 +0000)]
NaN fix by Csaba/Jester - prefer atan2(x,y) to atan(a/y).

15 years agoTemporary hack to avoid NaN problems when _mp is negative (?). Discovered by Csaba
fredb [Thu, 1 Jan 2009 10:18:13 +0000 (10:18 +0000)]
Temporary hack to avoid NaN problems when _mp is negative (?). Discovered by Csaba

15 years agoCsaba/Alexis : fix a NAN problem when wind is unspecified in a metar
fredb [Tue, 30 Dec 2008 23:13:44 +0000 (23:13 +0000)]
Csaba/Alexis : fix a NAN problem when wind is unspecified in a metar

15 years agoWin32 fixes
fredb [Tue, 30 Dec 2008 11:03:45 +0000 (11:03 +0000)]
Win32 fixes

15 years agoPrevent CVS from complaining about unknown files in ATCDCL.
durk [Tue, 30 Dec 2008 07:14:47 +0000 (07:14 +0000)]
Prevent CVS from complaining about unknown files in ATCDCL.

15 years agoMerge branch 'tbm/graphics-bug' into maint2
Tim Moore [Sat, 3 Jan 2009 23:05:45 +0000 (00:05 +0100)]
Merge branch 'tbm/graphics-bug' into maint2

15 years agoWin32 fixes
fredb [Sat, 27 Dec 2008 16:09:01 +0000 (16:09 +0000)]
Win32 fixes

15 years agoRemove warnings
fredb [Sat, 27 Dec 2008 16:08:21 +0000 (16:08 +0000)]
Remove warnings

15 years agoSet far camera reference frame to ABSOLUTE_RF
timoore [Thu, 1 Jan 2009 09:35:15 +0000 (09:35 +0000)]
Set far camera reference frame to ABSOLUTE_RF

This was lost when I stopped cloning the near camera to make the far
camera. The result was a lot of breakage, including explicit camera
configurations not working and various ordering issues too.

15 years agoSet BACKGROUND_BIT as camera node mask.
timoore [Tue, 30 Dec 2008 23:36:51 +0000 (23:36 +0000)]
Set BACKGROUND_BIT as camera node mask.

This prevents the dreaded black rectangle from appearing on systems
that don't have OpenGL frame buffer object support.

15 years agoChange the order of the main cameras from NESTED_RENDER to POST_RENDER
timoore [Tue, 30 Dec 2008 21:09:46 +0000 (21:09 +0000)]
Change the order of the main cameras from NESTED_RENDER to POST_RENDER

This seems to be accepted OSG usage for slave cameras. It's possible
that this order is important for rendering instruments that use RTT
textures on systems without frame buffer object support. I'm thinking
that the resulting bugs may be implicated in the "black rectangle" problem.

15 years agoDon't clone far camera; create a new one and initialize it from the near camera
timoore [Tue, 30 Dec 2008 09:32:53 +0000 (09:32 +0000)]
Don't clone far camera; create a new one and initialize it from the near camera

The clone operation may be sharing things that shouldn't be shared.

15 years agoExpose the CameraGroup near, far, and near/far boundry as properties
timoore [Sat, 27 Dec 2008 14:35:33 +0000 (14:35 +0000)]
Expose the CameraGroup near, far, and near/far boundry as properties

The near/far boundary, called "near-field", can be set to 0 which
disables the far camera and renders the whole scene using only one
camera. I'm hoping that this may be useful in resolving some
system-specific rendering bugs.

Various fixes were made to correctly render the scene using only the
near camera.

15 years agoStuart BUCHANAN: fix METAR cloud interpolation
mfranz [Sun, 21 Dec 2008 15:52:29 +0000 (15:52 +0000)]
Stuart BUCHANAN: fix METAR cloud interpolation

"I've managed to fix this by differentiating rebuilding the 3D layers
(e.g. due to METAR updates) from rebuilding the entire environment (due to a
change in scenario)."

15 years agoDon't try to fetch tiles when lat or lon are invalid
fredb [Sun, 21 Dec 2008 09:29:33 +0000 (09:29 +0000)]
Don't try to fetch tiles when lat or lon are invalid

15 years agorevert to using a cached list of aircraft -- scanning the Aircraft/
mfranz [Sat, 20 Dec 2008 23:24:50 +0000 (23:24 +0000)]
revert to using a cached list of aircraft -- scanning the Aircraft/
dirs is only fast enough with hot file-cache, but a bit too painful
otherwise. Updating the aircraft.list is now easier, though: Just
type   $ fgfs --aircraft=?<TAB>

15 years agoFix path
fredb [Sat, 20 Dec 2008 15:41:45 +0000 (15:41 +0000)]
Fix path

15 years agoPackaging for the 1.9.0 release
fredb [Sat, 20 Dec 2008 15:15:30 +0000 (15:15 +0000)]
Packaging for the 1.9.0 release

15 years agobetter instructions
mfranz [Sat, 20 Dec 2008 12:50:03 +0000 (12:50 +0000)]
better instructions

15 years agoviewer position: tie variables directly, rather than getter functions
mfranz [Sat, 20 Dec 2008 12:49:37 +0000 (12:49 +0000)]
viewer position: tie variables directly, rather than getter functions

15 years agolive-compile aircraft list, instead of requiring to build it
mfranz [Sat, 20 Dec 2008 10:32:42 +0000 (10:32 +0000)]
live-compile aircraft list, instead of requiring to build it
regularly. That's fast enough.

15 years agoDocumentation update: Openal & OSG.
durk [Sat, 20 Dec 2008 09:12:31 +0000 (09:12 +0000)]
Documentation update: Openal & OSG.

15 years agoStuart : The attached patch
fredb [Fri, 19 Dec 2008 23:11:58 +0000 (23:11 +0000)]
Stuart : The attached patch
reverts one of my changes which ensured that the 3D clouds were updated with
METAR. Unfortunately this had the side-effect of over-writing the environment
properties, and therefore nuking the interpolation work.

15 years agoAttempt to sort out the version number mess in preparation for the v1.9.0
curt [Fri, 19 Dec 2008 20:41:57 +0000 (20:41 +0000)]
Attempt to sort out the version number mess in preparation for the v1.9.0
release.

15 years agomark file names (for post-processing)
mfranz [Fri, 19 Dec 2008 13:38:25 +0000 (13:38 +0000)]
mark file names (for post-processing)

15 years agoexport absolute viewer coordinates
mfranz [Fri, 19 Dec 2008 13:37:54 +0000 (13:37 +0000)]
export absolute viewer coordinates

15 years agoStuart Buchanan :
fredb [Fri, 19 Dec 2008 07:42:13 +0000 (07:42 +0000)]
Stuart Buchanan :

Attached is yet another 3D clouds patch, to fix the following:
1) The 3D clouds were not modified by the cloud coverage, due to some problems with osg::Switch
2) METAR changes to cloud coverage were not obeyed.
3) Making changes via the Cloud dialog had no effect unless 3D clouds were toggled.
4) Cloud cover was too sparse.
5) 3D Stratus clouds caused performance issues on some hardware (fixed by removing 3D stratus from cloudlayers.xml - it will now be a 2D layer).

15 years agoCsaba/"Jester" and /me: since a few weeks the property browser had
mfranz [Thu, 18 Dec 2008 20:18:50 +0000 (20:18 +0000)]
Csaba/"Jester" and /me: since a few weeks the property browser had
displayed garbage in the title line if one left a directory. Jester
spent a lot of time finding the cause: a bug that must have been
there since ... forever: fgfs reported to PUI the string addresses
as returned by SGPropertyNode::getStringValue() without considering
that this address isn't valid after the next write access to that
node! It's almost a miracle that it worked so well for so long,
despite that issue. (I also used to opportunity for some more
cleanup -- so I'm to blame for any newly introduced bugs, and
also for reverting some of Jester's cleanups. :-)

15 years agonow that /environment/weather-scenario is respected at startup, we
mfranz [Thu, 18 Dec 2008 13:08:44 +0000 (13:08 +0000)]
now that /environment/weather-scenario is respected at startup, we
actually have to set it to get live weather.
--enable-real-weather-fetch shall imply weather-sceneario=METAR.

15 years agosegfault--
mfranz [Thu, 18 Dec 2008 11:49:33 +0000 (11:49 +0000)]
segfault--

15 years agoJames Turner : in the 'tower' view, where the tower position is explicitly given...
fredb [Thu, 18 Dec 2008 06:52:51 +0000 (06:52 +0000)]
James Turner : in  the 'tower' view, where the tower position is explicitly given in apt.dat (most of the larger airports), I was incorrectly treating the tower elevation as ASL, when it's AGL.

15 years agoStuart BUCHANAN:
mfranz [Wed, 17 Dec 2008 19:51:18 +0000 (19:51 +0000)]
Stuart BUCHANAN:

"fixes the issue reported by Martin where
--prop:/environment/weather-scenario=METAR had no effect"

15 years agoStuart :
fredb [Sun, 14 Dec 2008 18:48:00 +0000 (18:48 +0000)]
Stuart :
the 3D clouds now respect changes to the environment caused by updated METAR etc.

It also increases the AlphaFunc as suggested by Tim.

15 years agoinclude png and xcf files by default
mfranz [Sat, 13 Dec 2008 20:17:02 +0000 (20:17 +0000)]
include png and xcf files by default

15 years agoCsaba/Jester : fix an incorrect string comparison in metar
fredb [Sat, 13 Dec 2008 06:08:22 +0000 (06:08 +0000)]
Csaba/Jester : fix an incorrect string comparison in metar

15 years agoReally catch sound exceptions, and avoid exiting on this kind of error :
fredb [Fri, 12 Dec 2008 07:35:39 +0000 (07:35 +0000)]
Really catch sound exceptions, and avoid exiting on this kind of error :
OpenAL error (AL_INVALID_VALUE): constructor (alBufferData)
Failed to buffer data.

15 years agoStuart :
fredb [Thu, 11 Dec 2008 08:24:58 +0000 (08:24 +0000)]
Stuart :
- Removes the cloud type re-use code - I think they aren't worth the graphical artefacts that they cause in light of Tim's improvements
- Changes the transparency of the clouds. Previously, the clouds were transparent at 0m distance, opaque at 200m, then gradually more transparent to the fog limits. This meant they were generally quite transparent. Now, they are opaque from 200m to 15km, then become transparent at 20km. A side effect of this is that the current textures could probably benefit from being made slightly transparent to improve the blending of the sprites against each other.

15 years agoUpdate to -rc2
fredb [Thu, 11 Dec 2008 08:18:50 +0000 (08:18 +0000)]
Update to -rc2

15 years agoSome final adjustments:
durk [Wed, 10 Dec 2008 18:41:34 +0000 (18:41 +0000)]
Some final adjustments:
 - Remove Concorde, as announced
 - Add a missing directory to utils/Makefile.am, which caused an autoconf
   error.

15 years agoFinalizing the preparation of fgfs-2.99.5-rc2.
durk [Wed, 10 Dec 2008 18:19:52 +0000 (18:19 +0000)]
Finalizing the preparation of fgfs-2.99.5-rc2.

15 years ago*** empty log message ***
durk [Wed, 10 Dec 2008 16:04:50 +0000 (16:04 +0000)]
*** empty log message ***

15 years agoMinimize impact of distant AI models on the scene graph.
durk [Wed, 10 Dec 2008 16:04:10 +0000 (16:04 +0000)]
Minimize impact of distant AI models on the scene graph.

15 years agofix some backslashes in include file names
timoore [Tue, 9 Dec 2008 14:34:30 +0000 (14:34 +0000)]
fix some backslashes in include file names

15 years agoJames Turner :
fredb [Tue, 9 Dec 2008 08:10:33 +0000 (08:10 +0000)]
James Turner :
Here's a patch which refactors the 'plain' GPS code into a slightly
more manageable structure - i.e breaks the large update() method into
various sub-functions. I've tested the patch with B1900d, and things
seem to work as expected, but if anyone experiences GPS weirdness
after this is committed, of course please report it.

The motivation for this was helping me learn the code - I've planning
some changes in this area, and splitting up the logic will hopefully
make that task easier.

15 years agoJames Turner : this patch
fredb [Tue, 9 Dec 2008 07:58:46 +0000 (07:58 +0000)]
James Turner : this patch
- updates how filtering is done on the various FGPositioned query functions - both spatial and ident-based.
- updates the KLN-89b / DCLGPS code to use FGPositioned for all Navaid/Airport queries.

me:
Add few include directives in globals.cxx to avoid such MSVC warning messages :
deletion of pointer to incomplete type 'FGAirportList'; no destructor called
deletion of pointer to incomplete type 'FGNavList'; no destructor called
deletion of pointer to incomplete type 'FGTACANList'; no destructor called
deletion of pointer to incomplete type 'FGFixList'; no destructor called

15 years agoAnders GIDENSTAM: "Do not leak uninitialized values to the rest
mfranz [Sun, 7 Dec 2008 19:47:48 +0000 (19:47 +0000)]
Anders GIDENSTAM: "Do not leak uninitialized values to the rest
of the computation."  (forward port from jsbsim/cvs)

15 years agoDoc folder moved
fredb [Sun, 7 Dec 2008 09:42:43 +0000 (09:42 +0000)]
Doc folder moved

15 years agoPrepare packaging for the release
fredb [Sun, 7 Dec 2008 09:13:12 +0000 (09:13 +0000)]
Prepare packaging for the release

15 years agoslightly more efficient iterator handling
mfranz [Sun, 7 Dec 2008 08:19:54 +0000 (08:19 +0000)]
slightly more efficient iterator handling

15 years agoStuart Buchanan :
fredb [Sat, 6 Dec 2008 23:03:12 +0000 (23:03 +0000)]
Stuart Buchanan :
- Replaces simple shader attributes with vectors (this was missed out of the last patch by mistake)
- Includes Yon's Fog update code (Thanks!)
- Fixes a bug since 1.0 where --enable-real-weather-fetch stopped the other weather scenarios from working.

15 years agoFix apparently ancient typo.
andy [Fri, 5 Dec 2008 17:33:57 +0000 (17:33 +0000)]
Fix apparently ancient typo.

15 years agoCsaba "Jester" HALASZ: segfault--
mfranz [Fri, 5 Dec 2008 16:47:11 +0000 (16:47 +0000)]
Csaba "Jester" HALASZ: segfault--

15 years agoThis provides the following enhancements & bug fixes
fredb [Thu, 4 Dec 2008 20:56:40 +0000 (20:56 +0000)]
This provides the following enhancements & bug fixes
- Fix the chequer-board bug.
- Add proper cloud coverage function - so scattered clouds are now truly scattered.
- Add real-time control for visibility range.
- Use a limited set of clouds rather than generating a completely new Geode for each cloud. This saves sorting and display time.
- Add controls to Rendering dialog to allow fine-tuning of the number of sprites, cloud visibility and the number of different types of cloud.
- Add some variance to the sort back-off to avoid all clouds being sorted at the same time.
- Pack attributes into vectors for performance
- Re-order the cloud type determination code so that if a cloud layer could either be stratus or cumulus, cumulus is used.
- Lowered the cloud level in the standard cloud configuration slightly so a cumulus layer is generated rather than stratus.

These last two mean that you should see some 3D cumuli if disabling real weather fetch.

My thanks to Yon Uriarte for his help with performance work.

15 years agoAllow negative thrust. This allows a single recoil or vibration
mfranz [Thu, 4 Dec 2008 18:47:49 +0000 (18:47 +0000)]
Allow negative thrust. This allows a single recoil or vibration
thruster to accelerate in both directions. THROTTLE input still
clamps to 0/1 by default.  (OK'ed by Andy)

15 years agoJames Turner :
fredb [Thu, 4 Dec 2008 08:29:36 +0000 (08:29 +0000)]
James Turner :

  - a refactoring of the route manager to reduce indentation and duplication
- created a helper method to generate the ETA strings
- created a helper to update target_altitude and altitude_set when the active wp0 changes
- used early returns to make update() easier to follow
- removed spurious includes in both header and source file

15 years agoJames Turner : a trivial patch to remove a now obsolete default ctor from FGPositioned
fredb [Thu, 4 Dec 2008 08:15:36 +0000 (08:15 +0000)]
James Turner : a trivial patch to remove a now obsolete default ctor from  FGPositioned

15 years agoshow verbose mode (see $FG_ROOT/Docs/README.gui -> property-list)
mfranz [Wed, 3 Dec 2008 20:18:15 +0000 (20:18 +0000)]
show verbose mode  (see $FG_ROOT/Docs/README.gui -> property-list)

15 years agoJames Turner:
fredb [Wed, 3 Dec 2008 20:03:46 +0000 (20:03 +0000)]
James Turner:

Attached patch updates the route-manager to use FGPositioned to search
for waypoints, instead of a manual airport / fix / navaid search. This
is good because it's now using the 'strictly closest' match, rather
than arbitrarily picking a distant fix over a nearby navaid. In my
case, the TLA VOR is significant to several EGPH procedures, but also
happens to be the ident of a fix a long, long way away.

Also updates the FGPositioned class to stop using Point3D, partly
because it's deprecated and partly because I had misunderstood the
interface and was using it wrong. For now, all FGPositioned distance
checks use SGGeodesy::inverse, which is accurate but inefficient. Once
FGPositioned queries are used for something on a hot path, I'll
probably store the cartesian position as well as the geodetic, to make
these checks fast.

15 years agoAdd propmerge to the subdirs list so it can get included with make dist (it
curt [Wed, 3 Dec 2008 14:54:17 +0000 (14:54 +0000)]
Add propmerge to the subdirs list so it can get included with make dist (it
is referenced from the configure.ac file.)

15 years agoLoosen the check for stationary versus moving view point. I some cases when
curt [Mon, 1 Dec 2008 16:13:12 +0000 (16:13 +0000)]
Loosen the check for stationary versus moving view point.  I some cases when
the view has an "offset" location, the actual location of a "stationary" view
point moves a small amount as the view direction rotates.

15 years agoBrian Schack:
curt [Mon, 1 Dec 2008 13:58:04 +0000 (13:58 +0000)]
Brian Schack:

Right now, atlas.cxx uses the following code, in
FGAtlas::gen_message(), to retrieve the ADF frequency:

static SGPropertyNode *adf_freq =
    fgGetNode("/instrumentation/kr-87/outputs/selected-khz", true);

I think it should be changed to:

static SGPropertyNode *adf_freq =
    fgGetNode("/instrumentation/adf/frequencies/selected-khz", true);

15 years agoSync. with JSBSim CVS
ehofman [Sun, 30 Nov 2008 10:44:29 +0000 (10:44 +0000)]
Sync. with JSBSim CVS

15 years agoadd _getAliasTarget(): this dereferences an alias, allowing to refer
mfranz [Wed, 26 Nov 2008 11:34:35 +0000 (11:34 +0000)]
add _getAliasTarget(): this dereferences an alias, allowing to refer
to the target node's children and attributes etc., which aren't
inherited by an alias.

15 years agoMake computeIntersections work with the near and far cameras
timoore [Wed, 26 Nov 2008 09:02:48 +0000 (09:02 +0000)]
Make computeIntersections work with the near and far cameras

15 years agoRestore camera properties on reInit
timoore [Tue, 25 Nov 2008 22:50:20 +0000 (22:50 +0000)]
Restore camera properties on reInit

From Tatsuhiro Nishioka

15 years agoExpose precipitation property
timoore [Tue, 25 Nov 2008 22:50:04 +0000 (22:50 +0000)]
Expose precipitation property

from Vivian Meazza

15 years agomsg
timoore [Tue, 25 Nov 2008 22:49:19 +0000 (22:49 +0000)]
msg

15 years ago- Don't consider modifiers in axis bindings, as this means to
mfranz [Tue, 25 Nov 2008 14:32:39 +0000 (14:32 +0000)]
- Don't consider modifiers in axis bindings, as this means to
  temporarily lose control over the aircraft while pressing a
  modifier for a button.
- cosmetics: remove trailing spaces and commented out debug messages

15 years agoEnable <mod-{shift,ctrl,alt,meta,super,hyper}> support for joystick
mfranz [Mon, 24 Nov 2008 17:16:38 +0000 (17:16 +0000)]
Enable <mod-{shift,ctrl,alt,meta,super,hyper}> support for joystick
bindings. Only <mod-up> was supported before.

15 years agoUpdate MSVC 7.1 projects. Add Boost
fredb [Sat, 22 Nov 2008 11:26:57 +0000 (11:26 +0000)]
Update MSVC 7.1 projects. Add Boost

15 years agoFix some viewport problems on startup
timoore [Fri, 21 Nov 2008 23:11:27 +0000 (23:11 +0000)]
Fix some viewport problems on startup

From Csaba Halász

15 years agoUse simgear clone function instead of OSG's.
timoore [Fri, 21 Nov 2008 14:53:37 +0000 (14:53 +0000)]
Use simgear clone function instead of OSG's.

This should remove a dependency on an unreleased version of OSG (2.7.3).

15 years agoAdd autoconf macro and better variable handling for Boost.
timoore [Fri, 21 Nov 2008 12:57:01 +0000 (12:57 +0000)]
Add autoconf macro and better variable handling for Boost.

The Boost test macro comes from the Autoconf Archive.

15 years agoadd props.Node.{initNode,alias,unalias}
mfranz [Thu, 20 Nov 2008 20:11:46 +0000 (20:11 +0000)]
add props.Node.{initNode,alias,unalias}

15 years agoDon't call idle and draw functions from FGEventHandler::handle.
timoore [Thu, 20 Nov 2008 11:01:05 +0000 (11:01 +0000)]
Don't call idle and draw functions from FGEventHandler::handle.

These functions are now called in fgOSMainLoop. The fgMainLoop
function was being called twice, which resulted in a slow-down, but
also caused the displayed frame rate to double!

16 years agoUpdate osg::Camera's viewport when it is created.
timoore [Wed, 19 Nov 2008 22:55:42 +0000 (22:55 +0000)]
Update osg::Camera's viewport when it is created.

This fixes a problem where /sim/startup/[xy]size were not set properly
because the GUI camera's viewport was not correct at startup.

16 years agoadd "add-model" command, which adds model properties to the first
mfranz [Wed, 19 Nov 2008 15:59:54 +0000 (15:59 +0000)]
add "add-model" command, which adds model properties to the first
free /models/model[*] slot and lets the model manager load the
model. The target address is returned under "property". Simple
use in Nasal:

  fgcommand("add-model", props.Node.new({
          "path": "Models/Fauna/cow.ac",
          "latitude-deg": 16.234,
          "longitude-deg": 48.321,
          "elevation-ft": 300,
  });

An "elevation-m" property can alternatively be used and overrides
the "elevation-ft" property.

Each of the properties "latitude-deg", "longitude-deg", "elevation-ft",
"heading-deg", "pitch-deg", and "roll-deg" can alternatively be used
with "-prop" suffix. Their values must then be property path strings
pointing to a node that can be changed at runtime to move the model.

16 years agoUpdate the model manager after the event manager, so that model
mfranz [Wed, 19 Nov 2008 07:46:10 +0000 (07:46 +0000)]
Update the model manager after the event manager, so that model
coordinates that were set relative to the aircraft's position
are picked up before the view update rather than the next cycle.
This avoids ugly fluttering of "passengers" at higher speed.

16 years agocompile
mfranz [Wed, 19 Nov 2008 01:09:29 +0000 (01:09 +0000)]
compile

16 years agoUpdate the camera properties after a resize event.
timoore [Tue, 18 Nov 2008 22:46:19 +0000 (22:46 +0000)]
Update the camera properties after a resize event.

16 years agoCleanup of camera code in preperation for shadows
timoore [Tue, 18 Nov 2008 22:45:57 +0000 (22:45 +0000)]
Cleanup of camera code in preperation for shadows
Partition depth in CameraGroup:
Remove the ViewPartionNode scenegraph node. The split rendering of the
scene, done to avoid Z buffer precision problems, is now done by two
slave cameras of the viewer.

Rename FGManipulator to FGEventHandler.

Remove virtual member functions that aren't required for event handlers.

Begin using camera group properties to update cameras at runtime;
Initially only the viewport properties are used.

When no camera group is found in the property tree (the default),
create the properties for one. Expose the default window by name.

Add a test for Boost headers to configure.ac. Boost is now a
dependency.

Remove GLUT and SDL versions of the OSG graphics.

16 years agoComment out an unused non compilable function
fredb [Sun, 16 Nov 2008 14:17:52 +0000 (14:17 +0000)]
Comment out an unused non compilable function

16 years agoTraffic Manager II source code changes
durk [Sun, 16 Nov 2008 13:45:24 +0000 (13:45 +0000)]
Traffic Manager II source code changes
- Decouple aircraft entities from Flights
- Dynamic runtime flight assignment for each aircraft

16 years agoBetter support for multiple startup messages.
durk [Sun, 16 Nov 2008 13:43:44 +0000 (13:43 +0000)]
Better support for multiple startup messages.

16 years agoChanges to the AIModel code, to prepare for the new traffic manager code:
durk [Sun, 16 Nov 2008 13:41:24 +0000 (13:41 +0000)]
Changes to the AIModel code, to prepare for the new traffic manager code:
- Leg loading can fail when no additional flights are available
- Better support for waypoint interception during pushback (speed ~ 0)

16 years agof_alias: catch SGPropertyNode exceptions and generate runtime error
mfranz [Thu, 13 Nov 2008 23:47:45 +0000 (23:47 +0000)]
f_alias: catch SGPropertyNode exceptions and generate runtime error