Commit Graph
100 Commits
Author SHA1 Message Date
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
curt 01327ebd4c Minor tweaks to avoid using unitialized memory. 2009-09-15 18:31:30 +02:00
curt 23be422477 Sky now tracks adjusted fog color so it blends well with terrain. 2009-09-15 18:31:30 +02:00
curt 1f47fbafff Rewrote star loading and rendering to:
1. significantly improve load speed
  2. transition from no stars to stars through eight stages.
2009-09-15 18:31:30 +02:00
curt 19f58936a8 Modified to bring in stars in 8 increments based on magnitude, not number
of stars.
2009-09-15 18:31:30 +02:00
curt 0e7c76a38f Eliminated glScale call so that glutSolidSphere normals are preserved
correctly.  Also made the sun & moon a bit smaller.
2009-09-15 18:31:30 +02:00
curt 193092ed67 Lower skirt tracks adjusted fog color, not fog color. 2009-09-15 18:31:30 +02:00
curt ec8667a63c Wrote access functions for current fgOPTIONS. 2009-09-15 18:31:30 +02:00
curt 554581b099 In fgCalculatePlanet() pass a pointer to a structure to be modified, rather
than returning the entire structure.
2009-09-15 18:31:30 +02:00
curt 31b3f10cc8 Build only static libraries. 2009-09-15 18:31:30 +02:00
curt bbfd2f802b Added zlib support for reading in compressed data files. 2009-09-15 18:31:30 +02:00
curt b7c12ea879 Derived file "Makefile.in" removed from version control. 2009-09-15 18:31:30 +02:00
curt 453b041f0d Use new C++ events class. 2009-09-15 18:31:30 +02:00
curt e45190bee4 Root path info moved to fgOPTIONS. 2009-09-15 18:31:30 +02:00
curt e9ee8471a9 Type-ified fgTIME and fgVIEW 2009-09-15 18:31:30 +02:00
curt 854bc45e59 "struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd. 2009-09-15 18:31:30 +02:00
curt 4066df3229 Edited cvs log messages in source files ... bad bad bad! 2009-09-15 18:31:29 +02:00
curt 7710f8f076 Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
Fixed a bug when generating sky colors.
2009-09-15 18:31:29 +02:00
curt 2dd9bcbd50 C++ - ifing the code a bit. 2009-09-15 18:31:29 +02:00
curt b6b93c74ea Prepairing for C++ integration. 2009-09-15 18:31:29 +02:00
curt c68a524d35 Moved fg_debug.c to it's own library. 2009-09-15 18:31:29 +02:00
curt 3af8529843 Code reorganizations. Added a Lib/ directory for more general libraries. 2009-09-15 18:31:29 +02:00
curt 798ae43c84 Tweaks to Gnu automake/autoconf system. 2009-09-15 18:31:29 +02:00
curt 8a8bb3cf7e Minor cleanups and reorganizations. 2009-09-15 18:31:29 +02:00
curt df79de455f Converting to Gnu autoconf system. 2009-09-15 18:31:29 +02:00
curt 978226a275 Updated fgGENERAL to a "type" of struct. 2009-09-15 18:31:29 +02:00
curt 0c5a60713d Incorporated Durk's updates. 2009-09-15 18:31:29 +02:00
curt 20cf326fec Incorporated Durk's Astro/ tweaks. Includes unifying the sun position
calculation code between sun display, and other FG sections that use this
for things like lighting.
2009-09-15 18:31:29 +02:00
curt 3e386f51a1 Incorporated some HUD tweaks from Michelle America.
Tweaked the sky's sunset/rise colors.
Other misc. tweaks.
2009-09-15 18:31:29 +02:00
curt 28e2a0560c Incorporated code changes contributed by Charlie Hotchkiss
<chotchkiss@namg.us.anritsu.com>
2009-09-15 18:31:29 +02:00
curt 9797633e5c Removed "depend" files from cvs control. Other minor make tweaks. 2009-09-15 18:31:28 +02:00
curt b6184dcf29 Minor tweaks. 2009-09-15 18:31:28 +02:00
curt f28bfa6d62 Incorporated HUD changes and struct/typedef changes from Charlie Hotchkiss
<chotchkiss@namg.us.anritsu.com>
2009-09-15 18:31:28 +02:00
curt f1f01451cc Lots of little tweaks to fix various consistency problems discovered by
Solaris' CC.  Fixed a bug in fg_debug.c with how the fgPrintf() wrapper
passed arguments along to the real printf().  Also incorporated HUD changes
by Michele America.
2009-09-15 18:31:28 +02:00
curt cb1bcb398a To version 0.29 2009-09-15 18:31:28 +02:00
curt 0e53f221cf Minor tweaks. 2009-09-15 18:31:28 +02:00
curt 1413fae16c Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
system and commandline/config file processing code.
2009-09-15 18:31:28 +02:00
curt fa9d78ffb6 Added a "skirt" to try to help hide gaps between scenery and sky. This will
have to be revisited in the future.
2009-09-15 18:31:28 +02:00
curt 327ccd93a4 Changed #ifdef FILE_H to #ifdef _FILE_H 2009-09-15 18:31:28 +02:00
curt 24b5f05d5e More misc. tweaks for rpk make merge. 2009-09-15 18:31:28 +02:00
curt ccc3af8937 Merged in make system changes from Bob Kuehne <rpk@sgi.com>
This should simplify things tremendously.
2009-09-15 18:31:28 +02:00
curt b6b503a190 Tons of little changes to clean up the code and to remove fatal errors
when building with the c++ compiler.
2009-09-15 18:31:28 +02:00
curt fdda5da598 Beginning to integrate Tile management subsystem. 2009-09-15 18:31:28 +02:00
curt 86e571f18b Miscellaneous tweaks. 2009-09-15 18:31:28 +02:00
curt 7b3b55f6ef Moved from .../Src/Scenery/ to .../Src/Astro/ 2009-09-15 18:31:19 +02:00
curt 0363628a55 Tweaks to help building with MSVC++ 1998-01-06 01:20:16 +00:00
curt f2e7704853 Add an option to advance/decrease time from keyboard. 1998-01-05 18:44:33 +00:00
curt 66651d0648 Worked on winding problem without luck, so back to calling glFrontFace()
3 times for each scenery area.
1997-12-30 23:09:40 +00:00
curt 5909595442 Further integration of event manager. 1997-12-30 22:22:31 +00:00
curt bf92d30877 Integrated new event manager with subsystem initializations. 1997-12-30 20:47:34 +00:00
curt 9bd9645b3e Added log at end of file. 1997-12-30 16:41:00 +00:00
curt 5c5e4fff7b Merged in Durk's changes ... 1997-12-30 16:36:40 +00:00
curt de235cc8be A couple lighting tweaks ... 1997-12-30 13:06:56 +00:00
curt e4890297a6 Tweaked the sky coloring a bit to build in structures to allow finer rgb
control.
1997-12-23 04:58:38 +00:00
curt 13d4d0777f First stab at sunset/sunrise sky glow effects. 1997-12-22 23:45:45 +00:00
curt 982d714749 Aligned sky with sun so dusk/dawn effects can be correct relative to the sun. 1997-12-22 04:14:28 +00:00
curt 4c18fbcafd Lot's of tweaking with sky rendering and lighting. 1997-12-19 23:34:03 +00:00
curt 37ec7421aa Working on scene rendering order and options. 1997-12-19 16:44:57 +00:00
curt d289222b39 First stab at sky dome actually starting to look reasonable. :-) 1997-12-18 23:32:28 +00:00
curt ad2947e407 Worked on properly translating and positioning the sky dome. 1997-12-18 04:07:02 +00:00
curt 41f441bdde Initial revision.
Begin work on rendering the sky. (Rather than just using a clear screen.)
1997-12-17 23:14:30 +00:00
curt e24203fb2f Began working on rendering the sky. 1997-12-17 23:13:45 +00:00
curt 5997339730 Fixed so moon and sun display lists aren't recreate periodically. 1997-12-17 23:12:14 +00:00
curt b54a4d1f92 Add xgl wrappers for debugging.
Generate terrain normals on the fly.
1997-12-15 23:54:25 +00:00
curt 8f7a446ec8 Misc. tweaks. 1997-12-15 20:59:08 +00:00
curt 3304526093 More light/material property tweaking ... still a ways off. 1997-12-12 21:41:24 +00:00
curt f711a02a62 Working on lightling and material properties. 1997-12-12 19:52:47 +00:00
curt 5b779f5200 Fixed sun vector and lighting problems. I thing the moon is now lit
correctly.
1997-12-11 04:43:53 +00:00
curt 5bf6d83d2d Prepended "fg" on the name of all global structures that didn't have it yet.
i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
1997-12-10 22:37:34 +00:00
curt 7ea54d28cd Working on tweaking lighting. 1997-12-09 05:11:54 +00:00
curt 268a59d0a9 Working on adding a global lighting params structure. 1997-12-09 04:25:25 +00:00
curt 9477aad950 Changed planets.dat Planets.dat 1997-11-25 23:20:44 +00:00