]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/main.cxx
Ssg tweaks.
[flightgear.git] / src / Main / main.cxx
index 0f8b6a544af12f4e8da0af074c5bad6045583d70..19d796e1bf1c82784f9d92e6afe1648f675cb0aa 100644 (file)
@@ -378,7 +378,7 @@ static void fgRenderFrame( void ) {
            // xglMaterialfv (GL_FRONT, GL_DIFFUSE, white);
        }
 
-       global_tile_mgr.render();
+       // global_tile_mgr.render();
 
        // ssg test
 
@@ -389,8 +389,8 @@ static void fgRenderFrame( void ) {
        double agl = current_aircraft.fdm_state->get_Altitude() * FEET_TO_METER
            - scenery.cur_elev;
 
-       FG_LOG( FG_ALL, FG_INFO, "visibility is " 
-               << current_weather.get_visibility() );
+       // FG_LOG( FG_ALL, FG_INFO, "visibility is " 
+       //         << current_weather.get_visibility() );
            
        if ( agl > 10.0 ) {
            // ssgSetNearFar( 10.0f, current_weather.get_visibility() );
@@ -425,7 +425,8 @@ static void fgRenderFrame( void ) {
        sgMat4 sgVIEW;
        sgMultMat4( sgVIEW, current_view.sgVIEW, sgTRANS );
        ssgSetCamera( sgVIEW );
-       // ssgSetCamera( current_view.sgVIEW );
+
+       global_tile_mgr.prep_ssg_nodes();
        ssgCullAndDraw( scene );
 
        xglDisable( GL_TEXTURE_2D );
@@ -1079,10 +1080,10 @@ int main( int argc, char **argv ) {
     // distribution) specifically from the ssg tux example
     //
 
-    // ssgModelPath( "/stage/pinky01/src/Libs/plib-1.0.12/examples/ssg/tux/data/" );
-    // ssgTexturePath( "/stage/pinky01/src/Libs/plib-1.0.12/examples/ssg/tux/data/" );
-    ssgModelPath( "/h/curt/src/Libs/plib-1.0.12/examples/ssg/tux/data/" );
-    ssgTexturePath( "/h/curt/src/Libs/plib-1.0.12/examples/ssg/tux/data/" );
+    ssgModelPath( "/stage/pinky01/src/Libs/plib-1.0.12/examples/ssg/tux/data/" );
+    ssgTexturePath( "/stage/pinky01/src/Libs/plib-1.0.12/examples/ssg/tux/data/" );
+    // ssgModelPath( "/h/curt/src/Libs/plib-1.0.12/examples/ssg/tux/data/" );
+    // ssgTexturePath( "/h/curt/src/Libs/plib-1.0.12/examples/ssg/tux/data/" );
 
     scene = new ssgRoot;
     terrain = new ssgBranch;