Commit Graph
100 Commits
Author SHA1 Message Date
curt 7c5b4a87f2 Added gdbm 2000-03-28 22:06:34 +00:00
curt 7ea241b412 Added gdbm to SimGear. Many systems will already have gdbm installed so
it is only built if it doesn't already exist on the user's platform.
gdbm is a set of database routines that use extendible hashing and works
similar to the standard UNIX dbm routines.  This guarantees the availability
of gdbm to any application that uses SimGear.
2000-03-28 21:37:36 +00:00
curt 1547d4ee2f RedHat package building changes contributed by Habibie <habibie@MailandNews.com> 2000-03-28 19:49:07 +00:00
curt 3dde4113e7 Optimizations by Norman Vine:
Classic space vs time seemed worth it in that we get a ~3 fold speedup
  for ~5% space increase here.  Also pow() is an expensive Fortran to C
  translation in just about all the old government code I see :))
2000-03-28 15:20:20 +00:00
curt 205e6ef18f Bump up version # 2000-03-28 15:19:28 +00:00
curt d53830076b Ready for 0.0.6 release. 2000-03-27 22:34:59 +00:00
curt 296a01b7bd Removed autogen file. 2000-03-27 22:30:32 +00:00
curt f47fdd63f7 Return result in radians. 2000-03-27 22:30:11 +00:00
curt b0b5f5035a Updated ... 2000-03-27 22:29:59 +00:00
curt 629ece6e41 Added. 2000-03-27 20:39:10 +00:00
curt 4c79263dcf Added simgear/magvar which impliments WMM 2000 world magnetic variance model.
contributed by Ed Williams.
Some additional internal rearrangement of code.
2000-03-27 20:36:26 +00:00
curt 856b6201dc #include "config.h" 2000-03-26 14:04:03 +00:00
curt f2160b1479 MSVC++ tweaks contributed by Christian Mayer. 2000-03-21 21:06:07 +00:00
curt 535f6a13b3 Fixes for MSVC++. 2000-03-21 20:38:52 +00:00
curt 2ab760e456 Updates for next version. 2000-03-21 20:38:44 +00:00
curt 8b75fbc1e6 Update for next (0.0.6) release. 2000-03-17 22:20:32 +00:00
curt 82f410e955 Changed directory structure a bit to facilitate building for windows. 2000-03-17 22:12:16 +00:00
curt 68a19bd39f Rendering tweaks. 2000-03-17 05:16:15 +00:00
curt 48689622b4 Updated. 2000-03-16 22:44:50 +00:00
curt acc2075986 Update star repainting to fade as the day get's brighter, also reworked
coloring just a bit.
2000-03-16 22:02:47 +00:00
curt 1984ae1583 Removed solarsystem.* replaced mostly with ephemeris.* which is similar
but not rendering oriented.
Added star database management class.
2000-03-16 22:00:53 +00:00
curt 427f309aea Complete overhaul of the sky/sun/moon/stars/planets. It is now an ssg
model that get's inserted into the scene graph.
2000-03-16 03:17:04 +00:00
curt 84482ad30d Pass current latitude to moon position calculations to compenstate for it's
parallax.
2000-03-16 03:14:23 +00:00
curt 09b67e9440 Updated to eliminate rendering component and allow initialization without a
known time.
2000-03-16 03:00:58 +00:00
curt 80cf74d85f Initial revision. 2000-03-07 00:47:37 +00:00
curt 17e055a00e Working on ssg-ifying sky. 2000-03-06 22:29:21 +00:00
curt a8d8c9d24e Working on ssg-ifying the sky dome. Added the moon and other various tweaks. 2000-03-06 22:27:52 +00:00
curt 99a59763f1 Working on drawing sun and sun halo. 2000-03-02 23:07:25 +00:00
curt 0fa3a329e8 Fixed a typo in the sky dome painting code. 2000-03-02 19:06:28 +00:00
curt 5fbe532ec5 Sun now correctly placed in sky and correctly colored. 2000-03-02 18:20:52 +00:00
curt 5f3de889d7 Added top level ephemeris class. 2000-03-02 15:06:14 +00:00
curt a8db14196a Working on separating out ephemeris code from the actual rendering code
which I am trying to ssg-ify at the same time.
2000-03-02 12:51:30 +00:00
curt 03b10d64a8 Separating out the Sky rendering as a separate unit and ssg-ifying it. 2000-03-02 02:03:18 +00:00
curt 86892d87e9 Starting to work on an independent sky implimentation that can be used by
any ssg application and can have it's components driven realistically based
on time.
2000-03-02 00:56:35 +00:00
curt 41218272c4 Working on skydome ... some actual progress has been made. :-) Still
something goofy with sunrise, sunset effects.
2000-02-29 23:31:32 +00:00
curt 8b5514fa9f Continuing work on ssg-ifying the sky dome. 2000-02-29 16:13:02 +00:00
curt f14de56712 Further work on ssg-ifying the sky dome. (not tested) but I can build the
structures and update the colors.  I still need to set up the transforms
properly and connect it into the scene graph.
2000-02-28 23:04:07 +00:00
curt ecc5c9865b Beginning work on a restructure of the sky code. 2000-02-28 12:58:41 +00:00
curt 929a56a6e8 Updated to 0.0.4 2000-02-22 16:21:15 +00:00
curt 4416df8c39 Added an include file that reports the current SimGear version. 2000-02-22 04:32:16 +00:00
curt fc80610663 Removed mat3.h et. al. plib/sg.h provides a superset of mat3.h, has a
cleaner design, and is something that we are already linking in.
2000-02-19 20:58:58 +00:00
curt cb03bfcb80 Fixed a warning message. 2000-02-19 02:28:58 +00:00
curt 35ed10e252 Updates. 2000-02-19 02:22:47 +00:00
curt 41fc1621b1 Updates .. 2000-02-17 16:04:35 +00:00
curt 9fefaef31e One more pass at a reorg. 2000-02-16 22:01:06 +00:00
curt 689a942f19 One more pass at reorgs. 2000-02-16 22:00:51 +00:00
curt cb9654f1f4 Removed autogenerated file. 2000-02-15 05:15:23 +00:00
curt a8f8cef484 Code reorganization. 2000-02-15 02:30:02 +00:00
curt 6cf51c3222 Added ... 2000-02-15 01:07:49 +00:00
curt 0d8ae0cabe Restructuring subdirectories. 2000-02-14 17:37:54 +00:00
curt 49d6f93d8b Removed autogen'd files. 2000-02-09 19:33:04 +00:00
curt 5173d709e0 Initial revision 2000-02-09 19:27:02 +00:00
curt aa17d9ac9a Updated for plib-1.1.x 2000-02-04 21:50:04 +00:00
curt ffe1d9485e Converted sky colors from floats to GLubytes to try to work around Linux
nVidia bug, with no success. :-(
1999-12-30 16:41:43 +00:00
curt 71abebe837 Use a more standard texture/blend mode combination for sun/moon halos to
avoid render path that's not supported by all cards/drivers.
1999-11-03 15:17:50 +00:00
curt ca07b64af0 Moved where glBlendFunc() is reset to main.cxx 1999-10-22 15:15:43 +00:00
curt 2fde2ce581 Reset glBlendFunc() here to. 1999-10-22 12:58:39 +00:00
curt cb0da2ca5e Set glBlendFunc ( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ) ; when done drawing
the Sun so that the cloud texture alpha blending will work correctly.
1999-10-22 12:34:06 +00:00
curt c0422839b9 MSVC++ portability fix. 1999-10-11 21:09:21 +00:00
curt 862b884f02 Various SGI portability tweaks. 1999-10-07 21:08:50 +00:00
curt 708e745cfd MACos fixes. 1999-09-11 14:35:28 +00:00
curt 63c9dcdd96 Tweaks to fix problems with moon rendering introduced with ssg. 1999-08-15 13:35:07 +00:00
curt 770ec00901 Scaled down the sun and moon sizes. 1999-08-10 01:42:34 +00:00
curt 4c6fe0328a Set up the model view matrix exactly as ssg does it before drawing sky, stars
sun, and moon.  I really should do a derived sgLeaf class so that these things
can be drawn within ssgCullandDraw() but this is quicker for now ...
1999-08-07 23:31:30 +00:00
curt bb882a1239 Borland C++ tweaks.
MacOS/Metrowerks tweaks.
Fix for fgText default constructor.
1999-06-20 01:52:31 +00:00
curt 29e3a4e231 Initial revision 1999-06-17 18:07:36 +00:00
curt ca444b07bd Changes contributed by Durk Talsma:
Here's a few changes I made to fg-0.58 this weekend. Included are the
following features:
- Sun and moon have a halo
- The moon has a light vector, moon_angle, etc. etc. so that we can have
  some moonlight during the night.
- Lot's of small changes tweakes, including some stuff Norman Vine sent
  me earlier.
2009-09-15 18:31:32 +02:00
curt 510b9ef07a Added initial support for native SGI compilers. 2009-09-15 18:31:32 +02:00
curt d59a6218ab Modifications to incorporate Jon S. Berndts flight model code. 2009-09-15 18:31:32 +02:00
curt 5f26ba99bc MSVC++ portability changes by Bernie Bright:
Lib/Serial/serial.[ch]xx: Initial Windows support - incomplete.
Simulator/Astro/stars.cxx: typo? included <stdio> instead of <cstdio>
Simulator/Cockpit/hud.cxx: Added Standard headers
Simulator/Cockpit/panel.cxx: Redefinition of default parameter
Simulator/Flight/flight.cxx: Replaced cout with FG_LOG.  Deleted <stdio.h>
Simulator/Main/fg_init.cxx:
Simulator/Main/GLUTmain.cxx:
Simulator/Main/options.hxx: Shuffled <fg_serial.hxx> dependency
Simulator/Objects/material.hxx:
Simulator/Time/timestamp.hxx: VC++ friend kludge
Simulator/Scenery/tile.[ch]xx: Fixed using std::X declarations
Simulator/Main/views.hxx: Added a constant
2009-09-15 18:31:32 +02:00
curt 8fcfb73a57 Renamed FlightGear/Simulator/Flight to FlightGear/Simulator/FDM since
Jon accepted my offer to do this and thought it was a good idea.
2009-09-15 18:31:32 +02:00
curt c9fb802b9e Bug fix in vertex order of inner disk (fan) of the sky dome. 2009-09-15 18:31:32 +02:00
curt cbb1a37f5a Removed code to make sun appear larger at the horizon. 2009-09-15 18:31:32 +02:00
curt 42f9964e76 Don't know how this got in, but it is gone now. 2009-09-15 18:31:32 +02:00
curt 81c8f4c065 MacOS portability changes contributed by "Robert Puyol" <puyol@abvent.fr> 2009-09-15 18:31:32 +02:00
curt 0703cb0027 Removed unneeded #include 2009-09-15 18:31:32 +02:00
curt 2487e696b8 Converted "class fgVIEW" to "class FGView" and updated to make data
members private and make required accessor functions.
2009-09-15 18:31:32 +02:00
curt 50227c435c Sun now appears to grow in size as it gets very low in the horizon. 2009-09-15 18:31:32 +02:00
curt 256aaa362f Renamed class fgFLIGHT to class FGState as per request by JSB. 2009-09-15 18:31:32 +02:00
curt 2198498e29 math domain error fix from Charlie Hotchkiss. 2009-09-15 18:31:32 +02:00
curt 46f79f17c8 Converted fgFLIGHT to a class.
Tweaks for Sun portability.
2009-09-15 18:31:32 +02:00
curt ed870aac76 using an uninitialized variable bug fixed. 2009-09-15 18:31:31 +02:00
curt 663964d94c Borland portability tweaks. 2009-09-15 18:31:31 +02:00
curt 8b1784e0d9 whitespace tweak. 2009-09-15 18:31:31 +02:00
curt e6c07f088d Enable release builds using the --without-logging option to the configure
script.  Also a couple log message cleanups, plus some C to C++ comment
conversion.
2009-09-15 18:31:31 +02:00
curt 6ef9ecdda0 Converted to new logstream debugging facility. This allows release
builds with no messages at all (and no performance impact) by using
the -DFG_NDEBUG flag.
2009-09-15 18:31:31 +02:00
curt aecea627e1 Changes to track Bernie's updates to fgstream. 2009-09-15 18:31:31 +02:00
curt e2d428d8ba Tweaked sunset/sunrise colors. 2009-09-15 18:31:31 +02:00
curt c0e1031a4a C++-ifying. 2009-09-15 18:31:31 +02:00
curt dea5eec440 Converted to Point3D class. 2009-09-15 18:31:31 +02:00
curt 23a8ff8a04 Converted to c++ style comments. 2009-09-15 18:31:31 +02:00
curt a3c95154f5 Miscellaneous tweaks. 2009-09-15 18:31:31 +02:00
curt f9e52ea53d Fixed output message. 2009-09-15 18:31:31 +02:00
curt 001a2c89e7 New textured moon and rewritten/restructured Astro code contributed by Durk
Talsma.
2009-09-15 18:31:31 +02:00
curt 38631c9eb3 log file tweak. 2009-09-15 18:31:31 +02:00
curt 07e9467507 Changes contributed by Bernie Bright <bbright@c031.aone.net.au>
- The new classes in libmisc.tgz define a stream interface into zlib.
   I've put these in a new directory, Lib/Misc.  Feel free to rename it
   to something more appropriate.  However you'll have to change the
   include directives in all the other files.  Additionally you'll have
   add the library to Lib/Makefile.am and Simulator/Main/Makefile.am.

   The StopWatch class in Lib/Misc requires a HAVE_GETRUSAGE autoconf
   test so I've included the required changes in config.tgz.

   There are a fair few changes to Simulator/Objects as I've moved
   things around.  Loading tiles is quicker but thats not where the delay
   is.  Tile loading takes a few tenths of a second per file on a P200
   but it seems to be the post-processing that leads to a noticeable
   blip in framerate.  I suppose its time to start profiling to see where
   the delays are.

   I've included a brief description of each archives contents.

Lib/Misc/
  zfstream.cxx
  zfstream.hxx
    C++ stream interface into zlib.
    Taken from zlib-1.1.3/contrib/iostream/.
    Minor mods for STL compatibility.
    There's no copyright associated with these so I assume they're
    covered by zlib's.

  fgstream.cxx
  fgstream.hxx
    FlightGear input stream using gz_ifstream.  Tries to open the
    given filename.  If that fails then filename is examined and a
    ".gz" suffix is removed or appended and that file is opened.

  stopwatch.hxx
    A simple timer for benchmarking.  Not used in production code.
    Taken from the Blitz++ project.  Covered by GPL.

  strutils.cxx
  strutils.hxx
    Some simple string manipulation routines.

Simulator/Airports/
  Load airports database using fgstream.
  Changed fgAIRPORTS to use set<> instead of map<>.
  Added bool fgAIRPORTS::search() as a neater way doing the lookup.
  Returns true if found.

Simulator/Astro/
  Modified fgStarsInit() to load stars database using fgstream.

Simulator/Objects/
  Modified fgObjLoad() to use fgstream.
  Modified fgMATERIAL_MGR::load_lib() to use fgstream.
  Many changes to fgMATERIAL.
  Some changes to fgFRAGMENT but I forget what!
2009-09-15 18:31:31 +02:00
curt a9d109b3ce Rewrite of event manager thanks to Bernie Bright. 2009-09-15 18:31:31 +02:00
curt 5cbbd7a14e Contributions from Bernie Bright <bbright@c031.aone.net.au>
- use strings for fg_root and airport_id and added methods to return
  them as strings,
- inlined all access methods,
- made the parsing functions private methods,
- deleted some unused functions.
- propogated some of these changes out a bit further.
2009-09-15 18:31:30 +02:00
curt 424ef2f6e9 Shuffled $FG_ROOT file layout. 2009-09-15 18:31:30 +02:00
curt 26a6fa864d Nailed a uninitialized variable usage bug that was killing us on some
platforms with some compiler options.
2009-09-15 18:31:30 +02:00