]> git.mxchange.org Git - flightgear.git/log
flightgear.git
22 years agoFixed a bug report from Frederic Bouvier:
david [Wed, 27 Mar 2002 12:59:53 +0000 (12:59 +0000)]
Fixed a bug report from Frederic Bouvier:

as a follow-up of my previous message, I found that in panel.cxx, function
const char *FGTextLayer::Chunk::getValue () const, there is the use of a
member variable _buf that seems to be uninitialized.

22 years agoRemoved outdated reference to fgSimTime.
david [Wed, 27 Mar 2002 12:53:50 +0000 (12:53 +0000)]
Removed outdated reference to fgSimTime.

22 years agoPatch from Melchior Franz:
david [Wed, 27 Mar 2002 12:49:29 +0000 (12:49 +0000)]
Patch from Melchior Franz:

When the loop starts, n.type is still undefined, so the while statement
depends on unitialized garbage. The input operator cares for the [End]
bracket anyway (returns if the first character is a '['). So it is safe
to check for it after reading the line and break if necessary.

22 years agoPatch from Melchior Franz:
david [Wed, 27 Mar 2002 12:49:07 +0000 (12:49 +0000)]
Patch from Melchior Franz:

Err ... 8 bytes isn't much for such a long string.
Makes a nice segfault.  ;-)

22 years agoAdded support for rotational rates and body access (pilot relative)
curt [Wed, 27 Mar 2002 05:21:38 +0000 (05:21 +0000)]
Added support for rotational rates and body access (pilot relative)
accelerations.

22 years agoAdded fields ... this is a work in progress.
curt [Wed, 27 Mar 2002 05:20:45 +0000 (05:20 +0000)]
Added fields ... this is a work in progress.

22 years agoRenamed README.xml to README.xmlsyntax, so that it wouldn't look like
david [Tue, 26 Mar 2002 17:19:23 +0000 (17:19 +0000)]
Renamed README.xml to README.xmlsyntax, so that it wouldn't look like
an XML file itself.

22 years agoMore cleanups. Removed the pui-* commands, and added a pass-through
david [Tue, 26 Mar 2002 17:14:48 +0000 (17:14 +0000)]
More cleanups.  Removed the pui-* commands, and added a pass-through
property to indicate when mouse events should be offset to PUI and the
panel first.

22 years agoUpdated Melchior's entry with other stuff he's done.
david [Tue, 26 Mar 2002 17:10:51 +0000 (17:10 +0000)]
Updated Melchior's entry with other stuff he's done.

22 years agoFirst draft of a quick overview of XML syntax, not specific to
david [Tue, 26 Mar 2002 17:08:42 +0000 (17:08 +0000)]
First draft of a quick overview of XML syntax, not specific to
property lists.

22 years agoAdded Melchior (but I cannot remember what else he has contributed).
david [Tue, 26 Mar 2002 16:12:12 +0000 (16:12 +0000)]
Added Melchior (but I cannot remember what else he has contributed).

22 years agoPatches from Melchior Franz:
david [Tue, 26 Mar 2002 16:10:53 +0000 (16:10 +0000)]
Patches from Melchior Franz:

The first hunk might not be necessary, but the light_coverage property
was the only one that wasn't explicitly defaulted, which is unfair.  ;-)
   The second hunk adds the missing initialization to the init routine.
This is necessary, because (unlike the material entries from material.xml)
the generated light entries don't get the light coverage set. Yet
obj.cxx:795 reads this information out fot every leaf, although not needed
in the case of lights. Avoiding this isn't worth the trouble.
   The last hunk sets the missing normal_index. The POINTS branch in
gen_leaf was always called with this int_list empty, which made the normals
handling use data garbage.

22 years agoMore work on the configurable mouse. Mouse motion is now configurable
david [Tue, 26 Mar 2002 13:45:44 +0000 (13:45 +0000)]
More work on the configurable mouse.  Mouse motion is now configurable
as well as mouse clicks.  You must configure with --with-new-mouse to
get this.

22 years agoSetting offset or tilt always sets goal-offset or goal-tilt as well.
david [Tue, 26 Mar 2002 13:44:43 +0000 (13:44 +0000)]
Setting offset or tilt always sets goal-offset or goal-tilt as well.

22 years agoCommented out cout statements that were not in the std namespace.
david [Tue, 26 Mar 2002 13:44:21 +0000 (13:44 +0000)]
Commented out cout statements that were not in the std namespace.

22 years agoI missed committing this one.
david [Tue, 26 Mar 2002 03:14:20 +0000 (03:14 +0000)]
I missed committing this one.

22 years agoOops, in the latest property manager rewrite, a typo crept in on
curt [Tue, 26 Mar 2002 02:38:11 +0000 (02:38 +0000)]
Oops, in the latest property manager rewrite, a typo crept in on
somewhat of a global scale.  This commit should fix all these up.

22 years agoEnsure that all entries in the FGAircraftModel::Animation structure
david [Mon, 25 Mar 2002 22:01:13 +0000 (22:01 +0000)]
Ensure that all entries in the FGAircraftModel::Animation structure
are initialized (reported by Melchior Franz).

22 years agoPatch from Melchior Franz:
david [Mon, 25 Mar 2002 20:05:34 +0000 (20:05 +0000)]
Patch from Melchior Franz:

It seems that the airport database was changed some day and the End?Flags
changed from floats to strings. The database definition, though, was not
adapted and still created number entries. Reading out these flags led to
access to memory, that was never initialized. While it didn't cause crashes
during normal use, it actually caused one when I ran fgfs in ddd. Seems,
that the concerned memory region wasn't zeroed out then and hence uncovered
the bug.

Of course, the runways.mk4 database has to be re-created with the new
definitions.

22 years agoPatch from Erik Hofman:
david [Mon, 25 Mar 2002 19:37:49 +0000 (19:37 +0000)]
Patch from Erik Hofman:

This patch gets F8 working again.

22 years agoMinor patch from David Megginson:
david [Mon, 25 Mar 2002 14:32:13 +0000 (14:32 +0000)]
Minor patch from David Megginson:

Fix FGViewer::update so that pitch offset and goal pitch offset work
together nicely (the offset was snapping to 90/-90 when only one of
the two was changed).

Viewer improvements from Jim Wilson:

These files get the 3d cockpit working and fix a few issues in the viewer
code.
XYZ offsets are now defined as follows: X -left/right+ (along wing axis), Y
-up/down+ perpendicular to the aircraft, Z is -in/out+ the aircraft's body axis.
I've also done some cleaning up of unused and mostly unusable interfaces,
added commentary to the *.hxx, combined together some duplicate code and
eliminated a couple unecessary operations.  I also moved what was left of the
"protected" zone to "private" since we aren't subclassing this anymore.

22 years agoFixed a small typo.
david [Mon, 25 Mar 2002 14:30:29 +0000 (14:30 +0000)]
Fixed a small typo.

22 years agoSupport for assigning custom mouse cursors to mouse modes.
david [Mon, 25 Mar 2002 12:58:26 +0000 (12:58 +0000)]
Support for assigning custom mouse cursors to mouse modes.

22 years agoFirst steps towards configurable mouse input. Soon, this new code
david [Sat, 23 Mar 2002 23:16:13 +0000 (23:16 +0000)]
First steps towards configurable mouse input.  Soon, this new code
(mainly in src/Input/input.cxx) will make src/GUI/mouse.cxx obsolete
and bring the mouse into the same input system as the joystick and
keyboard.  This is just preliminary work allowing, covering mouse
clicks (no motion yet), and it actually crashes on a middle or right
click.

The new mouse support is disabled by default until it become stable;
to try it out, you need to configure --with-new-mouse.

22 years agoUpdates. Includes property tree additions and fixes. Also Jon's first cut at
tony [Sat, 23 Mar 2002 00:29:21 +0000 (00:29 +0000)]
Updates.  Includes property tree additions and fixes.  Also Jon's first cut at
multi-fdm capability.  Thanks also to Erik for pointing out a couple of typos.

22 years agoFix for flaps problem.
tony [Sat, 23 Mar 2002 00:27:16 +0000 (00:27 +0000)]
Fix for flaps problem.

22 years agoRemoved unused function fgFindNode (the version used now is in model.cxx).
david [Fri, 22 Mar 2002 13:24:29 +0000 (13:24 +0000)]
Removed unused function fgFindNode (the version used now is in model.cxx).

22 years agoRemoved unused files.
david [Fri, 22 Mar 2002 13:23:39 +0000 (13:23 +0000)]
Removed unused files.

22 years agoInitial revision of README describing the contents of the src/Main
david [Thu, 21 Mar 2002 22:37:12 +0000 (22:37 +0000)]
Initial revision of README describing the contents of the src/Main
directory.

22 years agoViewer update from Jim Wilson:
david [Thu, 21 Mar 2002 20:59:43 +0000 (20:59 +0000)]
Viewer update from Jim Wilson:

This patch renames the "goal" orientation offsets inputs/outputs to
conform with the naming of the new interface.

22 years agoMinor updates to my own entry.
david [Thu, 21 Mar 2002 16:32:46 +0000 (16:32 +0000)]
Minor updates to my own entry.

22 years agoAdded Erik Hofman's sound contributions.
david [Thu, 21 Mar 2002 16:29:50 +0000 (16:29 +0000)]
Added Erik Hofman's sound contributions.

22 years agoAdded Jim Wilson.
david [Thu, 21 Mar 2002 16:28:11 +0000 (16:28 +0000)]
Added Jim Wilson.

22 years agoRemoved obsolete files.
david [Thu, 21 Mar 2002 13:12:37 +0000 (13:12 +0000)]
Removed obsolete files.

22 years agomore ( string == "" ) to ( string.empty() ) conversions.
curt [Thu, 21 Mar 2002 05:31:55 +0000 (05:31 +0000)]
more ( string == "" ) to ( string.empty() ) conversions.

22 years agoFound by inspection a bug in the generation of orientation matrices
andy [Thu, 21 Mar 2002 03:35:52 +0000 (03:35 +0000)]
Found by inspection a bug in the generation of orientation matrices
for fuselage Surface objects.  If the fuselage wasn't aligned perpendicular
to the Y axis, the matrix wouldn't be orthonormal.  Since all of, perhaps,
three aircraft have ever been built this way, it's doubtful I would have
found this as a bug report. :)

22 years agoFix for the flaps problem.
tony [Thu, 21 Mar 2002 02:26:22 +0000 (02:26 +0000)]
Fix for the flaps problem.

22 years agoIrix fix.
tony [Thu, 21 Mar 2002 01:45:49 +0000 (01:45 +0000)]
Irix fix.

22 years agoModel-loading patch from Dave Luff.
david [Wed, 20 Mar 2002 22:40:11 +0000 (22:40 +0000)]
Model-loading patch from Dave Luff.

22 years agoUse !strcmp for all property name comparisons.
david [Wed, 20 Mar 2002 22:23:10 +0000 (22:23 +0000)]
Use !strcmp for all property name comparisons.

22 years agoUse !strcmp for all property string-value comparisons.
david [Wed, 20 Mar 2002 22:15:22 +0000 (22:15 +0000)]
Use !strcmp for all property string-value comparisons.

22 years agoConverted if ( string == "" ) constructs to if ( string.empty() )
curt [Wed, 20 Mar 2002 19:16:13 +0000 (19:16 +0000)]
Converted if ( string == "" ) constructs to if ( string.empty() )
Fixed a warning in soundmgr.cxx.

22 years agoMajor viewer-code overhaul from Jim Wilson:
david [Wed, 20 Mar 2002 17:43:28 +0000 (17:43 +0000)]
Major viewer-code overhaul from Jim Wilson:

Description:

This update includes the new viewer interface as proposed by David M. and
a first pass at cleaning up the viewer/view manager code by Jim W.

Note that I have dropped Main/viewer_lookat.?xx and Main/viewer_rph.?xx and
modified the Makefile.am accordingly.

Detail of work:

Overall:
The code reads a little easier.  There are still some unnecessary bits in
there and I'd like to supplement the comments in the viewer.hxx with a tiny
bit on each interface group and what the groupings mean (similar but briefer
than what you emailed me the other day).  I tried not to mess up the style,
but there is an occasional inconsistency.  In general I wouldn't call it done
(especially since there's no tower yet! :)), but I'd like to get this out
there so others can comment, and test.

In Viewer:
The interface as you suggested has been implemented.  Basically everything
seems to work as it did visually.  There is no difference that I can see in
performance, although some things might be a tiny bit faster.

I've merged the lookat and rph (pilot view) code into the recalc for the
viewer.  There is still some redundancy between the two, but a lot has been
removed.  In some cases I've taken some code that we'd likely want to inline
anyway and left it in there in duplicate.  You'll see that the code for both
looks a little cleaner.  I need to take a closer look at the rotations in
particular.  I've cleaned up a little there, but I suspect more can be done
to streamline this.

The external declaration to the Quat_mat in mouse.cxx has been removed.  IMHO
the quat doesn't serve any intrinsic purpose in mouse.cxx, but I'm not about
to rip it out.  It would seem that there more conventional ways to get
spherical data that are just as fast.  In any case all the viewer was pulling
from the quat matrix was the pitch value so I modified mouse.cxx to output to
our pitchOffset input and that works fine.

I've changed the native values to degrees from radians where appropriate.
This required a conversion from degrees to radians in a couple modules that
access the interface.  Perhaps we should add interface calls that do the
conversion,  e.g. a getHeadingOffset_rad() to go along with the
getHeadingOffset_deg().

On the view_offset (now headingOffset) thing there are two entry points
because of the ability to instantly switch views or to scroll to a new view
angle (by hitting the numeric keys for example).   This leaves an anomaly in
the interface which should be resolved by adding "goal" settings to the
interface, e.g. a setGoalHeadingOffset_deg(), setGoalPitchOffset_deg(), etc.

Other than these two issues, the next step here will be to look at some
further optimizations, and to write support code for a tower view.  That
should be fairly simple at this point.  I was considering creating a
"simulated tower view" or "pedestrian view" that defaulted to a position off
to the right of whereever the plane is at the moment you switch to the tower
view.  This could be a fall back when we don't have an actual tower location
at hand (as would be the case with rural airports).

ViewManager:
Basically all I did here was neaten things up by ripping out excess crap and
made it compatible as is with the new interface.

The result is that viewmanager is now ready to be developed.  The two
preexisting views are still hardcoded into the view manager.  The next step
would be to design configuration xml (eg /sim/view[x]/config/blahblah) that
could be used to set up as many views as we want.  If we want to take the easy
way out, we might want to insist that view[0] be a pilot-view and have
viewmanager check for that.

22 years agoVarious Irix cleanups.
curt [Wed, 20 Mar 2002 15:57:31 +0000 (15:57 +0000)]
Various Irix cleanups.
Float/Double clean ups for fg_sound.cxx

22 years agoAdded missing file from JSBSim CVS, with 'using namespace std;'
david [Wed, 20 Mar 2002 14:06:14 +0000 (14:06 +0000)]
Added missing file from JSBSim CVS, with 'using namespace std;'
statement added for ANSI-conformant compilers.

22 years agoIrix fixes.
david [Wed, 20 Mar 2002 13:59:34 +0000 (13:59 +0000)]
Irix fixes.

22 years agoUpdates.
tony [Wed, 20 Mar 2002 12:45:39 +0000 (12:45 +0000)]
Updates.

22 years agoFirst commit of properties code. JSBSim now has a basic property tree all
tony [Wed, 20 Mar 2002 12:45:02 +0000 (12:45 +0000)]
First commit of properties code.  JSBSim now has a basic property tree all
under /fdm/jsbsim

22 years agoMajor property-manager rewrite, using const char * throughout
david [Tue, 19 Mar 2002 17:12:13 +0000 (17:12 +0000)]
Major property-manager rewrite, using const char * throughout
interface instead of string.  This will result in a lot more
efficiency later, once I add in a simple hash table for caching
lookups, since it will avoid creating a lot of temporary string
objects.  The major considerations for users will be that they cannot
use

  node->getName() == "foo";

any more, and will have to use c_str() when setting a string value
from a C++ string.

22 years agoOops, "one third from the edge" means "one SIXTH from the center".
andy [Tue, 19 Mar 2002 00:02:18 +0000 (00:02 +0000)]
Oops, "one third from the edge" means "one SIXTH from the center".

22 years agoSomewhere along the line in the recent changes some std::cout were
curt [Mon, 18 Mar 2002 19:46:24 +0000 (19:46 +0000)]
Somewhere along the line in the recent changes some std::cout were
inclueded in some of the files. Irix doesn't have cout in the std class,
so I changed it to "cout" and included SG_USING_NAMESPACE(std) at the
beginning of the files.
And some minor warning cleanups.

22 years agoWhite space tweaks.
curt [Mon, 18 Mar 2002 19:02:59 +0000 (19:02 +0000)]
White space tweaks.

22 years agoHere is a cleaned up hitlist that should solve the PLib conflict
curt [Mon, 18 Mar 2002 16:25:16 +0000 (16:25 +0000)]
Here is a cleaned up hitlist that should solve the PLib conflict
and fixes a 'potential bug' if the FGFS View code were to change

I also consolidated the specialized IntersectLeaf()
as they really didn't gain us much outside of their having
'more direct access into the SSG controlled data'

I would like to see the fgCurrentElevation functions moved
out of hitlist.cxx.

The one obstacle is their being dependent on my PLib
auxillary functions

ssgGetEntityTransform()
ssgGetCurrentBSphere()

code has been run through astyle with the default options

22 years agoIncorporated Norman's optimized line/geometry intersection code.
curt [Sun, 17 Mar 2002 00:38:24 +0000 (00:38 +0000)]
Incorporated Norman's optimized line/geometry intersection code.

22 years agoInitial revision. Things are just beginning to be stubbed in now.
curt [Sun, 17 Mar 2002 00:37:22 +0000 (00:37 +0000)]
Initial revision.  Things are just beginning to be stubbed in now.

22 years agoOops, fixing the ghosts of bugs past. :-) Good thing I remembered how I
curt [Sun, 17 Mar 2002 00:36:39 +0000 (00:36 +0000)]
Oops, fixing the ghosts of bugs past. :-)  Good thing I remembered how I
fixed this when I made the mistake the first time.
The view code wasn't properly handling the transition across tile
boundaries so we'd get a 'flash' of the scene wrongly transformed for
one frame at every tile boundary crossing.  This is what
scenery.get_next_center() is for.

22 years agoRemoved at CM's request.
david [Sat, 16 Mar 2002 22:36:33 +0000 (22:36 +0000)]
Removed at CM's request.

22 years agoMajor weather update from Christian Mayer, tying the weather code into
david [Sat, 16 Mar 2002 20:31:27 +0000 (20:31 +0000)]
Major weather update from Christian Mayer, tying the weather code into
the property system, among other things.  A separate integration into
the FDMs will follow shortly.

This code will be used only if the --with-new-environment option is
*not* passed to configure.

22 years agoReplaced some debugging structure David inadvertantly removed.
curt [Sat, 16 Mar 2002 05:12:26 +0000 (05:12 +0000)]
Replaced some debugging structure David inadvertantly removed.

22 years agoPatches from Tony Peden to separate property XML I/O operations into a
david [Sat, 16 Mar 2002 00:18:38 +0000 (00:18 +0000)]
Patches from Tony Peden to separate property XML I/O operations into a
separate header file.  This change will help integrate properties into
JSBSim.

Also, I (David Megginson) removed most of the SimGear include
statements from globals.hxx, reducing the amount of recompilation
every time SimGear changes.  This required making minor changes to a
lot of files that were depending on the side-effects of the inclusions
in globals.hxx.

22 years agoRenamed /cockpit property to /sim/view/internal.
david [Fri, 15 Mar 2002 21:50:14 +0000 (21:50 +0000)]
Renamed /cockpit property to /sim/view/internal.

22 years agoPrint an error message before terminating on parse errors.
andy [Fri, 15 Mar 2002 19:02:07 +0000 (19:02 +0000)]
Print an error message before terminating on parse errors.

22 years agoMore work on saving and restoring flights. Restoring a flight is not
david [Thu, 14 Mar 2002 14:25:30 +0000 (14:25 +0000)]
More work on saving and restoring flights.  Restoring a flight is not
working in a running FlightGear session because of JSBSim trim-routine
problems, but it does work from the command-line now, i.e.

  fgfs fgfs.sav

22 years agoChange fog punch through value a bit. Either way it's a WAG for now, but
curt [Thu, 14 Mar 2002 00:52:38 +0000 (00:52 +0000)]
Change fog punch through value a bit.  Either way it's a WAG for now, but
at least it's less obviously wrong.

22 years agoRemoved some cout statements left in accidentally.
david [Thu, 14 Mar 2002 00:30:21 +0000 (00:30 +0000)]
Removed some cout statements left in accidentally.

22 years agoCentralized most view-management code in FGViewMgr. It's still a
david [Thu, 14 Mar 2002 00:29:20 +0000 (00:29 +0000)]
Centralized most view-management code in FGViewMgr.  It's still a
mess, but the mess is all in one place now.

22 years agoCombined and updated some code to calculate fog parameters.
curt [Wed, 13 Mar 2002 17:06:41 +0000 (17:06 +0000)]
Combined and updated some code to calculate fog parameters.

22 years agoFix several signed vs. unsigned warning messages.
curt [Wed, 13 Mar 2002 17:06:17 +0000 (17:06 +0000)]
Fix several signed vs. unsigned warning messages.

22 years agoAutopilot cleanup:
david [Wed, 13 Mar 2002 16:31:21 +0000 (16:31 +0000)]
Autopilot cleanup:

- implement the standard FGSubsystem interface, for consistency
- eliminate current_autopilot and add get/set_autopilot to FGGlobals,
  for consistency
- use private methods rather than static functions for tying
  properties

There should be no change in functionality.

22 years agoAdd "(" and ")" to ensure the expression is evaluated correctly.
curt [Wed, 13 Mar 2002 15:55:32 +0000 (15:55 +0000)]
Add "(" and ")" to ensure the expression is evaluated correctly.

22 years agoEliminate dependencie on tying variable pointers (in preparation for
david [Wed, 13 Mar 2002 15:16:24 +0000 (15:16 +0000)]
Eliminate dependencie on tying variable pointers (in preparation for
property-code simplification).

22 years agoAdded a final newline to avoid a compiler warning.
david [Wed, 13 Mar 2002 14:17:59 +0000 (14:17 +0000)]
Added a final newline to avoid a compiler warning.

22 years agoWorking on the start of a 'standard' <grin> remote FDM interface. This
curt [Wed, 13 Mar 2002 06:07:07 +0000 (06:07 +0000)]
Working on the start of a 'standard' <grin> remote FDM interface.  This
is a work in progress and needs severe enhancement before it will be
useful.  It provides a UDP data channel that goes both ways between
flightgear and the fdm.  It also provides a TCP 'command' channel so
flightgear can 'reliably' send commands to the remote fdm (such as set
starting position, reset on ground, etc.)

22 years agoBetter support of the newer more flexible object file format. This
curt [Wed, 13 Mar 2002 06:03:37 +0000 (06:03 +0000)]
Better support of the newer more flexible object file format.  This
includes the ability to specify per vertex normals rather than depending
the normals list being the same as the vertices list.  (Support for
previous binary file format scenery is maintained.)

22 years agoPatch from Jim Wilson to fix internal cockpit view rotations:
david [Wed, 13 Mar 2002 04:58:08 +0000 (04:58 +0000)]
Patch from Jim Wilson to fix internal cockpit view rotations:

This seems to pretty much correct the problem.  Part of the problem is that
rotations are occuring at the firewall (model origin) which seems a little
un-natural inside the cockpit.  The rest of the problem is I am just learning
how this stuff works (I know I've been saying this for a couple months
now...but hey I'm slow :-)).

22 years ago*** empty log message ***
curt [Tue, 12 Mar 2002 20:38:26 +0000 (20:38 +0000)]
*** empty log message ***

22 years agoFixes for Irix compatibility.
curt [Tue, 12 Mar 2002 20:01:54 +0000 (20:01 +0000)]
Fixes for Irix compatibility.
Fix several long standing irix compiler warnings.

22 years agoAdded a new 'delimiter' property to allow an alternative delimiter to
david [Tue, 12 Mar 2002 19:55:49 +0000 (19:55 +0000)]
Added a new 'delimiter' property to allow an alternative delimiter to
the comma, and fixed a constant that was causing CygWin compilation
problems.

22 years agoDocumented the new 'delimiter' property, allowing an alternative to
david [Tue, 12 Mar 2002 19:55:05 +0000 (19:55 +0000)]
Documented the new 'delimiter' property, allowing an alternative to
comma-delimited, and noted that no delimiter escaping is done in
property values.

22 years agoAdd support for elapsed time and logging.
david [Tue, 12 Mar 2002 16:30:27 +0000 (16:30 +0000)]
Add support for elapsed time and logging.

22 years agoBind a new property, /sim/time/elapsed-ms, giving the number of
david [Tue, 12 Mar 2002 16:29:32 +0000 (16:29 +0000)]
Bind a new property, /sim/time/elapsed-ms, giving the number of
milliseconds elapsed since the simulation began.

22 years agoAdded new logging module.
david [Tue, 12 Mar 2002 16:29:00 +0000 (16:29 +0000)]
Added new logging module.

22 years ago*** empty log message ***
curt [Tue, 12 Mar 2002 05:37:55 +0000 (05:37 +0000)]
*** empty log message ***

22 years agoPatches from Erik.
curt [Mon, 11 Mar 2002 22:55:52 +0000 (22:55 +0000)]
Patches from Erik.

22 years agoRemoved some extra debugging output that wasn't supposed to be committed.
curt [Mon, 11 Mar 2002 22:55:01 +0000 (22:55 +0000)]
Removed some extra debugging output that wasn't supposed to be committed.

22 years agoOops, make sure we are generating an ocean tile if we can't load a terrain
curt [Mon, 11 Mar 2002 22:50:23 +0000 (22:50 +0000)]
Oops, make sure we are generating an ocean tile if we can't load a terrain
tile.
Fixed a warning in the sound manager.

22 years agoCleaned up a couple compiler warnings.
curt [Mon, 11 Mar 2002 15:41:39 +0000 (15:41 +0000)]
Cleaned up a couple compiler warnings.

22 years agoRemoved badly out-of-date documents on 3D models and properties.
david [Mon, 11 Mar 2002 14:51:32 +0000 (14:51 +0000)]
Removed badly out-of-date documents on 3D models and properties.

22 years agoSound patch from Erik Hofman:
david [Sun, 10 Mar 2002 19:31:30 +0000 (19:31 +0000)]
Sound patch from Erik Hofman:

* Add new trigger types: raise, fall
* Add new trigger offset parameter
* Add new volume/pitch types: inv, abs, sqrt
* Add initial support for multiple events to intervere in a single sound
   (by using the same name, see the crank section of 172-sound.xml)
* Cached the volume/pitch type fucntions
   (No more if's inside the loops in update())

22 years agoAdded test-env-map.
david [Sun, 10 Mar 2002 19:25:00 +0000 (19:25 +0000)]
Added test-env-map.

22 years agoSgi doesn't define the != operator for string != char[] so we need to cast
curt [Fri, 8 Mar 2002 23:24:59 +0000 (23:24 +0000)]
Sgi doesn't define the != operator for string != char[] so we need to cast
the char array into a (string) type before doing the comparison.

22 years agoFirst baby steps towards restructuring the view architecture. I've
david [Wed, 6 Mar 2002 16:03:33 +0000 (16:03 +0000)]
First baby steps towards restructuring the view architecture.  I've
created a new class, FGViewPoint (declared in viewer.hxx) that holds a
single position in FlightGear coordinates, and have used it to factor
a lot of the common code out of viewer_lookat.cxx and viewer_rph.cxx.

I don't know whether this new class will stay or not; it might just be
a temporary step, or it might end up taking over much of the current
viewer functionality.  It would be a bad idea to code against it right
now.

22 years agoIf the (temporary) property /cockpit is true, set the near clipping
david [Wed, 6 Mar 2002 16:01:19 +0000 (16:01 +0000)]
If the (temporary) property /cockpit is true, set the near clipping
plane to 0.2; otherwise, use the old defaults.

This is a temporary step that will allow me to work on a 3D cockpit
without breaking current behaviour; the final approach will be to put
the 3D model in its own scene graph, with different clipping plane.

22 years agoTemporarily rolled out last change, pending a restructuring of the
david [Wed, 6 Mar 2002 15:54:25 +0000 (15:54 +0000)]
Temporarily rolled out last change, pending a restructuring of the
view infrastructure: vertical mouse panning wasn't working.

22 years agoPatch from Andy Ross to allow virtual panel to tilt with mouse view:
david [Wed, 6 Mar 2002 13:53:18 +0000 (13:53 +0000)]
Patch from Andy Ross to allow virtual panel to tilt with mouse view:

OK, attached is a replacement for mouse.cxx that works the view using
the view-offset/tilt interface, rather than the (kinda odd) GuiQuat
stuff.  It's kind of a hack job, as I left the hooks to GuiQuat in in
other places for fear of breaking something.  Still, it removed more
code from mouse.cxx than it added, which has to count for some
elegance points.

22 years agoPatch from Andy Ross to hide virtual panel when required:
david [Wed, 6 Mar 2002 13:51:05 +0000 (13:51 +0000)]
Patch from Andy Ross to hide virtual panel when required:

Oh yeah, I forgot to send that one along.  This one is my bug, I
goofed the precedence in the fgPanelVisible() function in panel.cxx
such that the panel was *always* visible if virtual cockpit was
enabled.  Here's a replacement.  I've modified the style from a single
boolean expression to an if-list, since that's more readable to my
eyes for expressions this big:

22 years agoAdded test-env-map.cxx - an environment map demo/test program.
curt [Wed, 6 Mar 2002 05:05:17 +0000 (05:05 +0000)]
Added test-env-map.cxx - an environment map demo/test program.

22 years agoTemporarily reverted change to near/far clip plane.
david [Tue, 5 Mar 2002 22:25:11 +0000 (22:25 +0000)]
Temporarily reverted change to near/far clip plane.

22 years agoStart of an internal 3-D view. If the property "/cockpit" (temporary
david [Tue, 5 Mar 2002 13:39:45 +0000 (13:39 +0000)]
Start of an internal 3-D view.  If the property "/cockpit" (temporary
and soon to be renamed) is true, FlightGear will draw the 3-D model
even in internal view.  This makes sense right now only with the C310
model, since the others don't have any kind of interiors modeled and
all surfaces in all models are one-sided.

This isn't quite working yet -- the view code is very hard to
disentangle, and currently, if the view is not forward, roll and pitch
are applied incorrectly.  It looks interesting (modulo a messy model)
on the ground, in level flight, or looking straight ahead under any
other flight conditions.

22 years agoChanged the near clip plane to 0.1f regardless. Previously, it jumped
david [Tue, 5 Mar 2002 13:35:48 +0000 (13:35 +0000)]
Changed the near clip plane to 0.1f regardless.  Previously, it jumped
to 10m after takeoff, but that doesn't really make sense any more,
especially if models are going to have interior views.  Is there any
real saving in pushing the near plane out anyway?