]> git.mxchange.org Git - flightgear.git/log
flightgear.git
18 years agoUpdates from Vassilii Khachaturov as suggested by George Patterson
ehofman [Sun, 16 Oct 2005 08:24:43 +0000 (08:24 +0000)]
Updates from Vassilii Khachaturov as suggested by George Patterson

18 years agoAllow a single vacuum system to be driven by multiple pumps. This allows
curt [Sat, 15 Oct 2005 20:03:17 +0000 (20:03 +0000)]
Allow a single vacuum system to be driven by multiple pumps.  This allows
modeling of a simple single vacuum system with a pump source on each engine
in a multiengine aircraft.  The highest rpm engine takes priority for driving
the vacuum system.

18 years agoDon't use the this pointer for referencing the AIModels anymore, this
ehofman [Sat, 15 Oct 2005 14:55:51 +0000 (14:55 +0000)]
Don't use the this pointer for referencing the AIModels anymore, this
turns out to get problematic on 64-bit systems. Instead use a regular
int based approach.

18 years agoMathias Fröhlich:
ehofman [Sat, 15 Oct 2005 14:51:52 +0000 (14:51 +0000)]
Mathias Fröhlich:

I had a quick view over the ssgBase::ref() calls in flightgear.
I made them all symmetric and used ssgDeRefDelete to dereference them.
This has the basic advantage that ssgDeRefDelete additionaly deletes the
memory instead of just decrementing the reference cound without deletion ...

This includes an incorrect deref instead of a ssgDeRefDelete in the placement
transform registration I introduced earlier. I believe that this causes the
problems with long flights (unverified, but with a big propability).

18 years agoVivian caught some missing length conversions in the gear offset
andy [Fri, 14 Oct 2005 21:27:33 +0000 (21:27 +0000)]
Vivian caught some missing length conversions in the gear offset
properties (What are these for?  I have no memory of these
properties...)

18 years agoSupport gear compression along axes other than vertical (Vivian needs
andy [Fri, 14 Oct 2005 21:20:51 +0000 (21:20 +0000)]
Support gear compression along axes other than vertical (Vivian needs
it for the B-29).  The gear model itself has supported this always,
but there was no interface from the XML file.  Should be backwards
compatible.  I don't think I broke anything...

18 years agoMathias Fröhlich:
ehofman [Fri, 14 Oct 2005 16:25:14 +0000 (16:25 +0000)]
Mathias Fröhlich:

I have done a valgrind run in flightgear. Just start it up and close it at the
fist change I had about half an hour later.

source-leak.diff:
   Also two minor ones, but leaks ...

18 years agoVassilii Khachaturov:
ehofman [Thu, 13 Oct 2005 13:42:17 +0000 (13:42 +0000)]
Vassilii Khachaturov:

I've updated README.multiplayer to reflect the recent changes.

18 years agoMathias Fröhlich:
ehofman [Wed, 12 Oct 2005 08:55:58 +0000 (08:55 +0000)]
Mathias Fröhlich:

I stumbled across two memory errors with two wrong const references to
std::string.

As I fixed that, I also moved aircraft_dir which is only used from UIUC into
UIUC. With that uiuc_aircraftdir.h is empty and can be removed.

18 years agoFix two small typos.
curt [Tue, 11 Oct 2005 18:58:05 +0000 (18:58 +0000)]
Fix two small typos.

18 years agoUse our own set of endian functions. This fixes a Cygwin problem.
ehofman [Tue, 11 Oct 2005 08:21:07 +0000 (08:21 +0000)]
Use our own set of endian functions. This fixes a Cygwin problem.

18 years agoMathias Fröhlich:
ehofman [Sat, 8 Oct 2005 12:33:06 +0000 (12:33 +0000)]
Mathias Fröhlich:

I believe I have found the agl hud problems as well as the 'hole' in the
carrier's deck. I spent half the day to reproduce that problem, it did not
occure when you start on the carrier not does it occure with JSBSim and my
really often used testaircraft. So I really need to improove my helicopter
flying qualities.

I was under the impression that *all* FDM's call

FGInterface::updateGeo*Position(..)

so set the new position in the FDM interface. Therefore I had added at the
some code that updates the scenery elevation below the aircraft to *those*
functions.
Ok, not all FDM's do so :/

The attached patch factors out a function computing the scenery altitude at
the current FDM's position. This function is also used in those FDM's which
need to update this value themselves.
Also this patch restores the nearplane setting and uses the current views
altitude instead of the current aircrafts. I think that this should further
be changed to the eypoint's agl in the future.
The agl is again ok in YASim's hud.

18 years agoHarald JOHNSEN:
ehofman [Sat, 8 Oct 2005 11:55:18 +0000 (11:55 +0000)]
Harald JOHNSEN:

Changes
=======

- acmodel.cxx :
  we now have an optional new property (/sim/model/texture-path) that is used
  as the first path in wich aircraft textures are searched. If textures are not
  found there then the usual texture path or model path is used ;
  This allows to replace only needed textures for liveries ;

- options.cxx :
  added a new --livery=xxx option for the user pleasure ;
  this will just set the /sim/model/texture-path property with /livery/xxxx

- od_gauge.cxx, og_gauge.hxx, cockpit.cxx, cockpit.hxx,
  generic-instrumentation.xml :
  added an helper class that contain a rendering context for glass instrument
  or any other opengl drawn instrument ;

- wxradar.cxx, instrument_mgr.cxx, wxradar.hxx :
  first experimentation of a weather radar ;

18 years agoMartin Spott: Use standardized Sun directive.
ehofman [Thu, 6 Oct 2005 11:08:26 +0000 (11:08 +0000)]
Martin Spott: Use standardized Sun directive.

18 years agoNot all compilers understand the C++ 'and' command,
ehofman [Thu, 6 Oct 2005 09:28:36 +0000 (09:28 +0000)]
Not all compilers understand the C++ 'and' command,
use the C style && instead.

18 years agonormalmap
mfranz [Wed, 5 Oct 2005 11:53:34 +0000 (11:53 +0000)]
normalmap

18 years agocvsignore
mfranz [Wed, 5 Oct 2005 11:52:25 +0000 (11:52 +0000)]
cvsignore

18 years agoAl MacLeod: fix typo
mfranz [Tue, 4 Oct 2005 20:36:38 +0000 (20:36 +0000)]
Al MacLeod: fix typo

18 years agoprevent view through big hole in carrier deck
mfranz [Tue, 4 Oct 2005 18:01:45 +0000 (18:01 +0000)]
prevent view through big hole in carrier deck

18 years agoonly skip one comment line at the top of TACAN_freq.dat.gz
mfranz [Sun, 2 Oct 2005 17:57:16 +0000 (17:57 +0000)]
only skip one comment line at the top of TACAN_freq.dat.gz

18 years agoAdd missing files.
ehofman [Sat, 1 Oct 2005 11:08:06 +0000 (11:08 +0000)]
Add missing files.

18 years agoVivian Meazza:
ehofman [Sat, 1 Oct 2005 09:56:53 +0000 (09:56 +0000)]
Vivian Meazza:

This adds a TACAN instrument to the inventory. Range and bearing are calculated
to the TACAN or VORTAC beacon selected by means of the Channel Selector in the E
quipment/Radio pull-down menu.

A TACAN beacon has also been added to the aircraft carrier Nimitz (channel #029Y
).

18 years agoRemove unused defines
ehofman [Wed, 28 Sep 2005 14:19:16 +0000 (14:19 +0000)]
Remove unused defines

18 years agoCygwin doesn't handle endianness properly at the moment, try a different approach.
ehofman [Wed, 28 Sep 2005 14:03:43 +0000 (14:03 +0000)]
Cygwin doesn't handle endianness properly at the moment, try a different approach.

18 years agoUse our own (crossplatform) stdint implementation.
ehofman [Wed, 28 Sep 2005 13:55:54 +0000 (13:55 +0000)]
Use our own (crossplatform) stdint implementation.

18 years agoVivian pointed out that the gear keep rotating after the wheel leaves
andy [Tue, 27 Sep 2005 16:53:12 +0000 (16:53 +0000)]
Vivian pointed out that the gear keep rotating after the wheel leaves
the ground.  Fix this by zeroing the values, although a fancier
implementation (that spins down slowly and honors the brake input)
would be possible...

18 years agoAdd a pass through so we can capture IMU/INS/GPS data to a file at the same
curt [Mon, 26 Sep 2005 21:19:01 +0000 (21:19 +0000)]
Add a pass through so we can capture IMU/INS/GPS data to a file at the same
time as using it to drive a copy of FlightGear.

18 years agoAdd some initial support for reading live data from a serial port (and
curt [Mon, 26 Sep 2005 21:02:48 +0000 (21:02 +0000)]
Add some initial support for reading live data from a serial port (and
passing it along to FlightGear.)  I notice that the serial port read only
seems to work correctly if I read one character at a time.  Multicharacter
reads seem very unreliable.

18 years agoAdd a lib needed by Irix.
curt [Sun, 25 Sep 2005 19:04:30 +0000 (19:04 +0000)]
Add a lib needed by Irix.

18 years agoRoy Vegard Ovesen:
ehofman [Sun, 25 Sep 2005 07:49:18 +0000 (07:49 +0000)]
Roy Vegard Ovesen:

I've prepared a patch as suggested by Hans-Georg Wunder and Jeff McBride.

In addition I've removed the ability to completely leave out the integral
action by setting Ti to zero. The velocity form of the PID algorithm _needs_
the integral action.

18 years agoAdd an XML grep utility. It's far from complete but it allowed me to test the animati...
ehofman [Sat, 24 Sep 2005 12:31:41 +0000 (12:31 +0000)]
Add an XML grep utility. It's far from complete but it allowed me to test the animation files for the precense of the 'offset' element in the translation animation sections.

18 years agoSwitch over to using SGIOChannel so we can try to read data live from
curt [Fri, 23 Sep 2005 21:23:13 +0000 (21:23 +0000)]
Switch over to using SGIOChannel so we can try to read data live from
the serial port at some future time.

18 years agoFix one small type ambiguity and then do some code restructuring.
curt [Fri, 23 Sep 2005 19:55:52 +0000 (19:55 +0000)]
Fix one small type ambiguity and then do some code restructuring.

18 years agoUse our own stdint.hxx implementation.
ehofman [Thu, 22 Sep 2005 11:47:58 +0000 (11:47 +0000)]
Use our own stdint.hxx implementation.

18 years agoBetter cross platform compatibility.
ehofman [Wed, 21 Sep 2005 09:43:32 +0000 (09:43 +0000)]
Better cross platform compatibility.

18 years agoUpdate for 32-bit systems.
ehofman [Wed, 21 Sep 2005 09:17:32 +0000 (09:17 +0000)]
Update for 32-bit systems.

18 years agoChanges to support the new naCall API in SimGear. NOTE: these changes
andy [Tue, 20 Sep 2005 21:09:52 +0000 (21:09 +0000)]
Changes to support the new naCall API in SimGear.  NOTE: these changes
are *not* backwards compatible, and require current SimGear to
compile.

18 years agoDavid Luff:
curt [Tue, 20 Sep 2005 20:26:57 +0000 (20:26 +0000)]
David Luff:

Attached is a patch to the airport data storage that I would like committed
after review if acceptable.  Currently the storage of airports mapped by ID
is by locally created objects - about 12 Meg or so created on the stack if
I am not mistaken.  I've changed this to creating the airports on the heap,
and storing pointers to them - see FGAirportList.add(...) in
src/Airports/simple.cxx.  I believe that this is probably better practice,
and it's certainly cured some strange problems I was seeing when accessing
the airport data with some gps unit code.  Changes resulting from this have
cascaded through a few files which access the data - 11 files are modified
in all.  Melchior and Durk - you might want to test this and shout if there
are problems since the metar and traffic code are probably the biggest
users of the airport data.  I've also added a fuzzy search function that
returns the next matching airport code in ASCII sequence in order to
support gps units that have autocompletion of partially entered codes.

More generally, the simple airport class seems to have grown a lot with the
fairly recent addition of the parking, runway preference and schedule time
code.  It is no longer just an encapsulation of the global airport data
file, and has grown to 552 bytes in size when unpopulated (about 1/2 a K!).
 My personal opinion is that we should look to just store the basic data in
apt.dat for all global airports in a simple airport class, plus globally
needed data (metar available?), and then have the traffic, AI and ATC
subsystems create more advanced airports for themselves as needed in the
area of interest.  Once a significant number of airports worldwide have
ground networks and parking defined, it will be impractical and unnecessary
to store them all in memory.  That's just a thought for the future though.

18 years agoRemove old FAQ maintainer's address.
curt [Tue, 20 Sep 2005 17:01:48 +0000 (17:01 +0000)]
Remove old FAQ maintainer's address.

18 years agoAdd a byte swap test utility.
ehofman [Tue, 20 Sep 2005 09:35:20 +0000 (09:35 +0000)]
Add a byte swap test utility.

18 years agoOliver Schroeder:
ehofman [Sun, 18 Sep 2005 12:37:18 +0000 (12:37 +0000)]
Oliver Schroeder:

I have prepared a new patch for multiplayer, which fixes endianess issues with
multiplayer code. It's basically identical to the patch I sent before my
vacation, but contains minor fixes.

Multiplayer should now be working under all unix-like environments and windows
native. The basic trick is to let configure check for endianess of the host
system.

It will not work on system not using configure in the build process (excluding
windows), ie. possibly MACOS. For those system we should provide #ifdefs in
tiny_xdr.hpp.

Erik:
I've updated the patch to use the Plib utils package for endian swapping an
used a preprocessor directive to detect endianess.

18 years agoHarald JOHNSEN:
ehofman [Sun, 18 Sep 2005 09:49:26 +0000 (09:49 +0000)]
Harald JOHNSEN:

this is the correction for the visibility bug/yasim crash. I've also made a little change that could help in the metar init.

18 years agoLee Elliot:
curt [Fri, 16 Sep 2005 20:21:15 +0000 (20:21 +0000)]
Lee Elliot:

>> Hello List,
>>
>> I think there's a small bug in the moving-average filter in
>> xmlauto.cxx
>>
>> I noticed that the output from it was always out a bit and
>> checking with a calculator showed that it seemed to be dividing
>> by the number of samples + 1 instead of just the number of
>> samples.
>>
>> subtracting 1 from 'samples' in line 702 seems to fix the problem
>> and as 'samples' doesn't seem to be used elsewhere I think it's
>> safe.  Possibly implies that the number of samples may be one
>> less than specified but I'm not familiar enough with c++ to spot
>> it.

Roy Ovesen:

You are right. I would suggest resizing input[] to (samples + 1) instead.
Change lines 654 and 661 to:

input.resize(samples + 1, 0.0);

That way we average over the number of samples as configured.

18 years agoPrepare for OpenAL 1.1 and a separate alut lubrary.
ehofman [Thu, 15 Sep 2005 17:31:05 +0000 (17:31 +0000)]
Prepare for OpenAL 1.1 and a separate alut lubrary.

18 years agoMingW32 fixes.
ehofman [Sun, 11 Sep 2005 09:53:55 +0000 (09:53 +0000)]
MingW32 fixes.

18 years agoBring up to date.
ehofman [Sun, 11 Sep 2005 09:48:19 +0000 (09:48 +0000)]
Bring up to date.

18 years agoAdd a convienient ctor
daveluff [Fri, 9 Sep 2005 12:33:23 +0000 (12:33 +0000)]
Add a convienient ctor

18 years agoMathias Fröhölöiööhlich:
ehofman [Mon, 5 Sep 2005 13:25:09 +0000 (13:25 +0000)]
Mathias Fröhölöiööhlich:

There was a patch from Manuel Masing a few months ago which cleaned up
SGLocation's way depending on input values. That means that with that patch
SGLocation does no longer have calls with unneeded input arguments.
I took his patch and integrated that into flightgear and made maximum use of
that changes.

Erik Hofman:
Remove some duplicate code that was moved to simgear/compiler.h

18 years agoCompute speed in kts. Speed is linear, but relative to earth centered
curt [Mon, 29 Aug 2005 03:06:42 +0000 (03:06 +0000)]
Compute speed in kts.  Speed is linear, but relative to earth centered
coordinates.

18 years agoCreated a utility (similar to GPSsmooth) that can take a recorded file of
curt [Sat, 27 Aug 2005 20:00:58 +0000 (20:00 +0000)]
Created a utility (similar to GPSsmooth) that can take a recorded file of
MIDG-II binary data and replay it in FG.  For more details on the MIDG-II
see: http://www.microboticsinc.com/midg.html

18 years agoFix a small oops. We need to convert values from network byte order before
curt [Tue, 23 Aug 2005 21:38:49 +0000 (21:38 +0000)]
Fix a small oops.  We need to convert values from network byte order before
trying to use them.

18 years agoSlightly more user friendly output.
curt [Tue, 23 Aug 2005 21:36:05 +0000 (21:36 +0000)]
Slightly more user friendly output.

18 years agoMinor clean up.
curt [Tue, 23 Aug 2005 21:02:44 +0000 (21:02 +0000)]
Minor clean up.

18 years agoScale gyro input power for the new[er] electrical system.
curt [Tue, 23 Aug 2005 02:26:16 +0000 (02:26 +0000)]
Scale gyro input power for the new[er] electrical system.

18 years agoRemove some old debugging output.
curt [Mon, 22 Aug 2005 23:47:17 +0000 (23:47 +0000)]
Remove some old debugging output.

18 years agoRemove an unneeded include.
curt [Mon, 22 Aug 2005 23:31:23 +0000 (23:31 +0000)]
Remove an unneeded include.

18 years agoHarald JOHNSEN:
ehofman [Mon, 22 Aug 2005 17:49:50 +0000 (17:49 +0000)]
Harald JOHNSEN:

- replay.cxx :
  corrected a bug, now reinitialize the recording data when replay is
  deactivated

- fgclouds.cxx :
  cloud layers and weather condition are saved when choosing a weather scenario,
  added a new scenario 'none' so we can switch back to standard flightgear
  weather

- navradio.cxx :
  force a search() on init to initialize some variables, preventing a nearly
  infinite loop  when delta-time == 0 on the first update()

- electrical.cxx :
  uninitialized variable in apply_load() for FG_EXTERNAL supplier

- panel.cxx, panelnode.cxx :
  added a property "depth-test" for 2.5D panels so that they update the depth
  buffer and are no more visible from the outside of the aircraft when the
  aircraft uses textures without an alpha channel

- panel.cxx :
  moved the computation of the instruments diffuse color outside the
  texturelayer code since this is constant during a frame, this is a big speedup
  for 2D panels

18 years agoMSVC fix.
ehofman [Thu, 18 Aug 2005 09:17:39 +0000 (09:17 +0000)]
MSVC fix.

18 years agoVivian Meazza:
ehofman [Tue, 16 Aug 2005 09:37:23 +0000 (09:37 +0000)]
Vivian Meazza:

Some quite extensive changes to the AIModel code:

1. Mathias has made major changes to the AICarrier code to provide better
alignment of an aircraft on deck with the carrier - this feature is a major
improvement on the existing, but has a bug which might cause it to fail when
the computer carries out other tasks - changing window size is a known
example. This bug is outwith this code.

2.  I have made significant changes to the AIShip code to enable a ship the
turn and roll smoothly.

3. I have added some simple AI which enables the carrier to remain within,
or return to, an operating box.

4. An automated turn into wind for flying operations.

5. A simplistic implementation of TACAN within AICarrier. I am in the course
of implementing this as a generic instrument, but this is some time off
completion.

18 years agoMathias Fröhlich:
ehofman [Sun, 14 Aug 2005 12:57:12 +0000 (12:57 +0000)]
Mathias Fröhlich:

I have prepared a patch that:
- Introduces a FGTileMgr::scenery_available method which asks the tilemanager
  if scenery for a given range around a lat/lon pair is already loaded and make
  use of that method at some -9999 meter checks.
- Introduces a FGScenery::get_elevation_m method which queries the altitude at
  a given position. In constrast to the groundcache functions this is the best
  choice if you ask for one *single* altitude value. Make use of that thing in
  AI/ATC classes and for the current views ground level. At the current views
  part the groundcache is reused if possible.
- The computation of the 'current groundlevel' is no longer done on the
  tilemanagers update since the required functions are now better seperated.

Alltogether it eliminates somehow redundant terrain level computations which
are now superseeded by that more finegrained functions and the existence of
the groundcache. Additionally it introduces an api to commonly required
functions which was very complex to do prevously.

18 years agoSyd Adams:
curt [Wed, 3 Aug 2005 19:58:42 +0000 (19:58 +0000)]
Syd Adams:

I made some changes to clock.cxx to output minute, hour and a shortened text
string (hh:mm) for the digital clock in the Citation Bravo...

18 years agoRalf Gerlich:
ehofman [Sun, 31 Jul 2005 14:05:55 +0000 (14:05 +0000)]
Ralf Gerlich:

- automatic detection of axis directionality, so that axis inputs are appropriately inverted only when necessary
- fixed trim axis names for better understandability
- fixed signs for flaps up/down property increments
- button 0 was previously used for skipping axes and buttons in both loops. Now button 0 can be assigned a binding (e.g., brakes). Instead, moving any axis during the button-assignment-loop indicates skipping.
- The user is now told how to skip a control.

18 years agoHarald JOHNSEN:
ehofman [Sun, 31 Jul 2005 09:04:18 +0000 (09:04 +0000)]
Harald JOHNSEN:

I did some profiling of the code and found a few interessant things. Some corrections are obvious like the one in the multiplayer code, the fps is no more divided by 2 or 3 when another plane is on screen.

Other things like collision detection and computation of agl can not really be optimized. I changed a few things in hitlist.cxx but this only give a very low increase of fps. The groundcache eats a lot of cpu but I think that the real way to do it is to use a real collision system like OPCODE or something like that.

And I added an option to disable the recording of replay data. It takes more cpu than we can think.

Changes
=======

- panel.cxx :
  moved the computation of the instruments diffuse color outside the texturelayer code
  since this is constant during a frame, this is a big speedup for 2D panels ;

- hitlist.cxx :
  changed the computation of the intersection between ray and triangle, optimized
  the sphere culling by using a normalized direction vector. This can give a
  35% speedup on the computation of elevation in some situations ;

- renderer.cxx, acmodel.cxx :
  call ssgDrawAndCull with plane scene graph in external or internal view,
  calling ssgDrawAndCull with the root scene graph was drawing other players plane
  a second time in multiplayer mode ;

- mplayer.cxx :
  removed the calls to ssgFlatten and ssgStripify because it was degenerating models,
  causing a massive drop in frame rate ;

- replay.cxx :
  added an option to disable the recording of the flight

- fgclouds.cxx :
  changed the path of cloudlayer properties to match preferences.xml ;
  set the altitude of clouds from scenarios to a more correct value if metar is not enabled ;

18 years agoFrederic: MSVC doesn't have stdint.h. I just copied the code found in net_gui.hxx...
ehofman [Sun, 31 Jul 2005 08:13:09 +0000 (08:13 +0000)]
Frederic: MSVC doesn't have stdint.h. I just copied the code found in net_gui.hxx to address this issue.

18 years agoMathias Fröhlich:
ehofman [Thu, 28 Jul 2005 08:40:03 +0000 (08:40 +0000)]
Mathias Fröhlich:

I have now included a patch to the multiplyer protocoll which does:

1. place the 3d model into the scenery using a placement transform which can
dynamically change its scenry center.
2. Transmits unique position and orientation data for the 3d model.
3. Thus breaks protocol compatibility.

Oliver Schroeder:
With help from Norman I fixed the alignment in the used headers.

But this patch again fixes only symtoms, not the problems. I suggest to
put it into cvs anyway, as it will enable the majority to get experience
with the multiplayer mode.

18 years agoMathias:
ehofman [Wed, 27 Jul 2005 11:53:47 +0000 (11:53 +0000)]
Mathias:

Turns out to be a bad interaction between jsbsims crash detection and my
past initialization changes.
The attached patch fixes this by moving crash detection out of the
initialization phase of jsbsim.

18 years agoMacOS-X fix.
ehofman [Wed, 27 Jul 2005 07:59:59 +0000 (07:59 +0000)]
MacOS-X fix.

18 years agoWhy this didn't ring any alarm bells during my previous test compile is beyond me...
ehofman [Tue, 26 Jul 2005 20:12:03 +0000 (20:12 +0000)]
Why this didn't ring any alarm bells during my previous test compile is beyond me, but this should get FlightGear in a compilable state again.

18 years agoMore updates.
ehofman [Tue, 26 Jul 2005 18:00:30 +0000 (18:00 +0000)]
More updates.

18 years agoRemove a stale reference.
ehofman [Tue, 26 Jul 2005 16:57:56 +0000 (16:57 +0000)]
Remove a stale reference.

18 years agoRemove unused code, especially concidering the non-commercial clause in the copyright...
ehofman [Tue, 26 Jul 2005 08:08:41 +0000 (08:08 +0000)]
Remove unused code, especially concidering the non-commercial clause in the copyright statement.

18 years agoHarald JOHNSEN:
ehofman [Sun, 24 Jul 2005 14:05:28 +0000 (14:05 +0000)]
Harald JOHNSEN:

- AIManager.cxx :
  - we can now have multiple <scenario> entries in the sim/ai entry in preferences.xml
- AIBase.cxx :
  - added an exception handler around the loading of the 3D model to not exit FG
    if the model is not found
- AIScenario.cxx :
  - removed a duplicated read of the xml file, this was also exiting FG is the xml file
    does not exist

18 years agoRemove a copyright that doesn't belong there. This file was written from scratch...
ehofman [Fri, 22 Jul 2005 12:32:46 +0000 (12:32 +0000)]
Remove a copyright that doesn't belong there. This file was written from scratch for FlightGear.

18 years agoHarald JOHSEN:
ehofman [Mon, 18 Jul 2005 16:58:22 +0000 (16:58 +0000)]
Harald JOHSEN:

Changes
=======

- shadowvolume.cxx, renderer.cxx :
  - reduced the polygon offset a bit to eliminate some artifact ;
  - changed again the cleanup code for objects inside a tile because it could crash on rare occasion ;
  - the culling of shadow casters has been rewritten to traverse the scene graph, it should be
    a bit faster when there is a lot of objects ;
  - the range selector was not correctly handled, sometimes the wrong LOD was casting shadows.
  - added the option to display aircraft's transparent objects after the shadows, this will
    reduce the problem of shadows being hidden by the transparent object (propeller disk,
    rotor, etc). A side effect is that aircraft's transparent objects won't receive shadows
    anymore. This is usually a good thing except when the aircraft use a 'transparent'
    texture where it should not. A transparent texture in the plib context is a texture
    with an alpha channel or a material with alpha <= 0.99.

- model.cxx, animation.cxx, shadowvolume.cxx :
  - added an optional <condition> under the <noshadow> animation

- tower.cxx
  - correct a rare bug where all occurences of the aircraft are not deleted from the
  departure list causing a crash in FGTower::CheckDepartureList function.

18 years agoDon't assume that gps times are integer only (some units kick out data at 10hz
curt [Mon, 18 Jul 2005 15:03:45 +0000 (15:03 +0000)]
Don't assume that gps times are integer only (some units kick out data at 10hz
and specify time down to tenths of a second.)

18 years agoPerhaps it's better to compare the contents of the strings instead of comparing the...
ehofman [Mon, 18 Jul 2005 11:55:39 +0000 (11:55 +0000)]
Perhaps it's better to compare the contents of the strings instead of comparing the pointers.

18 years agoFix a segmentation fault when switching to a new style and selecting a new dialog...
ehofman [Mon, 18 Jul 2005 10:00:02 +0000 (10:00 +0000)]
Fix a segmentation fault when switching to a new style and selecting a new dialog. I still need to find out why getColor doesn't work properly.

18 years agoIRIX fixes.
ehofman [Mon, 18 Jul 2005 09:18:24 +0000 (09:18 +0000)]
IRIX fixes.
Somehow the MIPSpro compiler doesn't like an STL map entry being called
using a variable when the reference is an object and not a pointer to an
object.

Preliminary support for a fontcache is added which prevents fonts from
being loaded more than once and takes care of freeing them up again.
The fontcache isn't used yet since there seems to be a problem somewhere.

18 years ago- don't abort if remote model isn't installed; output missing model's
mfranz [Fri, 15 Jul 2005 09:45:57 +0000 (09:45 +0000)]
- don't abort if remote model isn't installed; output missing model's
  path, so people know what to install

18 years agoMathias Fröhlich:
ehofman [Wed, 13 Jul 2005 12:25:16 +0000 (12:25 +0000)]
Mathias Fröhlich:

I have traced that reset on carrier problem down to several problems. One of
them is the fact that on reset the carrier is updated while the aircraft is
not. That made the aircraft drop down an elevator sometimes. Depending on the
passed realtime while loading some parts of the scenery.

18 years ago- suppress CygWin warnings (Vivian Meazza)
mfranz [Wed, 13 Jul 2005 11:43:00 +0000 (11:43 +0000)]
- suppress CygWin warnings (Vivian Meazza)

18 years agomake /sim/current-gui an integer
mfranz [Wed, 13 Jul 2005 10:57:27 +0000 (10:57 +0000)]
make /sim/current-gui an integer

18 years ago- make tabula rasa on re-init
mfranz [Wed, 13 Jul 2005 10:16:42 +0000 (10:16 +0000)]
- make tabula rasa on re-init
- check /sim/current-gui for where to get gui colors (default "/sim/gui[0]")
- call getFont() with gui font address (default "/sim/gui[0]/font")

18 years agonasal dialogs are separate trees and have an empty name
mfranz [Wed, 13 Jul 2005 07:05:50 +0000 (07:05 +0000)]
nasal dialogs are separate trees and have an empty name

18 years ago- fix alpha handling (hopefully)
mfranz [Wed, 13 Jul 2005 06:37:39 +0000 (06:37 +0000)]
- fix alpha handling (hopefully)
- remove another leftover debugging line

18 years ago- don't clamp when setting, but on request (allows to set an invalid color)
mfranz [Tue, 12 Jul 2005 16:48:16 +0000 (16:48 +0000)]
- don't clamp when setting, but on request (allows to set an invalid color)
- adapt constness
- remove leftover debugging line

18 years ago- let FGColor setters/mergers report if they found something merge-worthy
mfranz [Mon, 11 Jul 2005 08:01:28 +0000 (08:01 +0000)]
- let FGColor setters/mergers report if they found something merge-worthy
- tune "use-<color>-node-for-pucol" masks

18 years agoadd missing paren
mfranz [Sat, 9 Jul 2005 14:01:52 +0000 (14:01 +0000)]
add missing paren

18 years ago- clear alpha like r/g/b
mfranz [Sat, 9 Jul 2005 13:53:25 +0000 (13:53 +0000)]
- clear alpha like r/g/b
- fix warning
- replace tabs by 4 spaces, according to the style of the file

18 years agotell the layouter about the default font (I wonder why
mfranz [Fri, 8 Jul 2005 20:12:06 +0000 (20:12 +0000)]
tell the layouter about the default font (I wonder why
LayoutWidget::setDefaultFont() wants puFont* /and/ pointsize as extra
parameters, when puFont knows its pointsize anyway. Didn't want to change
that yet, though.) Now the HELVETICA_10 font makes actually sense. :-)

18 years agodisable automatic re-opening of dialogs on re-init; this does currently
mfranz [Fri, 8 Jul 2005 16:42:26 +0000 (16:42 +0000)]
disable automatic re-opening of dialogs on re-init; this does currently
not work correctly (forgets the bindings)

18 years agorename VERA_12B font to SANS_12B (as in sans-serif). This is a "Grotesk"
mfranz [Fri, 8 Jul 2005 13:28:40 +0000 (13:28 +0000)]
rename VERA_12B font to SANS_12B (as in sans-serif). This is a "Grotesk"
font similar to Helvetica/Swiss. The license doesn't allow to redistribute
modified fonts under the original name. While it's only a converted font,
and not manually modified, it can no longer be seen as original. Changes
so far are (a) conversion from vector to bitmap, (b) different empty space
width, (c) different & constant gap value, without other kerning information.
Further changes may be necessary in the future.

18 years agoHarald JOHNSEN:
mfranz [Fri, 8 Jul 2005 11:15:17 +0000 (11:15 +0000)]
Harald JOHNSEN:

[new_gui is] "using copies of puFont objects that are not yet initialized, I
think that dependant of link order (and so tor execution order) it can
work or not. Changing puFont font by puFont *font should work in all cases."

18 years agoshut up
mfranz [Fri, 8 Jul 2005 08:18:34 +0000 (08:18 +0000)]
shut up

18 years agoprogram that generates C code from a built-in font list; used for the
mfranz [Fri, 8 Jul 2005 08:17:43 +0000 (08:17 +0000)]
program that generates C code from a built-in font list; used for the
font definition in src/GUI/fonts.cxx

18 years agoadd missing copyright statements
mfranz [Fri, 8 Jul 2005 07:37:56 +0000 (07:37 +0000)]
add missing copyright statements

18 years agoremove commented out and non-functional code for now
mfranz [Fri, 8 Jul 2005 06:45:00 +0000 (06:45 +0000)]
remove commented out and non-functional code for now

18 years agoread the splash font color from the gui style file. This is a bit of a
mfranz [Thu, 7 Jul 2005 21:43:22 +0000 (21:43 +0000)]
read the splash font color from the gui style file. This is a bit of a
gimmick, but it may be nice to adjust the font color to match the splash
image, e.g. to make it darker for dark images, etc.

18 years agomake property picker consider the new_gui colors; unfortunately, plib
mfranz [Thu, 7 Jul 2005 21:32:33 +0000 (21:32 +0000)]
make property picker consider the new_gui colors; unfortunately, plib
hardcodes the text color as black, which makes them a bit hard to read
on dark backgrounds; fix sent to the plib list; (the added code isn't
pretty and hence fits the existing style quite well ;-)

18 years ago- use color map information from new_gui.cxx and set puObject colors
mfranz [Thu, 7 Jul 2005 21:30:34 +0000 (21:30 +0000)]
- use color map information from new_gui.cxx and set puObject colors
  accordingly;
- cleanup (call all puObjects "obj" for easier editing/copying)
- commented out code: (not-yet functional props preprocessor)