1
0
Fork 0

#ifdef out all references to sgCloud3d until more of it's issues can be

addressed.
This commit is contained in:
curt 2002-12-10 19:25:12 +00:00
parent b640aceaa8
commit 69b5c093dd
4 changed files with 29 additions and 16 deletions

View file

@ -73,7 +73,7 @@ fgfs_LDADD = \
$(top_builddir)/src/Systems/libSystems.a \ $(top_builddir)/src/Systems/libSystems.a \
$(top_builddir)/src/Time/libTime.a \ $(top_builddir)/src/Time/libTime.a \
$(WEATHER_LIBS) \ $(WEATHER_LIBS) \
-lsgroute -lsgsky -lsgclouds3d -lsgephem -lsgtiming -lsgio -lsgscreen \ -lsgroute -lsgsky -lsgephem -lsgtiming -lsgio -lsgscreen \
-lsgmath -lsgbucket -lsgdebug -lsgmagvar -lsgmisc -lsgxml \ -lsgmath -lsgbucket -lsgdebug -lsgmagvar -lsgmisc -lsgxml \
-lsgserial \ -lsgserial \
$(THREAD_LIBS) \ $(THREAD_LIBS) \

View file

@ -63,8 +63,10 @@
#include <simgear/math/polar3d.hxx> #include <simgear/math/polar3d.hxx>
#include <simgear/math/sg_geodesy.hxx> #include <simgear/math/sg_geodesy.hxx>
#include <simgear/misc/sg_path.hxx> #include <simgear/misc/sg_path.hxx>
#ifdef FG_USE_CLOUDS_3D
# include <simgear/sky/clouds3d/SkySceneLoader.hpp> # include <simgear/sky/clouds3d/SkySceneLoader.hpp>
# include <simgear/sky/clouds3d/SkyUtil.hpp> # include <simgear/sky/clouds3d/SkyUtil.hpp>
#endif
#include <simgear/timing/sg_time.hxx> #include <simgear/timing/sg_time.hxx>
#include <simgear/timing/lowleveltime.h> #include <simgear/timing/lowleveltime.h>
@ -139,7 +141,9 @@ SG_USING_STD(string);
extern const char *default_root; extern const char *default_root;
#ifdef FG_USE_CLOUDS_3D
SkySceneLoader *sgCloud3d; SkySceneLoader *sgCloud3d;
#endif
// Scan the command line options for the specified option and return // Scan the command line options for the specified option and return
@ -1405,6 +1409,7 @@ bool fgInitSubsystems() {
globals->get_environment_mgr()->bind(); globals->get_environment_mgr()->bind();
#endif #endif
#ifdef FG_USE_CLOUDS_3D
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Initialize the 3D cloud subsystem. // Initialize the 3D cloud subsystem.
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
@ -1421,6 +1426,7 @@ bool fgInitSubsystems() {
} }
SG_LOG(SG_GENERAL, SG_INFO, "CLOUDS3d Loaded: "); SG_LOG(SG_GENERAL, SG_INFO, "CLOUDS3d Loaded: ");
} }
#endif
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Initialize vor/ndb/ils/fix list management and query systems // Initialize vor/ndb/ils/fix list management and query systems

View file

@ -80,8 +80,10 @@ SG_USING_STD(endl);
#include <simgear/math/polar3d.hxx> #include <simgear/math/polar3d.hxx>
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.h>
#include <simgear/misc/sg_path.hxx> #include <simgear/misc/sg_path.hxx>
#ifdef FG_USE_CLOUDS_3D
# include <simgear/sky/clouds3d/SkySceneLoader.hpp> # include <simgear/sky/clouds3d/SkySceneLoader.hpp>
# include <simgear/sky/clouds3d/SkyUtil.hpp> # include <simgear/sky/clouds3d/SkyUtil.hpp>
#endif
#include <simgear/sky/sky.hxx> #include <simgear/sky/sky.hxx>
#include <simgear/timing/sg_time.hxx> #include <simgear/timing/sg_time.hxx>
@ -231,8 +233,11 @@ ssgTransform *fgd_pos = NULL;
// Sky structures // Sky structures
SGSky *thesky; SGSky *thesky;
#ifdef FG_USE_CLOUDS_3D
SkySceneLoader *sgClouds3d; SkySceneLoader *sgClouds3d;
bool _bcloud_orig = true; bool _bcloud_orig = true;
#endif
// hack // hack
sgMat4 copy_of_ssgOpenGLAxisSwapMatrix = sgMat4 copy_of_ssgOpenGLAxisSwapMatrix =
@ -513,20 +518,14 @@ void fgRenderFrame() {
glEnable(GL_BLEND); glEnable(GL_BLEND);
glBlendFunc( GL_ONE, GL_ONE_MINUS_SRC_ALPHA ) ; glBlendFunc( GL_ONE, GL_ONE_MINUS_SRC_ALPHA ) ;
/* #ifdef FG_USE_CLOUDS_3D
glEnable( GL_TEXTURE_2D );
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
*/
if ( _bcloud_orig ) { if ( _bcloud_orig ) {
Point3D c = globals->get_scenery()->get_center(); Point3D c = globals->get_scenery()->get_center();
sgClouds3d->Set_Cloud_Orig( &c ); sgClouds3d->Set_Cloud_Orig( &c );
_bcloud_orig = false; _bcloud_orig = false;
} }
sgClouds3d->Update( current__view->get_absolute_view_pos() ); sgClouds3d->Update( current__view->get_absolute_view_pos() );
#endif
glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ) ; glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ) ;
glDisable(GL_DEPTH_TEST); glDisable(GL_DEPTH_TEST);
} }
@ -826,7 +825,9 @@ void fgRenderFrame() {
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
*/ */
#ifdef FG_USE_CLOUDS_3D
sgClouds3d->Draw((sgVec4 *)current__view->get_VIEW()); sgClouds3d->Draw((sgVec4 *)current__view->get_VIEW());
#endif
glEnable( GL_FOG ); glEnable( GL_FOG );
glEnable( GL_LIGHTING ); glEnable( GL_LIGHTING );
glEnable( GL_DEPTH_TEST ); glEnable( GL_DEPTH_TEST );
@ -1377,8 +1378,12 @@ void fgReshape( int width, int height ) {
viewmgr->get_current_view()->get_v_fov() ); viewmgr->get_current_view()->get_v_fov() );
fgHUDReshape(); fgHUDReshape();
#ifdef FG_USE_CLOUDS_3D
sgClouds3d->Resize( viewmgr->get_current_view()->get_h_fov(), sgClouds3d->Resize( viewmgr->get_current_view()->get_h_fov(),
viewmgr->get_current_view()->get_v_fov() ); viewmgr->get_current_view()->get_v_fov() );
#endif
} }
// Initialize GLUT and define a main window // Initialize GLUT and define a main window

View file

@ -801,10 +801,12 @@ parse_option (const string& arg)
fgSetBool("/environment/clouds/status", false); fgSetBool("/environment/clouds/status", false);
} else if ( arg == "--enable-clouds" ) { } else if ( arg == "--enable-clouds" ) {
fgSetBool("/environment/clouds/status", true); fgSetBool("/environment/clouds/status", true);
#ifdef FG_USE_CLOUDS_3D
} else if ( arg == "--disable-clouds3d" ) { } else if ( arg == "--disable-clouds3d" ) {
fgSetBool("/sim/rendering/clouds3d", false); fgSetBool("/sim/rendering/clouds3d", false);
} else if ( arg == "--enable-clouds3d" ) { } else if ( arg == "--enable-clouds3d" ) {
fgSetBool("/sim/rendering/clouds3d", true); fgSetBool("/sim/rendering/clouds3d", true);
#endif
} else if ( arg.find( "--fov=" ) == 0 ) { } else if ( arg.find( "--fov=" ) == 0 ) {
parse_fov( arg.substr(6) ); parse_fov( arg.substr(6) );
} else if ( arg == "--disable-fullscreen" ) { } else if ( arg == "--disable-fullscreen" ) {