]> git.mxchange.org Git - flightgear.git/commitdiff
Minor tweaks.
authorcurt <curt>
Mon, 21 Jul 1997 14:45:01 +0000 (14:45 +0000)
committercurt <curt>
Mon, 21 Jul 1997 14:45:01 +0000 (14:45 +0000)
Main/GLmain.c
Main/mesh2GL.c
Simulator/constants.h

index e146e0c5f9fc90a52148c0488d538153508a870a..eff6ef5723dce28db89e4e3dbad3d89d74abce56 100644 (file)
@@ -135,7 +135,7 @@ static void fgUpdateViewParams() {
     /* Tell GL we are about to modify the projection parameters */
     glMatrixMode(GL_PROJECTION);
     glLoadIdentity();
-    gluPerspective(45.0, 1.0/win_ratio, 0.1, 200000.0);
+    gluPerspective(45.0, 1.0/win_ratio, 0.001, 2000.0);
 
     glMatrixMode(GL_MODELVIEW);
     glLoadIdentity();
@@ -183,7 +183,7 @@ static void fgUpdateViewParams() {
 
     printf("View pos = %.4f, %.4f, %.4f\n", view_pos.y, view_pos.z,  
           FG_Altitude * FEET_TO_METER);
-    gluLookAt(view_pos.y, view_pos.z,  FG_Altitude*FEET_TO_METER * 0.0011,
+    gluLookAt(view_pos.y, view_pos.z,  FG_Altitude*FEET_TO_METER * 0.001,
              view_pos.y + fwrd_view[0], view_pos.z + fwrd_view[1], 
              FG_Altitude*FEET_TO_METER * 0.001 + fwrd_view[2],
              up[0], up[1], up[2]);
@@ -390,10 +390,10 @@ static void fgMainLoop( void ) {
      * eventually */
     rough_elev = mesh_altitude(FG_Longitude * RAD_TO_ARCSEC, 
                               FG_Latitude  * RAD_TO_ARCSEC);
-    printf("Ground elevation is about %.2f meters here.\n", rough_elev);
+    printf("Ground elevation is %.2f meters here.\n", rough_elev);
     /* FG_Runway_altitude = rough_elev * METER_TO_FEET; */
 
-    if ( FG_Altitude * FEET_TO_METER < rough_elev ) {
+    if ( FG_Altitude * FEET_TO_METER < rough_elev + 3.758099) {
        /* set this here, otherwise if we set runway height above our
           current height we get a really nasty bounce. */
        FG_Runway_altitude = FG_Altitude - 3.758099;
@@ -621,9 +621,12 @@ int printf (const char *format, ...) {
 
 
 /* $Log$
-/* Revision 1.38  1997/07/19 23:04:47  curt
-/* Added an initial weather section.
+/* Revision 1.39  1997/07/21 14:45:01  curt
+/* Minor tweaks.
 /*
+ * Revision 1.38  1997/07/19 23:04:47  curt
+ * Added an initial weather section.
+ *
  * Revision 1.37  1997/07/19 22:34:02  curt
  * Moved PI definitions to ../constants.h
  * Moved random() stuff to ../Utils/ and renamed fg_random()
index ef9b4fb8968ec1766936e0d3d3d024cc819f8a83..5831f5845e483a9010875bc6314e9d683748ea9f 100644 (file)
@@ -43,8 +43,8 @@
 void mesh_make_test_object(double lon, double lat) {
     struct fgCartesianPoint origin;
     double elev;
-    double b = 0.25;
-    double h = 0.50;
+    double b = 0.01;
+    double h = 0.05;
     static GLfloat color[4] = { 1.0, 0.25, 0.25, 1.0 };
 
     glMaterialfv( GL_FRONT, GL_AMBIENT_AND_DIFFUSE, color );
@@ -185,7 +185,7 @@ GLint mesh2GL(struct mesh *m) {
     }
     */
 
-    for ( i = 0; i < 200; i++ ) {
+    for ( i = 0; i < 400; i++ ) {
        randx = fg_random() * 3600.0;
        randy = fg_random() * 3600.0;
 
@@ -200,10 +200,13 @@ GLint mesh2GL(struct mesh *m) {
 
 
 /* $Log$
-/* Revision 1.37  1997/07/19 22:34:03  curt
-/* Moved PI definitions to ../constants.h
-/* Moved random() stuff to ../Utils/ and renamed fg_random()
+/* Revision 1.38  1997/07/21 14:45:02  curt
+/* Minor tweaks.
 /*
+ * Revision 1.37  1997/07/19 22:34:03  curt
+ * Moved PI definitions to ../constants.h
+ * Moved random() stuff to ../Utils/ and renamed fg_random()
+ *
  * Revision 1.36  1997/07/18 23:41:25  curt
  * Tweaks for building with Cygnus Win32 compiler.
  *
index f1f8f1c2c39f2ae04ff255d5e233f6ba5d3e751e..33590d5860ecdc1a544e55b4318f193d707f473c 100644 (file)
@@ -62,7 +62,7 @@
 #define ARCSEC_TO_RAD 4.84813681109535993589e-06 
 
 /* Radians to arc seconds */                  /* (rad*3600*180)/pi = arcsec */
-#define RAD_TO_ARCSEC 2035752.03952618601852
+#define RAD_TO_ARCSEC 206264.806247096355156
 
 /* Feet to Meters */
 #define FEET_TO_METER    0.3048
 
 
 /* $Log$
-/* Revision 1.5  1997/07/19 23:04:46  curt
-/* Added an initial weather section.
+/* Revision 1.6  1997/07/21 14:45:01  curt
+/* Minor tweaks.
 /*
+ * Revision 1.5  1997/07/19 23:04:46  curt
+ * Added an initial weather section.
+ *
  * Revision 1.4  1997/07/19 22:37:03  curt
  * Added various PI definitions.
  *