]> git.mxchange.org Git - flightgear.git/log
flightgear.git
25 years ago.
curt [Mon, 24 Aug 1998 20:09:07 +0000 (20:09 +0000)]
.

25 years agoAdded a second minimalistic HUD.
curt [Mon, 24 Aug 1998 20:05:15 +0000 (20:05 +0000)]
Added a second minimalistic HUD.
Added code to display the number of triangles rendered.

25 years agoHopefully squashed a bug that was causing a segfault in an inline pow() call.
curt [Sat, 22 Aug 1998 23:36:22 +0000 (23:36 +0000)]
Hopefully squashed a bug that was causing a segfault in an inline pow() call.

25 years agoAttempting to iron out seg faults and crashes.
curt [Sat, 22 Aug 1998 14:49:55 +0000 (14:49 +0000)]
Attempting to iron out seg faults and crashes.
Did some shuffling to fix a initialization order problem between view
position, scenery elevation.

25 years agoincreased fragment list size.
curt [Sat, 22 Aug 1998 02:01:34 +0000 (02:01 +0000)]
increased fragment list size.

25 years agoNailed a uninitialized variable usage bug that was killing us on some
curt [Sat, 22 Aug 1998 02:01:11 +0000 (02:01 +0000)]
Nailed a uninitialized variable usage bug that was killing us on some
platforms with some compiler options.

25 years agoOmit panel code because it's texture loading overruns array bounds.
curt [Sat, 22 Aug 1998 01:19:27 +0000 (01:19 +0000)]
Omit panel code because it's texture loading overruns array bounds.

25 years agoMinor tweaks to avoid using unitialized memory.
curt [Sat, 22 Aug 1998 01:18:59 +0000 (01:18 +0000)]
Minor tweaks to avoid using unitialized memory.

25 years agoReshuffled some of the code in and around views.[ch]xx
curt [Thu, 20 Aug 1998 20:32:31 +0000 (20:32 +0000)]
Reshuffled some of the code in and around views.[ch]xx

25 years agoobj.cxx: use more explicit parenthases.
curt [Thu, 20 Aug 1998 15:16:43 +0000 (15:16 +0000)]
obj.cxx: use more explicit parenthases.
texload.[ch]: use const in function definitions where appropriate.

25 years agoTweak ...
curt [Thu, 20 Aug 1998 15:12:26 +0000 (15:12 +0000)]
Tweak ...

25 years agoUsed a forward declaration of classes fgTILE and fgMATERIAL to eliminate
curt [Thu, 20 Aug 1998 15:12:03 +0000 (15:12 +0000)]
Used a forward declaration of classes fgTILE and fgMATERIAL to eliminate
the need for "void" pointers and casts.
Quick hack to count the number of scenery polygons that are being drawn.

25 years agoAdded GameGLUT support.
curt [Thu, 20 Aug 1998 15:10:33 +0000 (15:10 +0000)]
Added GameGLUT support.

25 years agoNeed to negate the test for textures so that textures aren't loaded when
curt [Wed, 12 Aug 1998 21:41:27 +0000 (21:41 +0000)]
Need to negate the test for textures so that textures aren't loaded when
they are disabled rather than visa versa ... :-)

25 years agoSky now tracks adjusted fog color so it blends well with terrain.
curt [Wed, 12 Aug 1998 21:40:44 +0000 (21:40 +0000)]
Sky now tracks adjusted fog color so it blends well with terrain.

25 years agoOptimizations by Norman Vine.
curt [Wed, 12 Aug 1998 21:13:22 +0000 (21:13 +0000)]
Optimizations by Norman Vine.

25 years agomaterial.cxx: don't load textures if they are disabled
curt [Wed, 12 Aug 1998 21:13:03 +0000 (21:13 +0000)]
material.cxx: don't load textures if they are disabled
obj.cxx: optimizations from Norman Vine
tile.cxx: minor tweaks
tile.hxx: addition of num_faces
tilemgr.cxx: minor tweaks

25 years agoMaster volume from 30% -> 80%
curt [Wed, 12 Aug 1998 21:01:47 +0000 (21:01 +0000)]
Master volume from 30% -> 80%

25 years agoFirst stab at a cherokee flight model.
curt [Wed, 12 Aug 1998 21:01:09 +0000 (21:01 +0000)]
First stab at a cherokee flight model.

25 years agoRewrote star loading and rendering to:
curt [Mon, 10 Aug 1998 20:33:09 +0000 (20:33 +0000)]
Rewrote star loading and rendering to:
  1. significantly improve load speed
  2. transition from no stars to stars through eight stages.

25 years agoAdjusted dusk/dawn lighting ...
curt [Thu, 6 Aug 1998 12:47:22 +0000 (12:47 +0000)]
Adjusted dusk/dawn lighting ...

25 years agoHeader change.
curt [Thu, 6 Aug 1998 12:46:37 +0000 (12:46 +0000)]
Header change.

25 years agoModified to bring in stars in 8 increments based on magnitude, not number
curt [Thu, 6 Aug 1998 12:45:20 +0000 (12:45 +0000)]
Modified to bring in stars in 8 increments based on magnitude, not number
of stars.

25 years agoAdded a local routine to update lighting params every frame when time is
curt [Wed, 5 Aug 1998 00:19:33 +0000 (00:19 +0000)]
Added a local routine to update lighting params every frame when time is
accelerated.

25 years agoUpdated to be smarter about finding $FG_ROOT.
curt [Mon, 3 Aug 1998 22:16:42 +0000 (22:16 +0000)]
Updated to be smarter about finding $FG_ROOT.

25 years agoSgi build tweaks.
curt [Thu, 30 Jul 1998 23:48:54 +0000 (23:48 +0000)]
Sgi build tweaks.
Pause support.

25 years agoOutput position & orientation when pausing.
curt [Thu, 30 Jul 1998 23:48:24 +0000 (23:48 +0000)]
Output position & orientation when pausing.
Eliminated libtool use.
Added options to specify initial position and orientation.
Changed default fov to 55 degrees.
Added command line option to start in paused or unpaused state.

25 years agoBeginning to add support for multiple flight models.
curt [Thu, 30 Jul 1998 23:44:36 +0000 (23:44 +0000)]
Beginning to add support for multiple flight models.

25 years agoTweaks for sgi building.
curt [Thu, 30 Jul 1998 23:44:05 +0000 (23:44 +0000)]
Tweaks for sgi building.

25 years agoEliminated glScale call so that glutSolidSphere normals are preserved
curt [Thu, 30 Jul 1998 23:43:30 +0000 (23:43 +0000)]
Eliminated glScale call so that glutSolidSphere normals are preserved
correctly.  Also made the sun & moon a bit smaller.

25 years agoAdded a pause option.
curt [Mon, 27 Jul 1998 18:42:22 +0000 (18:42 +0000)]
Added a pause option.

25 years agoAdded a pause command "p"
curt [Mon, 27 Jul 1998 18:41:23 +0000 (18:41 +0000)]
Added a pause command "p"
Fixed some initialization order problems between pui and glut.
Added an --enable/disable-sound option.

25 years agoSet near clip plane to 0.5 meters when close to the ground. Also, let the view get...
curt [Fri, 24 Jul 1998 21:56:59 +0000 (21:56 +0000)]
Set near clip plane to 0.5 meters when close to the ground.  Also, let the view get a bit closer to the ground before hitting the hard limit.

25 years agoOutput message tweaks.
curt [Fri, 24 Jul 1998 21:42:25 +0000 (21:42 +0000)]
Output message tweaks.

25 years agomaterial.cxx: whups, double method declaration with no definition.
curt [Fri, 24 Jul 1998 21:42:06 +0000 (21:42 +0000)]
material.cxx: whups, double method declaration with no definition.
obj.cxx: tweaks to avoid errors in SGI's CC.
tile.cxx: optimizations by Norman Vine.
tilemgr.cxx: optimizations by Norman Vine.

25 years agoDebugging output tweaks.
curt [Fri, 24 Jul 1998 21:39:08 +0000 (21:39 +0000)]
Debugging output tweaks.
Cast glGetString to (char *) to avoid compiler errors.
Optimizations to fgGluLookAt() by Norman Vine.

25 years agoRan dos2unix to get rid of extraneous ^M's. Tweaked parameter in
curt [Fri, 24 Jul 1998 21:36:55 +0000 (21:36 +0000)]
Ran dos2unix to get rid of extraneous ^M's.  Tweaked parameter in
ImageGetRawData() to match usage.

25 years agofg_time.cxx: Removed call to ctime() in a printf() which should be harmless
curt [Wed, 22 Jul 1998 21:45:37 +0000 (21:45 +0000)]
fg_time.cxx: Removed call to ctime() in a printf() which should be harmless
  but seems to be triggering a bug.
light.cxx: Added code to adjust fog color based on sunrise/sunset effects
  and view orientation.  This is an attempt to match the fog color to the
  sky color in the center of the screen.  You see discrepancies at the
  edges, but what else can be done?
sunpos.cxx: Caculate local direction to sun here.  (what compass direction
  do we need to face to point directly at sun)

25 years agoAdd basic fgFACE methods contributed by Charlie Hotchkiss.
curt [Wed, 22 Jul 1998 21:41:42 +0000 (21:41 +0000)]
Add basic fgFACE methods contributed by Charlie Hotchkiss.
intersect optimization from Norman Vine.

25 years agoClear to adjusted fog color (for sunrise/sunset effects)
curt [Wed, 22 Jul 1998 21:40:43 +0000 (21:40 +0000)]
Clear to adjusted fog color (for sunrise/sunset effects)
Make call to fog sunrise/sunset adjustment method.
Add a stdc++ library bug work around to fg_init.cxx

25 years agoLower skirt tracks adjusted fog color, not fog color.
curt [Wed, 22 Jul 1998 21:39:21 +0000 (21:39 +0000)]
Lower skirt tracks adjusted fog color, not fog color.

25 years ago...
curt [Wed, 22 Jul 1998 21:37:46 +0000 (21:37 +0000)]
...

25 years agoStrip out \r when parsing config file in case we are on a windoze system.
curt [Wed, 22 Jul 1998 01:27:03 +0000 (01:27 +0000)]
Strip out \r when parsing config file in case we are on a windoze system.

25 years agoDefault visibility to about 20 miles.
curt [Mon, 20 Jul 1998 12:51:57 +0000 (12:51 +0000)]
Default visibility to about 20 miles.

25 years agoAdded far clip plane to fragment clipping calculations and tie this to
curt [Mon, 20 Jul 1998 12:51:26 +0000 (12:51 +0000)]
Added far clip plane to fragment clipping calculations and tie this to
weather->visibility.  This way you can increase framerates by increasing
for and lowering visibility.

25 years agoTweaked color buffer clearing defaults. We clear the color buffer if we
curt [Mon, 20 Jul 1998 12:49:44 +0000 (12:49 +0000)]
Tweaked color buffer clearing defaults.  We clear the color buffer if we
are doing textures.  Assumptions:  If we are doing textures we have hardware
support that can clear the color buffer for "free."  If we are doing software
rendering with textures, then the extra clear time gets lost in the noise.

25 years agoReplace the hud rendering for loop (which linearly searches the the hud
curt [Mon, 20 Jul 1998 12:47:55 +0000 (12:47 +0000)]
Replace the hud rendering for loop (which linearly searches the the hud
list to find the entry with the proper position) with a simple linear
traversal using an "iterator."

26 years agoGround collision detection optimizations contributed by Norman Vine.
curt [Thu, 16 Jul 1998 17:34:24 +0000 (17:34 +0000)]
Ground collision detection optimizations contributed by Norman Vine.

26 years ago"H" / "h" now control hud brightness as well with off being one of the
curt [Thu, 16 Jul 1998 17:33:34 +0000 (17:33 +0000)]
"H" / "h" now control hud brightness as well with off being one of the
  states.
Better checking for xmesa/fx 3dfx fullscreen/window support for deciding
  whether or not to build in the feature.
Translucent menu support.
HAVE_AUDIO_SUPPORT -> ENABLE_AUDIO_SUPPORT
Use fork() / wait() for playing mp3 init music in background under unix.
Changed default tile diameter to 5.

26 years agoImplemented translucent menus.
curt [Thu, 16 Jul 1998 17:30:30 +0000 (17:30 +0000)]
Implemented translucent menus.

26 years agoground collision detection implemented.
curt [Thu, 16 Jul 1998 17:30:07 +0000 (17:30 +0000)]
ground collision detection implemented.

26 years agoConverted the aoa scale to a radio altimeter.
curt [Mon, 13 Jul 1998 21:28:00 +0000 (21:28 +0000)]
Converted the aoa scale to a radio altimeter.

26 years agoIntegrated Charlies latest HUD updates.
curt [Mon, 13 Jul 1998 21:00:45 +0000 (21:00 +0000)]
Integrated Charlies latest HUD updates.
Wrote access functions for current fgOPTIONS.

26 years agoWrote access functions for current fgOPTIONS.
curt [Mon, 13 Jul 1998 21:00:09 +0000 (21:00 +0000)]
Wrote access functions for current fgOPTIONS.

26 years agoClear color buffer if drawing wireframe.
curt [Mon, 13 Jul 1998 15:32:37 +0000 (15:32 +0000)]
Clear color buffer if drawing wireframe.
When specifying and airport, start elevation at -1000 and let the system
position you at ground level.

26 years agoAdded ground collision detection. This involved:
curt [Sun, 12 Jul 1998 03:18:27 +0000 (03:18 +0000)]
Added ground collision detection.  This involved:
- saving the entire vertex list for each tile with the tile records.
- saving the face list for each fragment with the fragment records.
- code to intersect the current vertical line with the proper face in
  an efficient manner as possible.
Fixed a bug where the tiles weren't being shifted to "near" (0,0,0)

26 years agoAdded ground collision detection.
curt [Sun, 12 Jul 1998 03:14:42 +0000 (03:14 +0000)]
Added ground collision detection.
Did some serious horsing around to be able to "hug" the ground properly
  and still be able to take off.
Set the near clip plane to 1.0 meters when less than 10 meters above the
  ground.
Did some serious horsing around getting the initial airplane position to be
  correct based on rendered terrain elevation.
Added a little cheat/hack that will prevent the view position from ever
  dropping below the terrain, even when the flight model doesn't quite
  put you as high as you'd like.

26 years agoRemoved some printf()'s.
curt [Sun, 12 Jul 1998 03:11:03 +0000 (03:11 +0000)]
Removed some printf()'s.
Fixed the autopilot integration so it should be able to update it's control
  positions every time the internal flight model loop is run, and not just
  once per rendered frame.
Added a routine to do the necessary stuff to force an arbitrary altitude
  change.
Gave the Navion engine just a tad more power.

26 years agoAdded fgFlightModelSetAltitude() to force the altitude to something
curt [Sun, 12 Jul 1998 03:08:27 +0000 (03:08 +0000)]
Added fgFlightModelSetAltitude() to force the altitude to something
other than the current altitude.  LaRCsim doesn't let you do this by just
changing FG_Altitude.

26 years agopolar3d.h renamed to polar3d.hxx
curt [Wed, 8 Jul 1998 14:48:38 +0000 (14:48 +0000)]
polar3d.h renamed to polar3d.hxx

26 years agoFix GL_MODULATE vs. GL_DECAL problem introduced by splash screen.
curt [Wed, 8 Jul 1998 14:47:20 +0000 (14:47 +0000)]
Fix GL_MODULATE vs. GL_DECAL problem introduced by splash screen.
polare3d.h renamed to polar3d.hxx
fg{Cartesian,Polar}Point3d consolodated.
Added some initial support for calculating local current ground elevation.

26 years agopolar3d.h renamed to polar3d.hxx
curt [Wed, 8 Jul 1998 14:45:07 +0000 (14:45 +0000)]
polar3d.h renamed to polar3d.hxx
vector.h renamed to vector.hxx
updated audio support so it waits to create audio classes (and tie up
  /dev/dsp) until the mpg123 player is finished.

26 years ago.
curt [Wed, 8 Jul 1998 14:41:37 +0000 (14:41 +0000)]
.

26 years agoRenamed polar3d.h to polar3d.hxx
curt [Wed, 8 Jul 1998 14:41:08 +0000 (14:41 +0000)]
Renamed polar3d.h to polar3d.hxx

26 years agoAdded using namespace std for compilers that support this.
curt [Mon, 6 Jul 1998 21:34:33 +0000 (21:34 +0000)]
Added using namespace std for compilers that support this.

26 years agoAdded an enable/disable splash screen option.
curt [Mon, 6 Jul 1998 21:34:17 +0000 (21:34 +0000)]
Added an enable/disable splash screen option.
Added an enable/disable intro music option.
Added an enable/disable instrument panel option.
Added an enable/disable mouse pointer option.
Added using namespace std for compilers that support this.

26 years agoAdded an enable/disable mouse pointer option in case the autodetection
curt [Mon, 6 Jul 1998 21:31:57 +0000 (21:31 +0000)]
Added an enable/disable mouse pointer option in case the autodetection
fails.

26 years agoRemoved an extraneous ^M.
curt [Mon, 6 Jul 1998 21:31:20 +0000 (21:31 +0000)]
Removed an extraneous ^M.

26 years agoInitial revision.
curt [Mon, 6 Jul 1998 02:42:36 +0000 (02:42 +0000)]
Initial revision.

26 years agoAdded support for switching between fullscreen and window mode for
curt [Mon, 6 Jul 1998 02:42:02 +0000 (02:42 +0000)]
Added support for switching between fullscreen and window mode for
Mesa/3dfx/glide.

Added a basic splash screen.  Restructured the main loop and top level
initialization routines to do this.

Hacked in some support for playing a startup mp3 sound file while rest
of sim initializes.  Currently only works in Unix using the mpg123 player.
Waits for the mpg123 player to finish before initializing internal
sound drivers.

26 years ago.
curt [Mon, 6 Jul 1998 02:37:38 +0000 (02:37 +0000)]
.

26 years agoAdded automatic mipmap generation.
curt [Sat, 4 Jul 1998 00:54:28 +0000 (00:54 +0000)]
Added automatic mipmap generation.

When rendering fragments, use saved model view matrix from associated tile
rather than recalculating it with push() translate() pop().

26 years agoAdd my own version of gluLookAt() (which is nearly identical to the
curt [Sat, 4 Jul 1998 00:52:22 +0000 (00:52 +0000)]
Add my own version of gluLookAt() (which is nearly identical to the
Mesa/glu version.)  But, by calculating the Model View matrix our selves
we can save this matrix without having to read it back in from the video
card.  This hopefully allows us to save a few cpu cycles when rendering
out the fragments because we can just use glLoadMatrixd() with the
precalculated matrix for each tile rather than doing a push(), translate(),
pop() for every fragment.

Panel status defaults to off for now until it gets a bit more developed.

Extract OpenGL driver info on initialization.

26 years agoCheck for full screen (no windows system support) before having PUI draw
curt [Sat, 4 Jul 1998 00:48:41 +0000 (00:48 +0000)]
Check for full screen (no windows system support) before having PUI draw
it's ugly excuse for a mouse. :-)  The check is probably not general enough,
but it can be improved as more and varied hardware is tested.

26 years agoAdded Charlie Hotchkiss's HUD updates and improvementes.
curt [Fri, 3 Jul 1998 13:16:27 +0000 (13:16 +0000)]
Added Charlie Hotchkiss's HUD updates and improvementes.

26 years agoA few small rearrangements and tweaks.
curt [Fri, 3 Jul 1998 11:55:36 +0000 (11:55 +0000)]
A few small rearrangements and tweaks.

26 years agoInitial revision.
curt [Sat, 27 Jun 1998 22:34:57 +0000 (22:34 +0000)]
Initial revision.

26 years agoCheck for GL_VERSION_1_1 or GL_EXT_texture_object to decide whether to use
curt [Sat, 27 Jun 1998 16:54:59 +0000 (16:54 +0000)]
Check for GL_VERSION_1_1 or GL_EXT_texture_object to decide whether to use
  "EXT" versions of texture management routines.

26 years agoReplaced "extern displayInstruments" with a entry in fgOPTIONS.
curt [Sat, 27 Jun 1998 16:54:32 +0000 (16:54 +0000)]
Replaced "extern displayInstruments" with a entry in fgOPTIONS.
Don't change the view port when displaying the panel.

26 years agoIn fgCalculatePlanet() pass a pointer to a structure to be modified, rather
curt [Sat, 27 Jun 1998 16:51:54 +0000 (16:51 +0000)]
In fgCalculatePlanet() pass a pointer to a structure to be modified, rather
than returning the entire structure.

26 years agoIncorporated Friedemann Reinhard's <mpt218@faupt212.physik.uni-erlangen.de>
curt [Sat, 27 Jun 1998 16:47:53 +0000 (16:47 +0000)]
Incorporated Friedemann Reinhard's <mpt218@faupt212.physik.uni-erlangen.de>
first pass at an isntrument panel.

26 years agoLoad and manage multiple textures defined in the Materials library.
curt [Wed, 17 Jun 1998 21:36:39 +0000 (21:36 +0000)]
Load and manage multiple textures defined in the Materials library.
Boost max material fagments for each material property to 800.
Multiple texture support when rendering.

26 years agoRefined conditional audio support compilation.
curt [Wed, 17 Jun 1998 21:35:10 +0000 (21:35 +0000)]
Refined conditional audio support compilation.
Moved texture parameter setup calls to ../Scenery/materials.cxx
#include <string.h> before various STL includes.
Make HUD default state be enabled.

26 years agoTweaks ...
curt [Wed, 17 Jun 1998 21:33:35 +0000 (21:33 +0000)]
Tweaks ...

26 years agomisc jottings from conversation with Skeet Vaughn.
curt [Wed, 17 Jun 1998 21:33:18 +0000 (21:33 +0000)]
misc jottings from conversation with Skeet Vaughn.

26 years agoTweaked fog command line options.
curt [Sat, 13 Jun 1998 00:40:32 +0000 (00:40 +0000)]
Tweaked fog command line options.

26 years agoPui -> PUI, Gui -> GUI.
curt [Fri, 12 Jun 1998 14:27:25 +0000 (14:27 +0000)]
Pui -> PUI, Gui -> GUI.

26 years agoInitial revision.
curt [Fri, 12 Jun 1998 01:07:06 +0000 (01:07 +0000)]
Initial revision.

26 years agoBuild only static libraries.
curt [Fri, 12 Jun 1998 01:01:14 +0000 (01:01 +0000)]
Build only static libraries.

26 years agoBuild only static libraries.
curt [Fri, 12 Jun 1998 01:00:59 +0000 (01:00 +0000)]
Build only static libraries.
Declare memmove/memset for Sloaris.
Added support for exponetial fog, which solves for the proper density to
achieve the desired visibility range.

26 years agoBuild only static libraries.
curt [Fri, 12 Jun 1998 00:59:52 +0000 (00:59 +0000)]
Build only static libraries.
Declare memmove/memset for Sloaris.
Rewrote fg_time.c routine to get LST start seconds to better handle
  Solaris, and be easier to port, and understand the GMT vs. local
  timezone issues.

26 years agoAdded support for Pui/Gui.
curt [Fri, 12 Jun 1998 00:57:38 +0000 (00:57 +0000)]
Added support for Pui/Gui.
Converted fog to GL_FOG_EXP2.
Link to static simulator parts.
Update runfg.bat to try to be a little smarter.

26 years agoBuild only static libraries.
curt [Fri, 12 Jun 1998 00:55:58 +0000 (00:55 +0000)]
Build only static libraries.
Declare memmove/memset for Sloaris.

26 years agoAdded the Gui subdirectory.
curt [Fri, 12 Jun 1998 00:54:41 +0000 (00:54 +0000)]
Added the Gui subdirectory.
Stuff done.

26 years agoWorking first pass at material proporty sorting.
curt [Mon, 8 Jun 1998 17:57:54 +0000 (17:57 +0000)]
Working first pass at material proporty sorting.

26 years agoMinor sound/startup position tweaks.
curt [Mon, 8 Jun 1998 17:57:04 +0000 (17:57 +0000)]
Minor sound/startup position tweaks.

26 years agoI goofed on the log message in the last commit ... now fixed.
curt [Sat, 6 Jun 1998 01:09:31 +0000 (01:09 +0000)]
I goofed on the log message in the last commit ... now fixed.

26 years agoIncreased per material fragment list size from 100 to 400.
curt [Sat, 6 Jun 1998 01:07:17 +0000 (01:07 +0000)]
Increased per material fragment list size from 100 to 400.

26 years agoWorking on sorting by, and rendering by material properties.
curt [Fri, 5 Jun 1998 22:39:53 +0000 (22:39 +0000)]
Working on sorting by, and rendering by material properties.

26 years agoRecognize file, file.gz, and file.obj as scenery object files.
curt [Fri, 5 Jun 1998 18:19:18 +0000 (18:19 +0000)]
Recognize file, file.gz, and file.obj as scenery object files.