1 /**************************************************************************
2 * GLmain.c -- top level sim routines
4 * Written by Curtis Olson for OpenGL, started May 1997.
6 * Copyright (C) 1997 Curtis L. Olson - curt@infoplane.com
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of the
11 * License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 * (Log is kept at end of this file)
24 **************************************************************************/
38 #include "../constants.h"
40 #include "../Aircraft/aircraft.h"
41 #include "../Scenery/mesh.h"
42 #include "../Scenery/scenery.h"
43 #include "../Math/fg_geodesy.h"
44 #include "../Math/fg_random.h"
45 #include "../Math/mat3.h"
46 #include "../Math/polar.h"
47 #include "../Time/fg_time.h"
48 #include "../Time/fg_timer.h"
49 #include "../Time/sunpos.h"
50 #include "../Weather/weather.h"
53 /* This is a record containing all the info for the aircraft currently
55 struct aircraft_params current_aircraft;
58 static GLfloat win_ratio = 1.0;
61 static GLfloat sun_vec[4] = {1.0, 0.0, 0.0, 0.0 };
64 /* extern struct mesh *mesh_ptr; */
65 /* Function prototypes */
66 /* GLint fgSceneryCompile_OLD(); */
67 /* static void fgSceneryDraw_OLD(); */
69 /* pointer to scenery structure */
70 /* static GLint scenery, runway; */
73 double fogDensity = 60000.0; /* in meters */
74 double view_offset = 0.0;
75 double goal_view_offset = 0.0;
78 #define DEFAULT_TIMER_HZ 20
79 #define DEFAULT_MULTILOOP 6
80 #define DEFAULT_MODEL_HZ (DEFAULT_TIMER_HZ * DEFAULT_MULTILOOP)
88 /**************************************************************************
89 * fgInitVisuals() -- Initialize various GL/view parameters
90 **************************************************************************/
92 static void fgInitVisuals() {
93 /* if the 4th field is 0.0, this specifies a direction ... */
94 static GLfloat fogColor[4] = {0.65, 0.65, 0.85, 1.0};
96 glEnable( GL_DEPTH_TEST );
97 /* glFrontFace(GL_CW); */
98 glEnable( GL_CULL_FACE );
100 /* If enabled, normal vectors specified with glNormal are scaled
101 to unit length after transformation. See glNormal. */
102 glEnable( GL_NORMALIZE );
104 glLightfv( GL_LIGHT0, GL_POSITION, sun_vec );
105 glEnable( GL_LIGHTING );
106 glEnable( GL_LIGHT0 );
108 glShadeModel( GL_FLAT ); /* glShadeModel( GL_SMOOTH ); */
111 glFogi (GL_FOG_MODE, GL_LINEAR);
112 /* glFogf (GL_FOG_START, 1.0); */
113 glFogf (GL_FOG_END, fogDensity);
114 glFogfv (GL_FOG_COLOR, fogColor);
115 /* glFogf (GL_FOG_DENSITY, fogDensity); */
116 /* glHint (GL_FOG_HINT, GL_FASTEST); */
118 glClearColor(0.6, 0.6, 0.9, 1.0);
122 /**************************************************************************
123 * Update the view volume, position, and orientation
124 **************************************************************************/
126 static void fgUpdateViewParams() {
127 struct fgCartesianPoint view_pos /*, alt_up */;
128 struct flight_params *f;
129 struct time_params *t;
130 MAT3mat R, TMP, UP, LOCAL, VIEW;
131 MAT3vec vec, view_up, forward, view_forward, local_up, nup, nsun;
132 double sun_angle, temp, ambient, diffuse;
133 GLfloat color[4] = { 1.0, 1.0, 0.50, 1.0 };
134 GLfloat amb[4], diff[4];
136 f = ¤t_aircraft.flight;
137 t = &cur_time_params;
139 /* Tell GL we are about to modify the projection parameters */
140 glMatrixMode(GL_PROJECTION);
142 gluPerspective(45.0, 1.0/win_ratio, 1.0, 200000.0);
144 glMatrixMode(GL_MODELVIEW);
147 /* calculate view position in current FG view coordinate system */
148 view_pos = fgPolarToCart(FG_Longitude, FG_Lat_geocentric,
149 FG_Radius_to_vehicle * FEET_TO_METER + 1.0);
150 view_pos.x -= scenery.center.x;
151 view_pos.y -= scenery.center.y;
152 view_pos.z -= scenery.center.z;
154 printf("View pos = %.4f, %.4f, %.4f\n", view_pos.x, view_pos.y, view_pos.z);
156 /* Derive the LOCAL aircraft rotation matrix (roll, pitch, yaw) */
157 MAT3_SET_VEC(vec, 0.0, 0.0, 1.0);
158 MAT3rotate(R, vec, FG_Phi);
159 /* printf("Roll matrix\n"); */
160 /* MAT3print(R, stdout); */
162 MAT3_SET_VEC(vec, 0.0, 1.0, 0.0);
163 /* MAT3mult_vec(vec, vec, R); */
164 MAT3rotate(TMP, vec, FG_Theta);
165 /* printf("Pitch matrix\n"); */
166 /* MAT3print(TMP, stdout); */
169 MAT3_SET_VEC(vec, 1.0, 0.0, 0.0);
170 /* MAT3mult_vec(vec, vec, R); */
171 /* MAT3rotate(TMP, vec, FG_Psi - FG_PI_2); */
172 MAT3rotate(TMP, vec, -FG_Psi);
173 /* printf("Yaw matrix\n");
174 MAT3print(TMP, stdout); */
175 MAT3mult(LOCAL, R, TMP);
176 /* printf("LOCAL matrix\n"); */
177 /* MAT3print(LOCAL, stdout); */
179 /* Derive the local UP transformation matrix based on *geodetic*
181 MAT3_SET_VEC(vec, 0.0, 0.0, 1.0);
182 MAT3rotate(R, vec, FG_Longitude); /* R = rotate about Z axis */
183 /* printf("Longitude matrix\n"); */
184 /* MAT3print(R, stdout); */
186 MAT3_SET_VEC(vec, 0.0, 1.0, 0.0);
187 MAT3mult_vec(vec, vec, R);
188 MAT3rotate(TMP, vec, -FG_Latitude); /* TMP = rotate about X axis */
189 /* printf("Latitude matrix\n"); */
190 /* MAT3print(TMP, stdout); */
192 MAT3mult(UP, R, TMP);
193 /* printf("Local up matrix\n"); */
194 /* MAT3print(UP, stdout); */
196 MAT3_SET_VEC(local_up, 1.0, 0.0, 0.0);
197 MAT3mult_vec(local_up, local_up, UP);
199 printf(" Local Up = (%.4f, %.4f, %.4f)\n", local_up[0], local_up[1],
202 /* Alternative method to Derive local up vector based on
203 * *geodetic* coordinates */
204 /* alt_up = fgPolarToCart(FG_Longitude, FG_Latitude, 1.0); */
205 /* printf(" Alt Up = (%.4f, %.4f, %.4f)\n",
206 alt_up.x, alt_up.y, alt_up.z); */
208 /* Derive the VIEW matrix */
209 MAT3mult(VIEW, LOCAL, UP);
210 /* printf("VIEW matrix\n"); */
211 /* MAT3print(VIEW, stdout); */
213 /* generate the current up, forward, and fwrd-view vectors */
214 MAT3_SET_VEC(vec, 1.0, 0.0, 0.0);
215 MAT3mult_vec(view_up, vec, VIEW);
217 MAT3_SET_VEC(vec, 0.0, 0.0, 1.0);
218 MAT3mult_vec(forward, vec, VIEW);
219 printf("Forward vector is (%.2f,%.2f,%.2f)\n", forward[0], forward[1],
222 MAT3rotate(TMP, view_up, view_offset);
223 MAT3mult_vec(view_forward, forward, TMP);
225 /* set up our view volume */
226 gluLookAt(view_pos.x, view_pos.y, view_pos.z,
227 view_pos.x + view_forward[0], view_pos.y + view_forward[1],
228 view_pos.z + view_forward[2],
229 view_up[0], view_up[1], view_up[2]);
231 /* set the sun position */
232 glLightfv( GL_LIGHT0, GL_POSITION, sun_vec );
234 /* calculate lighting parameters based on sun's relative angle to
236 MAT3_COPY_VEC(nup, local_up);
237 nsun[0] = t->fg_sunpos.x;
238 nsun[1] = t->fg_sunpos.y;
239 nsun[2] = t->fg_sunpos.z;
240 MAT3_NORMALIZE_VEC(nup, temp);
241 MAT3_NORMALIZE_VEC(nsun, temp);
243 sun_angle = acos(MAT3_DOT_PRODUCT(nup, nsun));
244 printf("SUN ANGLE relative to current location = %.3f\n", sun_angle);
246 if ( (sun_angle >= -FG_PI) && (sun_angle <= FG_PI) ) {
248 /* ya kind'a have to plot this to see the magic */
249 ambient = 0.4 * cos(0.15*sun_angle*sun_angle);
250 diffuse = 0.4 * cos(0.45*sun_angle);
257 amb[0] = color[0] * ambient;
258 amb[1] = color[1] * ambient;
259 amb[2] = color[2] * ambient;
262 diff[0] = color[0] * diffuse;
263 diff[1] = color[1] * diffuse;
264 diff[2] = color[2] * diffuse;
267 glMaterialfv(GL_FRONT, GL_AMBIENT, amb );
268 glMaterialfv(GL_FRONT, GL_DIFFUSE, diff );
272 /**************************************************************************
273 * Update all Visuals (redraws anything graphics related)
274 **************************************************************************/
276 static void fgUpdateVisuals( void ) {
277 /* update view volume parameters */
278 fgUpdateViewParams();
280 glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
282 /* Tell GL we are switching to model view parameters */
283 glMatrixMode(GL_MODELVIEW);
284 /* glLoadIdentity(); */
295 /**************************************************************************
296 * Update internal time dependent calculations (i.e. flight model)
297 **************************************************************************/
299 void fgUpdateTimeDepCalcs(int multi_loop) {
300 struct flight_params *f;
301 struct time_params *t;
304 f = ¤t_aircraft.flight;
305 t = &cur_time_params;
307 /* update the flight model */
308 if ( multi_loop < 0 ) {
309 multi_loop = DEFAULT_MULTILOOP;
312 /* printf("updating flight model x %d\n", multi_loop); */
313 fgFlightModelUpdate(FG_LARCSIM, f, multi_loop);
315 /* refresh shared sun position and sun_vec */
318 /* the sun position has to be translated just like everything else */
319 sun_vec[0] = t->fg_sunpos.x - scenery.center.x;
320 sun_vec[1] = t->fg_sunpos.y - scenery.center.y;
321 sun_vec[2] = t->fg_sunpos.z - scenery.center.z;
322 /* make this a directional light source only */
325 /* update the view angle */
326 for ( i = 0; i < multi_loop; i++ ) {
327 if ( fabs(goal_view_offset - view_offset) < 0.05 ) {
328 view_offset = goal_view_offset;
331 /* move view_offset towards goal_view_offset */
332 if ( goal_view_offset > view_offset ) {
333 if ( goal_view_offset - view_offset < FG_PI ) {
339 if ( view_offset - goal_view_offset < FG_PI ) {
345 if ( view_offset > FG_2PI ) {
346 view_offset -= FG_2PI;
347 } else if ( view_offset < 0 ) {
348 view_offset += FG_2PI;
355 void fgInitTimeDepCalcs() {
356 /* initialize timer */
359 fgTimerInit( 1.0 / DEFAULT_TIMER_HZ, fgUpdateTimeDepCalcs );
365 /**************************************************************************
366 * Scenery management routines
367 **************************************************************************/
369 /* static void fgSceneryInit_OLD() { */
371 /* scenery = fgSceneryCompile_OLD();
372 runway = fgRunwayHack_OLD(0.69, 53.07);
376 /* create the scenery */
377 /* GLint fgSceneryCompile_OLD() {
380 scenery = mesh2GL(mesh_ptr_OLD);
386 /* hack in a runway */
387 /* GLint fgRunwayHack_OLD(double width, double length) {
388 static GLfloat concrete[4] = { 0.5, 0.5, 0.5, 1.0 };
389 static GLfloat line[4] = { 0.9, 0.9, 0.9, 1.0 };
392 float line_len, line_width_2, cur_pos;
394 runway = glGenLists(1);
395 glNewList(runway, GL_COMPILE);
398 /* glBegin(GL_POLYGON);
399 glMaterialfv( GL_FRONT, GL_AMBIENT_AND_DIFFUSE, concrete );
400 glNormal3f(0.0, 0.0, 1.0);
402 glVertex3d( 0.0, -width/2.0, 0.0);
403 glVertex3d( 0.0, width/2.0, 0.0);
404 glVertex3d(length, width/2.0, 0.0);
405 glVertex3d(length, -width/2.0, 0.0);
408 /* draw center line */
409 /* glMaterialfv( GL_FRONT, GL_AMBIENT_AND_DIFFUSE, line );
410 line_len = length / ( 2 * num_lines + 1);
411 printf("line_len = %.3f\n", line_len);
414 for ( i = 0; i < num_lines; i++ ) {
416 glVertex3d( cur_pos, -line_width_2, 0.005);
417 glVertex3d( cur_pos, line_width_2, 0.005);
419 glVertex3d( cur_pos, line_width_2, 0.005);
420 glVertex3d( cur_pos, -line_width_2, 0.005);
431 /* draw the scenery */
432 /*static void fgSceneryDraw_OLD() {
433 static float z = 32.35;
439 printf("*** Drawing runway at %.2f\n", z);
441 glTranslatef( -398391.28, 120070.41, 32.35);
442 glRotatef(170.0, 0.0, 0.0, 1.0);
449 /* What should we do when we have nothing else to do? How about get
450 * ready for the next move and update the display? */
451 static void fgMainLoop( void ) {
452 static int remainder = 0;
453 int elapsed, multi_loop;
455 struct flight_params *f;
457 f = ¤t_aircraft.flight;
459 elapsed = fgGetTimeInterval();
460 printf("Time interval is = %d, previous remainder is = %d\n", elapsed,
462 printf("--> Frame rate is = %.2f\n", 1000.0 / (float)elapsed);
463 elapsed += remainder;
465 multi_loop = ((float)elapsed * 0.001) * DEFAULT_MODEL_HZ;
466 remainder = elapsed - ((multi_loop*1000) / DEFAULT_MODEL_HZ);
467 printf("Model iterations needed = %d, new remainder = %d\n", multi_loop,
473 if ( ! use_signals ) {
475 fgUpdateTimeDepCalcs(multi_loop);
478 /* I'm just sticking this here for now, it should probably move
480 rough_elev = mesh_altitude(FG_Longitude * RAD_TO_ARCSEC,
481 FG_Latitude * RAD_TO_ARCSEC);
482 printf("Ground elevation is %.2f meters here.\n", rough_elev);
483 /* FG_Runway_altitude = rough_elev * METER_TO_FEET; */
485 if ( FG_Altitude * FEET_TO_METER < rough_elev + 3.758099) {
486 /* set this here, otherwise if we set runway height above our
487 current height we get a really nasty bounce. */
488 FG_Runway_altitude = FG_Altitude - 3.758099;
490 /* now set aircraft altitude above ground */
491 FG_Altitude = rough_elev * METER_TO_FEET + 3.758099;
492 printf("<*> resetting altitude to %.0f meters\n",
493 FG_Altitude * FEET_TO_METER);
496 /* update the weather for our current position */
497 fgWeatherUpdate(FG_Longitude * RAD_TO_ARCSEC,
498 FG_Latitude * RAD_TO_ARCSEC,
499 FG_Altitude * FEET_TO_METER);
503 /**************************************************************************
504 * Handle new window size or exposure
505 **************************************************************************/
507 static void fgReshape( int width, int height ) {
508 /* Do this so we can call fgReshape(0,0) ourselves without having to know
509 * what the values of width & height are. */
510 if ( (height > 0) && (width > 0) ) {
511 win_ratio = (GLfloat) height / (GLfloat) width;
514 /* Inform gl of our view window size */
515 glViewport(0, 0, (GLint)width, (GLint)height);
517 fgUpdateViewParams();
519 glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
523 /**************************************************************************
525 **************************************************************************/
527 int main( int argc, char *argv[] ) {
528 struct flight_params *f;
531 f = ¤t_aircraft.flight;
533 printf("Flight Gear: prototype code to test OpenGL, LaRCsim, and VRML\n\n");
536 /**********************************************************************
537 * Initialize the Window/Graphics environment.
538 **********************************************************************/
541 /* initialize GLUT */
542 glutInit(&argc, argv);
544 /* Define Display Parameters */
545 glutInitDisplayMode( GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE );
547 /* Define initial window size */
548 glutInitWindowSize(640, 480);
550 /* Initialize windows */
551 glutCreateWindow("Flight Gear");
554 /* seed the random number generater */
557 /* setup view parameters, only makes GL calls */
561 /****************************************************************
562 * The following section sets up the flight model EOM parameters and
563 * should really be read in from one or more files.
564 ****************************************************************/
566 /* Globe Aiport, AZ */
567 FG_Runway_altitude = 3234.5;
568 FG_Runway_latitude = 120070.41;
569 FG_Runway_longitude = -398391.28;
570 FG_Runway_heading = 102.0 * DEG_TO_RAD;
572 /* Initial Position at GLOBE airport */
573 FG_Latitude = ( 120070.41 / 3600.0 ) * DEG_TO_RAD;
574 FG_Longitude = ( -398391.28 / 3600.0 ) * DEG_TO_RAD;
575 FG_Altitude = FG_Runway_altitude + 3.758099;
577 /* Initial Position north of the city of Globe */
578 /* FG_Latitude = ( 120625.64 / 3600.0 ) * DEG_TO_RAD; */
579 /* FG_Longitude = ( -398673.28 / 3600.0 ) * DEG_TO_RAD; */
580 /* FG_Altitude = 0.0 + 3.758099; */
582 printf("Initial position is: (%.4f, %.4f, %.2f)\n", FG_Latitude,
583 FG_Longitude, FG_Altitude);
585 /* Initial Velocity */
586 FG_V_north = 0.0 /* 7.287719E+00 */;
587 FG_V_east = 0.0 /* 1.521770E+03 */;
588 FG_V_down = 0.0 /* -1.265722E-05 */;
590 /* Initial Orientation */
591 FG_Phi = -2.658474E-06;
592 FG_Theta = 7.401790E-03;
593 FG_Psi = 270.0 * DEG_TO_RAD;
594 /* FG_Psi = 0.0 * DEG_TO_RAD; */
596 /* Initial Angular B rates */
597 FG_P_body = 7.206685E-05;
598 FG_Q_body = 0.000000E+00;
599 FG_R_body = 9.492658E-05;
601 FG_Earth_position_angle = 0.000000E+00;
603 /* Mass properties and geometry values */
604 FG_Mass = 8.547270E+01;
605 FG_I_xx = 1.048000E+03;
606 FG_I_yy = 3.000000E+03;
607 FG_I_zz = 3.530000E+03;
608 FG_I_xz = 0.000000E+00;
610 /* CG position w.r.t. ref. point */
611 FG_Dx_cg = 0.000000E+00;
612 FG_Dy_cg = 0.000000E+00;
613 FG_Dz_cg = 0.000000E+00;
615 /* Set initial position and slew parameters */
616 /* fgSlewInit(-398391.3, 120070.41, 244, 3.1415); */ /* GLOBE Airport */
617 /* fgSlewInit(-335340,162540, 15, 4.38); */
618 /* fgSlewInit(-398673.28,120625.64, 53, 4.38); */
620 /* Initialize the Scenery Management system */
623 /* Tell the Scenery Management system where we are so it can load
624 * the correct scenery data */
625 fgSceneryUpdate(FG_Latitude, FG_Longitude, FG_Altitude);
627 /* I'm just sticking this here for now, it should probably move
629 rough_elev = mesh_altitude(FG_Longitude * RAD_TO_DEG * 3600.0,
630 FG_Latitude * RAD_TO_DEG * 3600.0);
631 printf("Ground elevation is %.2f meters here.\n", rough_elev);
632 if ( rough_elev > -9990.0 ) {
633 FG_Runway_altitude = rough_elev * METER_TO_FEET;
636 if ( FG_Altitude < FG_Runway_altitude ) {
637 FG_Altitude = FG_Runway_altitude + 3.758099;
639 /* end of thing that I just stuck in that I should probably move */
641 /* Initialize the flight model data structures base on above values */
642 fgFlightModelInit( FG_LARCSIM, f, 1.0 / DEFAULT_MODEL_HZ );
645 /* init timer routines, signals, etc. Arrange for an alarm
646 signal to be generated, etc. */
647 fgInitTimeDepCalcs();
650 /* Initialize the weather modeling subsystem */
653 /**********************************************************************
654 * Initialize the Event Handlers.
655 **********************************************************************/
658 /* call fgReshape() on window resizes */
659 glutReshapeFunc( fgReshape );
661 /* call key() on keyboard event */
662 glutKeyboardFunc( GLUTkey );
663 glutSpecialFunc( GLUTspecialkey );
665 /* call fgMainLoop() whenever there is nothing else to do */
666 glutIdleFunc( fgMainLoop );
669 glutDisplayFunc( fgUpdateVisuals );
671 /* pass control off to the GLUT event handler */
681 int printf (const char *format, ...) {
687 /* Revision 1.7 1997/08/16 12:22:38 curt
688 /* Working on improving the lighting/shading.
690 * Revision 1.6 1997/08/13 20:24:56 curt
691 * Changes due to changing sunpos interface.
693 * Revision 1.5 1997/08/06 21:08:32 curt
694 * Sun position now *really* works (I think) ... I still have sun time warping
695 * code in place, probably should remove it soon.
697 * Revision 1.4 1997/08/06 15:41:26 curt
698 * Working on correct sun position.
700 * Revision 1.3 1997/08/06 00:24:22 curt
701 * Working on correct real time sun lighting.
703 * Revision 1.2 1997/08/04 20:25:15 curt
704 * Organizational tweaking.
706 * Revision 1.1 1997/08/02 18:45:00 curt
707 * Renamed GLmain.c GLUTmain.c
709 * Revision 1.43 1997/08/02 16:23:47 curt
712 * Revision 1.42 1997/08/01 19:43:33 curt
713 * Making progress with coordinate system overhaul.
715 * Revision 1.41 1997/07/31 22:52:37 curt
716 * Working on redoing internal coordinate systems & scenery transformations.
718 * Revision 1.40 1997/07/30 16:12:42 curt
719 * Moved fg_random routines from Util/ to Math/
721 * Revision 1.39 1997/07/21 14:45:01 curt
724 * Revision 1.38 1997/07/19 23:04:47 curt
725 * Added an initial weather section.
727 * Revision 1.37 1997/07/19 22:34:02 curt
728 * Moved PI definitions to ../constants.h
729 * Moved random() stuff to ../Utils/ and renamed fg_random()
731 * Revision 1.36 1997/07/18 23:41:25 curt
732 * Tweaks for building with Cygnus Win32 compiler.
734 * Revision 1.35 1997/07/18 14:28:34 curt
735 * Hacked in some support for wind/turbulence.
737 * Revision 1.34 1997/07/16 20:04:48 curt
738 * Minor tweaks to aid Win32 port.
740 * Revision 1.33 1997/07/12 03:50:20 curt
741 * Added an #include <Windows32/Base.h> to help compiling for Win32
743 * Revision 1.32 1997/07/11 03:23:18 curt
744 * Solved some scenery display/orientation problems. Still have a positioning
745 * (or transformation?) problem.
747 * Revision 1.31 1997/07/11 01:29:58 curt
748 * More tweaking of terrian floor.
750 * Revision 1.30 1997/07/10 04:26:37 curt
751 * We now can interpolated ground elevation for any position in the grid. We
752 * can use this to enforce a "hard" ground. We still need to enforce some
753 * bounds checking so that we don't try to lookup data points outside the
756 * Revision 1.29 1997/07/09 21:31:12 curt
757 * Working on making the ground "hard."
759 * Revision 1.28 1997/07/08 18:20:12 curt
760 * Working on establishing a hard ground.
762 * Revision 1.27 1997/07/07 20:59:49 curt
763 * Working on scenery transformations to enable us to fly fluidly over the
764 * poles with no discontinuity/distortion in scenery.
766 * Revision 1.26 1997/07/05 20:43:34 curt
767 * renamed mat3 directory to Math so we could add other math related routines.
769 * Revision 1.25 1997/06/29 21:19:17 curt
770 * Working on scenery management system.
772 * Revision 1.24 1997/06/26 22:14:53 curt
773 * Beginning work on a scenery management system.
775 * Revision 1.23 1997/06/26 19:08:33 curt
776 * Restructuring make, adding automatic "make dep" support.
778 * Revision 1.22 1997/06/25 15:39:47 curt
779 * Minor changes to compile with rsxnt/win32.
781 * Revision 1.21 1997/06/22 21:44:41 curt
782 * Working on intergrating the VRML (subset) parser.
784 * Revision 1.20 1997/06/21 17:12:53 curt
785 * Capitalized subdirectory names.
787 * Revision 1.19 1997/06/18 04:10:31 curt
788 * A couple more runway tweaks ...
790 * Revision 1.18 1997/06/18 02:21:24 curt
793 * Revision 1.17 1997/06/17 16:51:58 curt
794 * Timer interval stuff now uses gettimeofday() instead of ftime()
796 * Revision 1.16 1997/06/17 04:19:16 curt
797 * More timer related tweaks with respect to view direction changes.
799 * Revision 1.15 1997/06/17 03:41:10 curt
800 * Nonsignal based interval timing is now working.
801 * This would be a good time to look at cleaning up the code structure a bit.
803 * Revision 1.14 1997/06/16 19:32:51 curt
804 * Starting to add general timer support.
806 * Revision 1.13 1997/06/02 03:40:06 curt
807 * A tiny bit more view tweaking.
809 * Revision 1.12 1997/06/02 03:01:38 curt
810 * Working on views (side, front, back, transitions, etc.)
812 * Revision 1.11 1997/05/31 19:16:25 curt
813 * Elevator trim added.
815 * Revision 1.10 1997/05/31 04:13:52 curt
818 * Continuing work on the LaRCsim flight model integration.
819 * Added some MSFS-like keyboard input handling.
821 * Revision 1.9 1997/05/30 19:27:01 curt
822 * The LaRCsim flight model is starting to look like it is working.
824 * Revision 1.8 1997/05/30 03:54:10 curt
825 * Made a bit more progress towards integrating the LaRCsim flight model.
827 * Revision 1.7 1997/05/29 22:39:49 curt
828 * Working on incorporating the LaRCsim flight model.
830 * Revision 1.6 1997/05/29 12:31:39 curt
831 * Minor tweaks, moving towards general flight model integration.
833 * Revision 1.5 1997/05/29 02:33:23 curt
834 * Updated to reflect changing interfaces in other "modules."
836 * Revision 1.4 1997/05/27 17:44:31 curt
837 * Renamed & rearranged variables and routines. Added some initial simple
838 * timer/alarm routines so the flight model can be updated on a regular
841 * Revision 1.3 1997/05/23 15:40:25 curt
842 * Added GNU copyright headers.
845 * Revision 1.2 1997/05/23 00:35:12 curt
846 * Trying to get fog to work ...
848 * Revision 1.1 1997/05/21 15:57:51 curt
849 * Renamed due to added GLUT support.
851 * Revision 1.3 1997/05/19 18:22:42 curt
852 * Parameter tweaking ... starting to stub in fog support.
854 * Revision 1.2 1997/05/17 00:17:34 curt
855 * Trying to stub in support for standard OpenGL.
857 * Revision 1.1 1997/05/16 16:05:52 curt