curt
4abe562805
Wrote access functions for current fgOPTIONS.
1998-07-13 21:00:09 +00:00
curt
8767a84ffc
Clear color buffer if drawing wireframe.
...
When specifying and airport, start elevation at -1000 and let the system
position you at ground level.
1998-07-13 15:32:37 +00:00
curt
330c78ac73
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.
1998-07-12 03:14:42 +00:00
curt
0099b307bc
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.
1998-07-08 14:45:07 +00:00
curt
f17b1af1e3
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.
1998-07-06 21:34:17 +00:00
curt
6100c26cd6
Initial revision.
1998-07-06 02:42:36 +00:00
curt
72819bbe85
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.
1998-07-06 02:42:02 +00:00
curt
2be63aa0fb
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.
1998-07-04 00:52:22 +00:00
curt
353ec70f8c
Replaced "extern displayInstruments" with a entry in fgOPTIONS.
...
Don't change the view port when displaying the panel.
1998-06-27 16:54:32 +00:00
curt
e461053c78
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.
1998-06-17 21:35:10 +00:00
curt
cc0925be18
Tweaked fog command line options.
1998-06-13 00:40:32 +00:00
curt
28ceab0457
Pui -> PUI, Gui -> GUI.
1998-06-12 14:27:25 +00:00
curt
9ebfc12526
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.
1998-06-12 00:57:38 +00:00
curt
b4e53ba51d
Minor sound/startup position tweaks.
1998-06-08 17:57:04 +00:00
curt
c8a5e3ebb6
A bit of fiddling with audio ...
1998-06-05 18:18:40 +00:00
curt
88ceb3dbb8
Tweaking sound library usage.
1998-06-03 22:01:06 +00:00
curt
476d5e73b2
Updated to compile in audio support if OSS available.
...
Updated for new version of Steve's audio library.
STL includes don't use .h
Small view optimizations.
1998-06-03 00:47:11 +00:00
curt
a6c2da9e4e
Added Linux audio support.
...
avoid glClear( COLOR_BUFFER_BIT ) when not using it to set the sky color.
map stl tweaks.
1998-06-01 17:54:40 +00:00
curt
d6f20aa8be
Tweaked material properties & lighting a bit in GLUTmain.cxx.
...
Read airport list into a "map" STL for dynamic list sizing and fast tree
based lookups.
1998-05-29 20:37:19 +00:00
curt
2cd509d3de
View optimizations by Norman Vine.
1998-05-27 02:24:05 +00:00
curt
26757b73b2
Derived file "Makefile.in" removed from version control.
1998-05-23 14:18:28 +00:00
curt
dcaf622ce7
Modifications to use the new fgEVENT_MGR class.
1998-05-22 21:28:52 +00:00
curt
081b63cfbb
Tweaked smooth shaded texture lighting properties.
...
Converted fgLIGHT to a C++ class.
1998-05-20 20:51:33 +00:00
curt
fdc94bd13a
First pass at view frustum culling now operational.
1998-05-17 16:59:03 +00:00
curt
65cc9a9e66
C++ - ified views.[ch]xx
...
Shuffled some additional view parameters into the fgVIEW class.
Changed tile-radius to tile-diameter because it is a much better
name.
Added a WORLD_TO_EYE transformation to views.cxx. This allows us
to transform world space to eye space for view frustum culling.
1998-05-16 13:08:34 +00:00
curt
fb69df5880
Added limits to fov.
1998-05-16 13:05:21 +00:00
curt
c57071acfd
Added a keyboard binding to dynamically adjust field of view.
...
Added a command line option to specify fov.
Adjusted terrain color.
Root path info moved to fgOPTIONS.
Added ability to parse options out of a config file.
1998-05-13 18:29:56 +00:00
curt
37df3de51d
Root path info moved to fgOPTIONS.
1998-05-13 18:25:34 +00:00
curt
1904751726
For flat shading use "glHint (GL_FOG_HINT, GL_FASTEST )"
1998-05-11 18:18:15 +00:00
curt
58eb9b9089
Added "D" key binding to set autopilot heading.
...
Made frame rate calculation average out over last 10 frames.
Borland C++ floating point exception workaround.
Added a --tile-radius=n option.
1998-05-07 23:14:14 +00:00
curt
ae19eec252
Added an averaged global frame rate counter.
...
Added an option to control tile radius.
1998-05-06 03:16:23 +00:00
curt
448bdb83de
Added an option to enable/disable full-screen mode.
1998-05-03 00:47:31 +00:00
curt
1f5aeb1d46
Updated polartocart conversion routine.
1998-05-02 01:51:01 +00:00
curt
d87408c767
Added command line rendering options:
...
enable/disable fog/haze
specify smooth/flat shading
disable sky blending and just use a solid color
enable wireframe drawing mode
1998-04-30 12:34:17 +00:00
curt
09bd08b931
Wrapped zlib calls up so we can conditionally comment out zlib support.
1998-04-28 21:42:50 +00:00
curt
7352183ad9
Type-ified fgTIME and fgVIEW.
...
Added a command line option to disable textures.
1998-04-28 01:20:20 +00:00
curt
4a487175c9
"struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd.
1998-04-26 05:10:00 +00:00
curt
1a7e966d0b
Added an rint() / HAVE_RINT check.
1998-04-26 05:01:19 +00:00
curt
0b782544a3
Edited cvs log messages in source files ... bad bad bad!
1998-04-25 22:06:24 +00:00
curt
d4c9d9cbb3
Use already calculated LaRCsim values to create the roll/pitch/yaw
...
transformation matrix (we call it LOCAL)
1998-04-25 22:04:53 +00:00
curt
dd4a17a011
Cleaned up initialization sequence to eliminate interdependencies
...
between sun position, lighting, and view position. This creates a
valid single pass initialization path.
1998-04-25 20:24:00 +00:00
curt
9692b3fe1e
Added an command line option to set starting position based on airport ID.
1998-04-25 15:11:10 +00:00
curt
a144bfc090
Fog tweaks.
1998-04-24 14:19:29 +00:00
curt
f4c7a35129
Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
...
Trying out some different option parsing code.
Some code reorganization.
1998-04-24 00:49:17 +00:00
curt
920eefd4a7
C++ - ifing the code.
...
Starting a bit of reorganization of lighting code.
1998-04-22 13:25:39 +00:00
curt
664b1fa4a8
Prepairing for C++ integration.
1998-04-21 17:02:27 +00:00
curt
09fc7f812e
Moved fg_debug to it's own library, added zlib support.
1998-04-18 04:11:25 +00:00
curt
27ac2e344e
Incorporated autopilot heading hold contributed by: Jeff Goeke-Smith
...
<jgoeke@voyager.net>
1998-04-14 02:21:01 +00:00
curt
af76bd25e9
Moved to Main/ and incorperated with automake
1998-04-09 01:45:30 +00:00
curt
05d0e92b96
Patch from Durk to fix trim reversal with numlock key active.
1998-04-08 23:34:05 +00:00