Durk,

Okay, I'll write on this issue a bit before I leave here.

This bug actually has occurred since 0.9.10.
When I found this bug, I sent a similar report as Hans did, and the answer was almost exactly the same as you said. So I checked if rgb file for halo was properly loaded.
Then I found that somehow it was not loaded properly on Mac OS X.
I was trying to find the cause of this problem by tracing around SimGear's oursun.cxx, but I only found a workaround (changing the order of adding texture paths (i.e. the order of loading rgb files). This allows Mac OS X properly load rgb file for halo... I don't know why such thing happens yet, but it works anyway. This is why I changed the order of
adding texture paths in the patch that I posted yesterday.

I didn't post the patch since I was not sure if this patch affects other platforms. Maybe this is a proper timing to apply the patch only if it doesn't affect other platforms.

By the way, I forgot to mention that there is another bug (also since 0.9.10) that shadows are not rendered on Mac OS X.
At the time SGShadowVolume::setupShadows is called for the first time,
OpenGL extentions and AlphaBits/StencilBits are not properly recognized on Macs, so SGShadowVolume::init() should be (re)invoked when setupShadows() is called for the first time.

Enclosed is the patch for SimGear to solve this problem.
This patch doesn't affect any other platform since it is in #ifdef __APPLE__ #endif closure.

Please apply this patch if you still have time before the official 0.9.11-pre2 release.
Otherwise, apply this on the next release.

I can help on this again when I come back (about a week later).
Hans, could you help on this instead of me while I'm away?

Thanks in advance,

Tat


On Nov 25, 2007, at 5:37 PM, Durk Talsma 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

Attachment: SimGear-0.3.10-shadow-MacOSX.diff
Description: Binary data


-------------------------------------------------------------------------
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