From 85feefa59f635218580f2e1d726b9156499ffe11 Mon Sep 17 00:00:00 2001 From: ehofman Date: Thu, 7 Aug 2003 12:38:17 +0000 Subject: [PATCH] Add partial support for using textures as a basis for cloud field geenration --- src/Main/fg_init.cxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 2342ed739..c093742e3 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -67,6 +67,7 @@ #ifdef FG_USE_CLOUDS_3D # include # include +# include #endif #include #include @@ -1492,9 +1493,17 @@ bool fgInitSubsystems() { = fgGetNode("/sim/presets/altitude-ft"); SGPath cloud_path(globals->get_fg_root()); - cloud_path.append("large.sky"); +#if 0 + cloud_path.append("Textures/Sky/scattered.rgba"); SG_LOG(SG_GENERAL, SG_INFO, "Loading CLOUDS3d from: " << cloud_path.c_str()); + + SGTexture tx; + tx.read_rgba_texture(cloud_path.c_str()); + if ( !sgCloud3d->Load( tx.texture(), tx.width(), +#else + cloud_path.append("large.sky"); if ( !sgCloud3d->Load( cloud_path.str(), +#endif latitude->getDoubleValue(), longitude->getDoubleValue()) ) { -- 2.39.5