Hello,

Last week i looked at some real photos of earth's sky
and found out, that the sky color in flightgear only corresponds 
with the color of the real sky when it is a raining day or when you are in
an area that has a high air pollution.
But it does not correspond to the color of the real sky on nice a sunny day
with low air pollution.
In this case the current sky color of flightgear is wrong.

Here is an example photo of the real sky:
http://www.jeffphillips.org/gallery/WesternSky/aao
This sky of this photo matches the current sky color of flightgear perfectly.

But here is another real world photo showing a nice sunny day:
http://home.att.net/~thewrittenword/sky/street-031023-9.jpg
You can see, in this case, the current sky color of flightgear is completly 
wrong.

To see the difference on a flighgear screenshot 
i decided to take a screenshot 
of flightgear and change the color of the sky
on the half side of that screenshot with gimp.
For the new sky color i took exactly those sky color of the
real sky photo above. 
( This one: http://home.att.net/~thewrittenword/sky/street-031023-9.jpg )

And here is the result:
http://www.8ung.at/mars/images/old-vs-new-sky.png

The left side of the screenshots has the old color values,
the right side the new ones.
This example shows perfectly what i was trying to describe 
above.
The left side looks very rainy and the right side looks like
a beautiful sunny day.


After seeing the results in gimp i decided to
make a real test by editing the source code
of flightgear.

I opened the  /src/Time/light.cxx file with an editor
and changed the following entry:

const GLfloat base_sky_color[4] = { 0.39, 0.50, 0.74, 1.0 };
const GLfloat base_fog_color[4] = { 0.84, 0.87, 1.0,  1.0 };

with this one:
const GLfloat base_sky_color[4] = { 0.0, 0.37, 0.74, 1.0 };
const GLfloat base_fog_color[4] = { 0.84, 0.93, 1.0,  1.0 };

After that i recompiled flightgear.
And the result where these screenshots:
http://www.8ung.at/mars/images/sky/images.html

This is a very nice example:
http://www.8ung.at/mars/images/sky/fgfs-screen-019-new-sky.jpg


In my opinion the sky looks now much more beautiful
like it is on a really nice day.
And because the color matches the real sky color on a nice day
much better now i think flightgear should have a feature that
allows us to switch the color of the sky to the right color for
different weather and pollution conditions.
The old sky color for rainy days and the new one for sunny days.

This would allow us to simulate both weather conditions perfectly.


Just take a look at the difference yourself by changing
the light.cxx file like described above and recompile flightgear.

What is your opionion about this?


Best Regards,
 Oliver C.


BTW: 
Here are some more photos of the real sky:
http://home.att.net/~thewrittenword/sky/sky.html







_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to