Sorry if I mislead. To my knowledge this square sun has been the case
for a long time. The patch I was thinking of comes from the
macflightgear 0.9.10 sources. I have applied it (with a little fuzz)
to pre2 and it does solve the problem. Here it is:

--- org/FlightGear-0.9.10/src/Main/main.cxx     2006-03-21 10:52:29.000000000 -0
800
+++ flightgear/FlightGear/src/Main/main.cxx     2006-11-20 16:06:35.000000000 -0
800
@@ -787,13 +787,6 @@

         // TODO: move to environment mgr
         thesky = new SGSky;
-        SGPath texture_path(globals->get_fg_root());
-        texture_path.append("Textures");
-        texture_path.append("Sky");
-        for (int i = 0; i < FGEnvironmentMgr::MAX_CLOUD_LAYERS; i++) {
-            SGCloudLayer * layer = new SGCloudLayer(texture_path.str());
-            thesky->add_cloud_layer(layer);
-        }

         SGPath sky_tex_path( globals->get_fg_root() );
         sky_tex_path.append( "Textures" );
@@ -812,6 +805,15 @@
                        globals->get_ephem()->getNumStars(),
                        globals->get_ephem()->getStars() );

+
+        SGPath texture_path(globals->get_fg_root());
+        texture_path.append("Textures");
+        texture_path.append("Sky");
+        for (int i = 0; i < FGEnvironmentMgr::MAX_CLOUD_LAYERS; i++) {
+            SGCloudLayer * layer = new SGCloudLayer(texture_path.str());
+            thesky->add_cloud_layer(layer);
+        }
+
         // Initialize MagVar model
         SGMagVar *magvar = new SGMagVar();
         globals->set_mag( magvar );

It only happens for me on OS X, I have never seen this problem on
Linux. It happened on my iBook and MacBook running Tiger, and now on
my MacBook running Leopard.

On Nov 25, 2007 1:37 AM, Durk Talsma <[EMAIL PROTECTED]> wrote:
> On Saturday 24 November 2007 22:06, Hans Fugal wrote:
> > On OSX, for some unknown reason the sun is displayed as a square (or
> > diamond, if you like) instead of as a circle. Unknown to me, anyway; I
> > think the MacFlightGear folks have a patch. Here's a screenshot:
> > http://hans.fugal.net/tmp/fg/square-sun.png
> >
> In your earlier mail, you mentioned that this problem showed up relatively
> recently. It seems like a particular type of texture blending isn't working
> anymore (The sun basically consists of two textures with radially increasing
> alpha values that blend into to the sky, thus creating an inner and an outer
> halo). If you have an idea around what time this problem occurred, could you
> try to revert to an older revision, and try to pin point the date when this
> problem occurred? Also, could it be related to a video driver?
>
> I'm not seeing this problem here, so I'm a afraid I'm not much use in trying
> to help debugging this problem.
>
>
> Cheers,
> Durk
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Flightgear-devel mailing list
> Flightgear-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
>



-- 
Hans Fugal
Fugal Computing

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to