1
0
Fork 0
Commit graph

19 commits

Author SHA1 Message Date
curt
3eb6f1d640 Reshuffled some of the code in and around views.[ch]xx 1998-08-20 20:32:31 +00:00
curt
009c34bd23 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. 1998-07-24 21:56:59 +00:00
curt
f6f21702ce Debugging output tweaks.
Cast glGetString to (char *) to avoid compiler errors.
Optimizations to fgGluLookAt() by Norman Vine.
1998-07-24 21:39:08 +00:00
curt
4abe562805 Wrote access functions for current fgOPTIONS. 1998-07-13 21:00:09 +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
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
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
2cd509d3de View optimizations by Norman Vine. 1998-05-27 02:24:05 +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
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
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
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
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
Renamed from Main/views.c (Browse further)