]> git.mxchange.org Git - flightgear.git/log
flightgear.git
21 years agoChange from JSBSim:
david [Wed, 27 Nov 2002 01:38:26 +0000 (01:38 +0000)]
Change from JSBSim:

Changed steering to use the rudder command rather than the rudder
position.  During taxi, the rudder trim shouldn't affect the steering
in any serious way.

This should be configurable in the aircraft file, since not all
aircraft use the rudder pedals for ground steering.

[In FlightGear, this may make it easier to taxi straight.]

21 years agoDon't force ground lighting to have the same limited visibility as runway
curt [Tue, 26 Nov 2002 16:01:39 +0000 (16:01 +0000)]
Don't force ground lighting to have the same limited visibility as runway
lighting.

21 years agoHaving the runway lights "pop" in at a specific range is not 100% realistic.
curt [Tue, 26 Nov 2002 02:29:03 +0000 (02:29 +0000)]
Having the runway lights "pop" in at a specific range is not 100% realistic.
I have updated the lighting code to use fog to try to fade the runway lights
in smoothly, but still keep them from being visible until you are about 7-10
miles out, and then only have them be very faint at first.  I think what I
have is a bit nicer than before since it completely avoids the "popping" effect,
but I've very open to tweaking the actual ranges based on people's real
world experiences.

21 years agoMake the runway lights come on just a bit sooner in terms of sun angle.
curt [Mon, 25 Nov 2002 21:42:07 +0000 (21:42 +0000)]
Make the runway lights come on just a bit sooner in terms of sun angle.

21 years agoUpdates for cygwin
tony [Sat, 23 Nov 2002 15:33:01 +0000 (15:33 +0000)]
Updates for cygwin

21 years agoMinor property name change to avoid some minor confusion.
curt [Thu, 21 Nov 2002 02:54:46 +0000 (02:54 +0000)]
Minor property name change to avoid some minor confusion.

21 years agoRemoved depricated files.
curt [Mon, 18 Nov 2002 21:34:07 +0000 (21:34 +0000)]
Removed depricated files.

21 years agoAdded a "Presets" menu.
curt [Mon, 18 Nov 2002 21:31:33 +0000 (21:31 +0000)]
Added a "Presets" menu.

21 years agoIrix patch from Erik Hofman.
david [Sun, 17 Nov 2002 12:56:01 +0000 (12:56 +0000)]
Irix patch from Erik Hofman.

21 years agoIf a non existant runway is specified with --runway=xxx fall back to
curt [Sun, 17 Nov 2002 04:17:27 +0000 (04:17 +0000)]
If a non existant runway is specified with --runway=xxx fall back to
finding the runway that is the closest match to the specified (or default)
heading.

21 years agoAdded a --runway= option which can be used in conjunction with the --airport=
curt [Sun, 17 Nov 2002 04:04:21 +0000 (04:04 +0000)]
Added a --runway= option which can be used in conjunction with the --airport=
option to specify a starting airport + specific runway.  If you don't specify
a runway, you get the one that's closest to your specified (or default)
heading.

21 years agoAdded some cheap eye candy to entertain myself for a few minutes. Splash
curt [Sun, 17 Nov 2002 01:21:13 +0000 (01:21 +0000)]
Added some cheap eye candy to entertain myself for a few minutes.  Splash
screen now fades out revealing the scene.

21 years agoCygwin patch from Patrick Staehlin:
david [Sun, 17 Nov 2002 00:42:50 +0000 (00:42 +0000)]
Cygwin patch from Patrick Staehlin:

To compile the development CVS version of FlightGear(0.9.0) i had to
apply some small changes to SimGear and FlightGear.

The changes need probably some additional ifdefs for other platforms but
since my linux-hd crashed i can't verify that.

21 years agoPatch from Jim Wilson to fix model offsets:
david [Sun, 17 Nov 2002 00:30:40 +0000 (00:30 +0000)]
Patch from Jim Wilson to fix model offsets:

Here's a patch to fix the offsets bug.  The problem was the transform was just
getting added to a local instance rather than being returned by the function.

21 years agoI wrote:
david [Sun, 17 Nov 2002 00:04:57 +0000 (00:04 +0000)]
I wrote:
 > Jim Wilson wrote:
 > > How hard would it be to have a property that toggles hotspot
 > > visibility?  It'd be nice to be able to turn it on and have yellow
 > > rectangles show up on the hotspots...
 >
 > That's not a bad idea.

It's actually an astoundingly good idea, and implementable over lunch
to boot. :)

Try the attached patch, which predicates the boxes on the
/sim/panel-hotspots property.  I mapped a toggle event on this to a
spare joystick button, and had fun. :)

[dpm: bound to Ctrl-C]

21 years agoMake sure led_font isn't used unless it's initialized.
david [Sat, 16 Nov 2002 22:13:49 +0000 (22:13 +0000)]
Make sure led_font isn't used unless it's initialized.

21 years agoReduce POFF_UNITS from 40 to 4, following Andy Ross's suggestion (to
david [Sat, 16 Nov 2002 22:08:22 +0000 (22:08 +0000)]
Reduce POFF_UNITS from 40 to 4, following Andy Ross's suggestion (to
avoid having the 2D instruments obscure 3D objects in front of them):

It's related to depth buffer precision.  On my Geforce cards (2MX and
3), it never happens with the 24 bit depth buffer you get by default
at 32bpp.  At 16bpp, it picks a slimmer depth buffer (probably 16 bit)
and the texture layers bleed through.

The code is using a pretty big argument to glPolygonOffset, and I've
never investigated how small it can be.  If someone has a little time
the next time they see this issue, try changing the value of
POFF_UNITS at the top of Cockpit/panel.cxx.  Decrease it until the
textures *just* start to interfere with each other, and post the value
that works for you.

21 years agoPatch from Frederic Bouvier:
david [Sat, 16 Nov 2002 22:01:15 +0000 (22:01 +0000)]
Patch from Frederic Bouvier:

I have discovered recently that plib has ulIsAbsolutePathName
in ul.lib so you can try this patch.

21 years agoClean ups to the code that determines initial position based on command
curt [Sat, 16 Nov 2002 21:34:51 +0000 (21:34 +0000)]
Clean ups to the code that determines initial position based on command
line options or defaults.

21 years agoMake the routines that scan the command line options and config files more
curt [Sat, 16 Nov 2002 20:41:00 +0000 (20:41 +0000)]
Make the routines that scan the command line options and config files more
general so we can eliminate the option specific versions of these.

21 years agoSome various massaging and clean ups of initialization code.
curt [Sat, 16 Nov 2002 20:17:11 +0000 (20:17 +0000)]
Some various massaging and clean ups of initialization code.

21 years agoTurn off runway lights during the day, except in less than 5km
david [Sat, 16 Nov 2002 11:56:15 +0000 (11:56 +0000)]
Turn off runway lights during the day, except in less than 5km
visibility (that should be lower, but it will do for now).

21 years agoRestructuring some of the initialization code.
curt [Fri, 15 Nov 2002 21:13:29 +0000 (21:13 +0000)]
Restructuring some of the initialization code.

The general idea is to help clean up some aspects of the FDM init and be
able to provide startup conditions in a less ambiguous manner.

Previously, things like positions, orientations, and velocites were set on
"the bus".  These had to be read by the FDMs which then were supposed to
initialized themselves to those values and turn write around and start
modifying those values.  It was messy and cumbersome.

Now, all the initial fdm conditions are written to a sub-[property-]tree
under /sim/presets/

The values in /sim/presets/ always stay set to what the user has specified.
The user can change these at his/her liesure, and then request a "reset"
which will reset to the new conditions.  I don't even want to say how this
worked before. :-)

Now, an script, or gui interface can stage a set of initial conditions while
the sim is running (without disrupting it), and then call "reset" to commit
the change.

People who should worry about all this are FDM writters, and a small few
others who care about over all program structure and flow.

21 years agoCorrect offset-deg in a rotate animation so that it is added after the
david [Wed, 13 Nov 2002 16:45:21 +0000 (16:45 +0000)]
Correct offset-deg in a rotate animation so that it is added after the
factor (otherwise, it's not in degrees).

Allow 2D panel inclusions to be named (and further animated).

22 years agoAdd "spring" and "damp" tunables to gear objects.
andy [Sat, 9 Nov 2002 21:08:10 +0000 (21:08 +0000)]
Add "spring" and "damp" tunables to gear objects.

22 years agoRobert Deters:
curt [Fri, 8 Nov 2002 17:05:56 +0000 (17:05 +0000)]
Robert Deters:

Attached is more UIUC revisions.  Actually it is only an updated
uiuc_wrapper.cpp.  Thanks

22 years agoRobert Deters:
curt [Fri, 8 Nov 2002 17:03:49 +0000 (17:03 +0000)]
Robert Deters:

Latest revisions of the UIUC code.

22 years agoMoved command information into user data.
david [Fri, 8 Nov 2002 16:33:00 +0000 (16:33 +0000)]
Moved command information into user data.

22 years agoSeparated out GUIWidget class to manage a top-level widget.
david [Fri, 8 Nov 2002 15:24:14 +0000 (15:24 +0000)]
Separated out GUIWidget class to manage a top-level widget.

22 years agoInstead of reading $FG_ROOT/gui.xml, recursively read all files under
david [Fri, 8 Nov 2002 02:03:56 +0000 (02:03 +0000)]
Instead of reading $FG_ROOT/gui.xml, recursively read all files under
the $FG_ROOT/gui/ directory; that way, each dialog can have a separate
configuration file, and management should be simpler.

22 years agoAdded button actions so that property fields can be applied or
david [Thu, 7 Nov 2002 22:59:46 +0000 (22:59 +0000)]
Added button actions so that property fields can be applied or
updated.

22 years agoStarted new, XML-configurable GUI subsystem.
david [Thu, 7 Nov 2002 16:27:47 +0000 (16:27 +0000)]
Started new, XML-configurable GUI subsystem.

22 years agoAdded fgLoadProps to load properties from a path relative to FG_ROOT.
david [Wed, 6 Nov 2002 18:57:31 +0000 (18:57 +0000)]
Added fgLoadProps to load properties from a path relative to FG_ROOT.

22 years agoFixed bug in timed update cycling.
david [Wed, 6 Nov 2002 16:04:04 +0000 (16:04 +0000)]
Fixed bug in timed update cycling.

22 years agoAdded a new TimedAnimation, using the type "timed" and the property
david [Wed, 6 Nov 2002 15:47:40 +0000 (15:47 +0000)]
Added a new TimedAnimation, using the type "timed" and the property
duration-sec.  This animation may have any number of child objects,
and each one will be displayed for the requested duration before
moving on to the next one.

Added Animation::init for initialization after children have been
added to an animation.

Added a default implementation of Animation::update, and removed all
of the empty ones in derived classes.

Removed tabs from model.cxx.

22 years agoBlindingly stupid ground effect bug. It interpolated in the wrong direction
andy [Tue, 5 Nov 2002 21:36:47 +0000 (21:36 +0000)]
Blindingly stupid ground effect bug.  It interpolated in the wrong direction
(zero at ground, maximum at 1-span!)

22 years agoPatch from Andy Ross:
david [Tue, 5 Nov 2002 02:28:07 +0000 (02:28 +0000)]
Patch from Andy Ross:

Indeed, there was no check for panel visibility in the input code.  I
guess we've never noticed because nothing was fighting for the same
real estate in the past.  This one-liner appears to fix the problem.

[also converted all tabs to spaces for Norm Vine]

22 years agoCleaned up some debugging output.
curt [Mon, 4 Nov 2002 16:58:54 +0000 (16:58 +0000)]
Cleaned up some debugging output.

22 years agoAdd support for drawing ODALS approach lighting.
curt [Mon, 4 Nov 2002 16:34:42 +0000 (16:34 +0000)]
Add support for drawing ODALS approach lighting.

22 years agoPatch from Jim Wilson:
david [Mon, 4 Nov 2002 02:17:13 +0000 (02:17 +0000)]
Patch from Jim Wilson:

That's a little too small to resolve differences at 16bpp. Try the
patch below.  It decreases the lifting substantially.  You will see
a slight increase in z-buffer flickering but it isn't bad.  Note
that we removed the "distance" component the other day,  the purpose
of it was to lift the lights higher when viewed at shallow viewing
angles.  The distance component is critical for the street lights that
can be very long distances away.

But with the distances we're working with here it really doesn't
do all that much.  The factor used in this patch is about as shallow
a lift as can be used when looking straight down at the airport.  At
24bpp there's no effect from incorporating a distance component.

The choice is to reintroduce a distance component...one that works (and
only for 16bpp), or alter the factor used in the patch below to strike an
acceptable balance between different viewing angles when in 16bpp mode.

22 years agoRemoved debug print statements.
david [Sun, 3 Nov 2002 15:48:08 +0000 (15:48 +0000)]
Removed debug print statements.

Added ability to set a name for an animation and refer to it in
subsequent animations.

22 years agoStreamline to create fewer branch nodes. This involves moving some
david [Sun, 3 Nov 2002 15:42:11 +0000 (15:42 +0000)]
Streamline to create fewer branch nodes.  This involves moving some
objects around when an animation specifies more than one object.

22 years agoEliminate dependency of flight.hxx on model.hxx, to avoid unnecessary
david [Sun, 3 Nov 2002 15:41:30 +0000 (15:41 +0000)]
Eliminate dependency of flight.hxx on model.hxx, to avoid unnecessary
rebuilding.

22 years agoModified /sim/current-view/axes/long and /sim/current-view/axes/lat to
david [Sat, 2 Nov 2002 21:43:15 +0000 (21:43 +0000)]
Modified /sim/current-view/axes/long and /sim/current-view/axes/lat to
use the user-configurable view defaults.

22 years agoPut taxiway lights in their own scene graph so we can adjust their brightness
curt [Fri, 1 Nov 2002 21:56:48 +0000 (21:56 +0000)]
Put taxiway lights in their own scene graph so we can adjust their brightness
(or fog punch through) independently from the ground or runway lighting.

22 years agoFix a couple oversights in the runway light lifting formula.
curt [Wed, 30 Oct 2002 22:56:22 +0000 (22:56 +0000)]
Fix a couple oversights in the runway light lifting formula.

22 years agoRemove distance component from runway lifting function. Only use the AGL
curt [Wed, 30 Oct 2002 21:59:05 +0000 (21:59 +0000)]
Remove distance component from runway lifting function.  Only use the AGL
component.  This seems to work pretty well and simplifies things a fair bit.

22 years agoAndy Ross:
curt [Tue, 29 Oct 2002 19:44:03 +0000 (19:44 +0000)]
Andy Ross:

The biggest and coolest patch adds mouse sensitivity to the 3D
cockpits, so we can finally work the radios.  This ended up requiring
significant modifications outside of the 3D cockpit code.  Stuff folks
will want to look at:

+ The list of all "3D" cockpits is stored statically in the
   panelnode.cxx file.  This is clumsy, and won't migrate well to a
   multiple-aircraft feature.  Really, there should be a per-model list
   of 3D panels, but I couldn't find a clean place to put this.  The
   only handle you get back after parsing a model is a generic ssg
   node, to which I obviously can't add panel-specific methods.

+ The aircraft model is parsed *very* early in the initialization
   order.  Earlier, in fact, than the static list of allowable command
   bindings is built in fgInitCommands().  This is bad, as it means
   that mouse bindings on the instruments can't work yet.  I moved the
   call to fgInitCommands, but someone should look carefully to see
   that I picked the right place.  There's a lot of initialization
   code, and I got a little lost in there... :)

+ I added yet another "update" hook to the fgRenderFrame routine to
   hook the updates for the 3D panels.  This is only required for
   "mouse press delay", and it's a fairly clumsy mechanism based on
   frame rate instead of real time.  There appears to be delay handling
   already in place in the Input stuff, and there's a discussion going
   on about different mouse behavior right now.  Maybe this is a good
   time to unify these two (now three) approaches?

22 years agoAndy Ross:
curt [Tue, 29 Oct 2002 19:27:05 +0000 (19:27 +0000)]
Andy Ross:

Make rotational rate FDM values available from the property tree.
This is required for some cool stuff I've been doing with the Harrier.

22 years agoFixed jump around the north indication.
david [Sun, 27 Oct 2002 20:32:34 +0000 (20:32 +0000)]
Fixed jump around the north indication.

22 years agoFix coordinate conventions for reporting pilot acceleration. Add a few
andy [Sun, 27 Oct 2002 04:30:34 +0000 (04:30 +0000)]
Fix coordinate conventions for reporting pilot acceleration.  Add a few
digits to the c.g. report.

22 years agoModified for simpler command-manager interface.
david [Sat, 26 Oct 2002 01:19:23 +0000 (01:19 +0000)]
Modified for simpler command-manager interface.

22 years agoDocumentation on adding new built-in commands to FlightGear.
david [Sat, 26 Oct 2002 01:18:52 +0000 (01:18 +0000)]
Documentation on adding new built-in commands to FlightGear.

22 years agoMajor code simplification.
david [Fri, 25 Oct 2002 22:19:51 +0000 (22:19 +0000)]
Major code simplification.

22 years agoDefault to experimental point lighting disabled.
curt [Thu, 24 Oct 2002 14:05:40 +0000 (14:05 +0000)]
Default to experimental point lighting disabled.

22 years agoErik Hofman: Irix build fixes.
curt [Thu, 24 Oct 2002 14:02:19 +0000 (14:02 +0000)]
Erik Hofman: Irix build fixes.

22 years agoTweak red and blue runway light colors a bit more.
curt [Thu, 24 Oct 2002 14:02:06 +0000 (14:02 +0000)]
Tweak red and blue runway light colors a bit more.

22 years agoRemoved some left over debugging output.
curt [Thu, 24 Oct 2002 12:12:14 +0000 (12:12 +0000)]
Removed some left over debugging output.

22 years agoWhite space tweak ...
curt [Thu, 24 Oct 2002 12:11:55 +0000 (12:11 +0000)]
White space tweak ...

22 years agoFix a subtle bug in the partial ssg tree deleter which was leaving some
curt [Thu, 24 Oct 2002 03:38:14 +0000 (03:38 +0000)]
Fix a subtle bug in the partial ssg tree deleter which was leaving some
parts of the tree left over at the end which the failsafe was catching, but
this could impose a huge framerate hit if the missed portion of the tree
was large enough (and it very often was.)

22 years agoTweak lighting colors a bit. Add a slight yellow tint to "white" lights.
curt [Wed, 23 Oct 2002 16:29:53 +0000 (16:29 +0000)]
Tweak lighting colors a bit.  Add a slight yellow tint to "white" lights.
Add a slight orange tint to "yellow" lights.  Brighten the blue lights a bit
to make them more visible.

22 years agoFixed the DG heading bug hold to work with the new DG instrumentation.
curt [Wed, 23 Oct 2002 16:27:30 +0000 (16:27 +0000)]
Fixed the DG heading bug hold to work with the new DG instrumentation.
It was slightly goofed up before by about the amount of the magnetic
variation.

22 years agoUpdates to how we structure runway lighting in the scene graph so we can get
curt [Tue, 22 Oct 2002 20:47:14 +0000 (20:47 +0000)]
Updates to how we structure runway lighting in the scene graph so we can get
the range selector to work on a per runway (or per lighting group) basis.

22 years agoTone down the relative intensity of the taxiway lights.
curt [Tue, 22 Oct 2002 04:12:33 +0000 (04:12 +0000)]
Tone down the relative intensity of the taxiway lights.

22 years agoAdded support for taxiway lights that are much more visible from the size
curt [Tue, 22 Oct 2002 03:57:32 +0000 (03:57 +0000)]
Added support for taxiway lights that are much more visible from the size
than from above.

22 years agoMake runway lighting LOD work correctly.
curt [Mon, 21 Oct 2002 19:45:21 +0000 (19:45 +0000)]
Make runway lighting LOD work correctly.

22 years agoMisc clean ups.
curt [Mon, 21 Oct 2002 16:26:48 +0000 (16:26 +0000)]
Misc clean ups.

22 years agoPreallocate proper ssg list sizes when building list structures so plib
curt [Mon, 21 Oct 2002 16:26:34 +0000 (16:26 +0000)]
Preallocate proper ssg list sizes when building list structures so plib
doesn't need to waste time extending it's list sizes.

22 years agoFix a bug with rabbit light creation.
curt [Mon, 21 Oct 2002 16:09:11 +0000 (16:09 +0000)]
Fix a bug with rabbit light creation.

22 years agoMinor tweak to avoid some compile errors people are seeing with the
curt [Mon, 21 Oct 2002 03:22:27 +0000 (03:22 +0000)]
Minor tweak to avoid some compile errors people are seeing with the
glPointParameterExt.

22 years agoPut cout and endl in std:: namespace.
david [Sat, 19 Oct 2002 10:27:52 +0000 (10:27 +0000)]
Put cout and endl in std:: namespace.

22 years agoAdd a pre/post draw call back to strobe lights so we can make them bigger
curt [Fri, 18 Oct 2002 18:43:50 +0000 (18:43 +0000)]
Add a pre/post draw call back to strobe lights so we can make them bigger
so they will stand out from everything else.

22 years agoThere are some problems with ssgTimedSelector's but shorter strings of
curt [Fri, 18 Oct 2002 03:36:56 +0000 (03:36 +0000)]
There are some problems with ssgTimedSelector's but shorter strings of
rabbit lights appear to almost work except the last light or two is never
included in the animation and longer strings of lights are drawn as all
light on ... :-(

22 years agoSome restructuring to optimize the light point portion of the scene graph.
curt [Thu, 17 Oct 2002 23:17:16 +0000 (23:17 +0000)]
Some restructuring to optimize the light point portion of the scene graph.
There's no point in having a separate leaf for each light.

22 years agoFix a bug in ground elevation measuring for the first frame after we cross
curt [Thu, 17 Oct 2002 15:54:31 +0000 (15:54 +0000)]
Fix a bug in ground elevation measuring for the first frame after we cross
a tile boundary.  (Potentially imposes a slight performance penalty, but
getting the correct answer needs to be higher priority than getting the
wrong answer really quickly.)

22 years agoSupport green directional lights.
curt [Thu, 17 Oct 2002 15:52:32 +0000 (15:52 +0000)]
Support green directional lights.

22 years agoPlaying with glPointParameterfEXT.
curt [Thu, 17 Oct 2002 04:34:32 +0000 (04:34 +0000)]
Playing with glPointParameterfEXT.

22 years agoCleaned some cruft.
curt [Thu, 17 Oct 2002 03:11:10 +0000 (03:11 +0000)]
Cleaned some cruft.

22 years agoAdd support for generating REIL approach light animations.
curt [Thu, 17 Oct 2002 03:08:46 +0000 (03:08 +0000)]
Add support for generating REIL approach light animations.

22 years agoAdd support for additional runway light colors and intensities.
curt [Wed, 16 Oct 2002 22:39:08 +0000 (22:39 +0000)]
Add support for additional runway light colors and intensities.

22 years agoFixed so that ASI will indicate correctly (or at least, more
david [Wed, 16 Oct 2002 22:09:26 +0000 (22:09 +0000)]
Fixed so that ASI will indicate correctly (or at least, more
correctly) in winds.

22 years agoAdd support for wind speed/direction and freezes.
curt [Wed, 16 Oct 2002 03:46:24 +0000 (03:46 +0000)]
Add support for wind speed/direction and freezes.

22 years agoThrottle was being scaled with mixture config values.
curt [Wed, 16 Oct 2002 03:46:05 +0000 (03:46 +0000)]
Throttle was being scaled with mixture config values.
Cleaned up some old cruft.

22 years agoPlaying with point lighting effects.
curt [Wed, 16 Oct 2002 03:44:44 +0000 (03:44 +0000)]
Playing with point lighting effects.

22 years agoCleaned up some old cruft.
curt [Wed, 16 Oct 2002 03:44:19 +0000 (03:44 +0000)]
Cleaned up some old cruft.

22 years agoAdded support for passing wind speed/direction.
curt [Wed, 16 Oct 2002 03:43:52 +0000 (03:43 +0000)]
Added support for passing wind speed/direction.
Added support for passing various freeze commands to fdm.
Initial support for in-air starts.

22 years agoNorman Vine:
curt [Wed, 16 Oct 2002 02:06:42 +0000 (02:06 +0000)]
Norman Vine:

Updates to the autopilot to allow it to run off of 'non-cooked' altitude
and heading values (as a compile time option.)

22 years agoFix an init order bug and do some minor cleanups.
curt [Wed, 16 Oct 2002 02:02:39 +0000 (02:02 +0000)]
Fix an init order bug and do some minor cleanups.

22 years agoUse default visibility instead of modified sky visibility when 2D
david [Sun, 13 Oct 2002 10:46:37 +0000 (10:46 +0000)]
Use default visibility instead of modified sky visibility when 2D
clouds are disabled.

22 years agoPatch from Frederic Bouvier:
david [Sun, 13 Oct 2002 10:43:57 +0000 (10:43 +0000)]
Patch from Frederic Bouvier:

I noticed that textures for scenery static objects are not loaded
anymore for a few weeks.  Static objects have absolute path while
random objects and aircraft have relative path but fgLoad3DModel
unconditionally prepend fg_root to the model path. This patch test the
beginning of the model path to choose if fg_root has to be prepended
to the model path.

22 years agoFixed init-order bug that caused c172-set.xml defaults always to be
david [Thu, 10 Oct 2002 18:39:52 +0000 (18:39 +0000)]
Fixed init-order bug that caused c172-set.xml defaults always to be
used unless explicitly overwritten.  Now, the options are parsed
twice, and only the *-set.xml file for the *last* aircraft specified
is loaded.

22 years agoPatch from Alex Perry:
david [Thu, 10 Oct 2002 18:15:22 +0000 (18:15 +0000)]
Patch from Alex Perry:

Ok, I found the problem.  You're computing the dynamic pressure in
"psf" and adding it to the static pressure in "inHg" to form the
total pressure.  The attached patch is the simple fix to the source.

With that fix, failing the pitot while in cruise at 3k' will cause
the airspeed to indicate beyond redline during climb ... well before 4k'.
Thus, a pitot problem can be detected on any IFR altitude change.

Similarly, failing the static (with working pitot) while cruising 4k'
causes the airspeed to indicate beyond redline during a descent
well before reaching 3k' (during which, of course, the ALT looks fine).
Thus, a static failure can be detected before the aircraft breaks out
of the pilot tolerance range and is blatantly conspicuous soon after.

22 years agoEric Hofman:
curt [Thu, 10 Oct 2002 15:02:50 +0000 (15:02 +0000)]
Eric Hofman:

Now the options can be localized as well. This adds a slight problem for
the --language options, but not that much (worst case, the strings are
loaded twice consuming some more memory). I tried to be as accurate as
posiible when copying the options texts, but there might be some
mostakes left.

22 years agoFix a potential crash with William Riley's scenery build.
curt [Wed, 9 Oct 2002 14:29:42 +0000 (14:29 +0000)]
Fix a potential crash with William Riley's scenery build.

22 years agomisc tweaks.
curt [Wed, 9 Oct 2002 14:15:08 +0000 (14:15 +0000)]
misc tweaks.

22 years agoBegin work on improving runway lighting infrastructure.
curt [Wed, 9 Oct 2002 03:40:23 +0000 (03:40 +0000)]
Begin work on improving runway lighting infrastructure.

22 years agoOops, I had my lighting tris wound the wrong way.
curt [Tue, 8 Oct 2002 22:25:41 +0000 (22:25 +0000)]
Oops, I had my lighting tris wound the wrong way.

22 years agoErik Hofman:
curt [Mon, 7 Oct 2002 15:45:00 +0000 (15:45 +0000)]
Erik Hofman:

This adds supports for a language specific font, defined in locale.xml
I've also moved the fgInitLocale() routine from main.cxx to fg_init.cxx
to prevent an ungly extern definition in options.cxx.

22 years agoMisc clean ups.
curt [Sun, 6 Oct 2002 04:27:24 +0000 (04:27 +0000)]
Misc clean ups.

22 years agoBegin work on rendering runway lights using environment maps. The basics
curt [Sun, 6 Oct 2002 03:53:19 +0000 (03:53 +0000)]
Begin work on rendering runway lights using environment maps.  The basics
are now working.  A runway light is defined by a point and a direction.  The
point and direction are combined with the local up vector to create a small
triangle orthogonal to the direction.  The two ficticous corners of the
triangle are given an alpha value of zero, the orignal corner is given an
alpha of one.  The triangle is drawn in glPolygonMode(GL_FRONT, GL_POINT)
mode which means only the corner points are drawn, and since two have alpha=0
only the original point is drawn.  This is a long way to go to draw a point,
but it ensures that the point is only visible within 90 degrees of the light
direction, behind the light it is not visible.  This is still a long way
to get to drawing a point, but we use an environement map, with the direction
vector as the normal to mimic a light that is brightest when viewed head
on and dimmest when viewed perpendicularly or disappears when viewed from
behind.

- warning, there is a bug in how the current runway light direction vector
  is calculated which will adversely effect runway lighting.  The airports
  should be regenerated in order to fix this problem.