]> git.mxchange.org Git - flightgear.git/commitdiff
minor tweaks.
authorcurt <curt>
Sat, 15 Nov 1997 18:16:34 +0000 (18:16 +0000)
committercurt <curt>
Sat, 15 Nov 1997 18:16:34 +0000 (18:16 +0000)
Main/GLUTmain.c
Main/fg_init.c
Scenery/obj.c
Time/fg_time.c

index 9338ffab616cd938efa72bea57fabbb8348cbdd7..a851d15e57826044f1598aafe389dd5348df1613 100644 (file)
@@ -108,7 +108,7 @@ static void fgInitVisuals() {
 
     glEnable( GL_DEPTH_TEST );
     /* glFrontFace(GL_CW); */
-    glEnable( GL_CULL_FACE );
+    /* glEnable( GL_CULL_FACE ); */
 
     /* If enabled, normal vectors specified with glNormal are scaled
        to unit length after transformation.  See glNormal. */
@@ -143,8 +143,7 @@ static void fgUpdateViewParams() {
     struct VIEW *v;
     double x_2, x_4, x_8, x_10;
     double ambient, diffuse, sky;
-    /* GLfloat color[4] = { 1.0, 1.0, 0.50, 1.0 };*/
-    GLfloat color[4] = { 1.0, 0.0, 0.00, 1.0 };
+    GLfloat color[4] = { 1.0, 1.0, 0.50, 1.0 };
     GLfloat amb[3], diff[3], fog[4], clear[4];
 
     f = &current_aircraft.flight;
@@ -578,9 +577,12 @@ int main( int argc, char *argv[] ) {
 
 
 /* $Log$
-/* Revision 1.22  1997/10/30 12:38:41  curt
-/* Working on new scenery subsystem.
+/* Revision 1.23  1997/11/15 18:16:34  curt
+/* minor tweaks.
 /*
+ * Revision 1.22  1997/10/30 12:38:41  curt
+ * Working on new scenery subsystem.
+ *
  * Revision 1.21  1997/09/23 00:29:38  curt
  * Tweaks to get things to compile with gcc-win32.
  *
index 620c4e88c21e3fecbe374039fe436cdfcea1bbbe..5f27e9326e96909815cc0d3d1ae8db2c301800a3 100644 (file)
@@ -101,7 +101,7 @@ void fgInitSubsystems( void ) {
     FG_Longitude = ( -398391.28 / 3600.0 ) * DEG_TO_RAD;
     FG_Latitude  = (  120070.41 / 3600.0 ) * DEG_TO_RAD;
     FG_Altitude = FG_Runway_altitude + 3.758099;
-    FG_Altitude = 20000;
+    FG_Altitude = 10000;
     
     /* Initial Position north of the city of Globe */
     /* FG_Longitude = ( -398673.28 / 3600.0 ) * DEG_TO_RAD; */
@@ -224,9 +224,12 @@ void fgInitSubsystems( void ) {
 
 
 /* $Log$
-/* Revision 1.11  1997/10/30 12:38:42  curt
-/* Working on new scenery subsystem.
+/* Revision 1.12  1997/11/15 18:16:35  curt
+/* minor tweaks.
 /*
+ * Revision 1.11  1997/10/30 12:38:42  curt
+ * Working on new scenery subsystem.
+ *
  * Revision 1.10  1997/10/25 03:24:23  curt
  * Incorporated sun, moon, and star positioning code contributed by Durk Talsma.
  *
index 2f6d843419e1438c50897ceaea2e334f0975c865..c29a2506b299b78f07405bde2dc1769f7fdc347e 100644 (file)
@@ -144,24 +144,13 @@ GLint fgObjLoad(char *path) {
            glVertex3d(nodes[n1][0] - ref.x, nodes[n1][1] - ref.y, 
                       nodes[n1][2] - ref.z);
 
-           if ( dot_prod > 0 ) {
-               glNormal3d(normals[n2][0], normals[n2][1], normals[n2][2]);
-               glVertex3d(nodes[n2][0] - ref.x, nodes[n2][1] - ref.y, 
-                          nodes[n2][2] - ref.z);
-
-               glNormal3d(normals[n3][0], normals[n3][1], normals[n3][2]);
-               glVertex3d(nodes[n3][0] - ref.x, nodes[n3][1] - ref.y, 
-                          nodes[n3][2] - ref.z);
-           } else {
-               printf("Reversing\n");
-               glNormal3d(normals[n3][0], normals[n3][1], normals[n3][2]);
-               glVertex3d(nodes[n3][0] - ref.x, nodes[n3][1] - ref.y, 
-                          nodes[n3][2] - ref.z);
+           glNormal3d(normals[n2][0], normals[n2][1], normals[n2][2]);
+           glVertex3d(nodes[n2][0] - ref.x, nodes[n2][1] - ref.y, 
+                      nodes[n2][2] - ref.z);
 
-               glNormal3d(normals[n2][0], normals[n2][1], normals[n2][2]);
-               glVertex3d(nodes[n2][0] - ref.x, nodes[n2][1] - ref.y, 
-                          nodes[n2][2] - ref.z);
-           }
+           glNormal3d(normals[n3][0], normals[n3][1], normals[n3][2]);
+           glVertex3d(nodes[n3][0] - ref.x, nodes[n3][1] - ref.y, 
+                      nodes[n3][2] - ref.z);
 
            if ( n4 > 0 ) {
                glNormal3d(normals[n4][0], normals[n4][1], normals[n4][2]);
@@ -227,12 +216,15 @@ GLint fgObjLoad(char *path) {
 
 
 /* $Log$
-/* Revision 1.4  1997/11/14 00:26:49  curt
-/* Transform scenery coordinates earlier in pipeline when scenery is being
-/* created, not when it is being loaded.  Precalculate normals for each node
-/* as average of the normals of each containing polygon so Garoude shading is
-/* now supportable.
+/* Revision 1.5  1997/11/15 18:16:39  curt
+/* minor tweaks.
 /*
+ * Revision 1.4  1997/11/14 00:26:49  curt
+ * Transform scenery coordinates earlier in pipeline when scenery is being
+ * created, not when it is being loaded.  Precalculate normals for each node
+ * as average of the normals of each containing polygon so Garoude shading is
+ * now supportable.
+ *
  * Revision 1.3  1997/10/31 04:49:12  curt
  * Tweaking vertex orders.
  *
index 5e7c638bff3d6a8c881bae1e2a164a224264855c..06f756e6c2c6fab3c7a21951dadf8f7b547a9737 100644 (file)
@@ -230,9 +230,9 @@ void fgTimeUpdate(struct FLIGHT *f, struct fgTIME *t) {
     static long int warp = 0;
 
     /* get current Unix calendar time (in seconds) */
-    warp += 60; 
+    warp += 20; 
     /* warp = 0; */
-    t->cur_time = time(NULL) + 43200;
+    t->cur_time = time(NULL) + 4 * 60 * 60;
     t->cur_time += warp;
     printf("Current Unix calendar time = %ld  warp = %ld\n", t->cur_time, warp);
 
@@ -284,12 +284,15 @@ void fgTimeUpdate(struct FLIGHT *f, struct fgTIME *t) {
 
 
 /* $Log$
-/* Revision 1.9  1997/11/14 00:26:50  curt
-/* Transform scenery coordinates earlier in pipeline when scenery is being
-/* created, not when it is being loaded.  Precalculate normals for each node
-/* as average of the normals of each containing polygon so Garoude shading is
-/* now supportable.
+/* Revision 1.10  1997/11/15 18:16:42  curt
+/* minor tweaks.
 /*
+ * Revision 1.9  1997/11/14 00:26:50  curt
+ * Transform scenery coordinates earlier in pipeline when scenery is being
+ * created, not when it is being loaded.  Precalculate normals for each node
+ * as average of the normals of each containing polygon so Garoude shading is
+ * now supportable.
+ *
  * Revision 1.8  1997/10/25 03:30:08  curt
  * Misc. tweaks.
  *