Earth seasons add-on

Description: The home for finished/released addons.

catwrings
Topic author
Avatar
catwrings
Topic author
Posts: 7
With us: 6 months 1 day

#1by catwrings » 15.07.2017, 20:54

I made an add-on that switches Earth's texture as time passes to simulate seasonal changes. How to do this had already been described in https://celestiaproject.net/forum/viewtopic.php?f=4&t=15909, but I did not found a packaged add-on. This add-on works standalone with a script or alongside lua edu tools with a checkbox.

It has some defects, I took the maps from BMNG but they miss the polar ice, I do not know were to find a high resolution seasonal polar cap. Also, it seems Antarctica is the same for all months. If someone can give me a hint on these, she is welcome! Also, I would like to have feedback about if this is already polished enough to be sent to the Motherlode.

I attach a version with 2k maps:
seasons-2017-07-15.zip
(7.33 MiB) Downloaded 16 times

FarGetaNik M
Avatar
FarGetaNik M
Posts: 293
With us: 5 years 1 month
Location: Germany

#2by FarGetaNik » 16.07.2017, 11:21

At first look, your addon is good quality and the script working when executed properly.

There are a few minor nitpick I have:
- you could name the alternate textures "Janurary", "February", "March" ... instead of "month-01", "month-02" etc.
- there seem to be a few useless files in the zip and a doublicate for MACOSX. Since I don't use MAC I wonder if that is necessary?
- personally I use different specular parameters to make Earth look more realistic instead of the default Celestia ones, but I guess this is not directly related to your addon :wink:

Oh and about the BMNG textures, I assume you know the place to download them. I only could find this version with polar sea ice But I don't like it very much. I discussed this matter with scalbers on this topic. Antartica is the same all months because there is only a short window for a satellite to map it during polar day and this data was probably just copied to fill the gaps during southern winter.

catwrings
Topic author
Avatar
catwrings
Topic author
Posts: 7
With us: 6 months 1 day

#3by catwrings » 16.07.2017, 21:55

you could name the alternate textures "Janurary", "February", "March" ... instead of "month-01", "month-02" etc.
I use numbers to keep scripts simple, I'm too lazy to write 12 words :smile:.

there seem to be a few useless files in the zip and a doublicate for MACOSX. Since I don't use MAC I wonder if that is necessary?
The extra files are completely useless, on a Mac they are merged/hidden automatically. Next time I will use a non-Mac utility to zip.

personally I use different specular parameters to make Earth look more realistic instead of the default Celestia ones, but I guess this is not directly related to your addon :wink:
If you have opinions on what the specular parameters should be, please tell me and I will apply them, you are surely more authoritative than me on that. Other question: I use a specular map that is reflective on water; should there be some reflection also on ice?

Oh and about the BMNG textures, I assume you know the place to download them. I only could find this version with polar sea ice But I don't like it very much. I discussed this matter with scalbers on this topic. Antartica is the same all months because there is only a short window for a satellite to map it during polar day and this data was probably just copied to fill the gaps during southern winter.
I found two sources of sea ice data: Sea Ice Index and CryoSat.
Images from the first:
north-daily-extent-geotiff.jpg
north-daily-extent-geotiff.jpg (23.39 KiB) Viewed 89 times
south-daily-geotiff-extent.jpg
south-daily-geotiff-extent.jpg (12.74 KiB) Viewed 89 times

Image from the second:
thk_2014_Autumn.png

The first has daily and monthly data for decades at low resolution, the second has recent years autumn/spring maps at 1 km resolution.
I plan to use the low spatial resolution data to generate a sea ice texture with an ad hoc program; the texture should change depending on the concentration somewhat, but for a first try a plain white should be fine.

FarGetaNik M
Avatar
FarGetaNik M
Posts: 293
With us: 5 years 1 month
Location: Germany

#4by FarGetaNik » 16.07.2017, 22:10

catwrings wrote:If you have opinions on what the specular parameters should be, please tell me and I will apply them, you are surely more authoritative than me on that. Other question: I use a specular map that is reflective on water; should there be some reflection also on ice?

Personally, I use these parameters

Code: Select all

   SpecularColor   [ 0.52 0.46 0.37 ]
   SpecularPower   120

but these are subject to constant change on my installation. I noticed it because I think the default parameters are not very realistic and quite different from these. I won't say I'm more "authoriative" in that matter, I just find Earth looks more realistic that way :) Celestia doesn't have accurate specular reflection anyways. :sad: Specular reflection also occurs on ice, but maybe not with the same specular parameters compared to water. I think it comes down to personal preference and specular data you have access to.

catwrings wrote:The first has daily and monthly data for decades at low resolution, the second has recent years autumn/spring maps at 1 km resolution.
I plan to use the low spatial resolution data to generate a sea ice texture with an ad hoc program; the texture should change depending on the concentration somewhat, but for a first try a plain white should be fine.

This data is probably more accurate, but you have to try somethng so it looks consistent with an high resolution texture.

catwrings
Topic author
Avatar
catwrings
Topic author
Posts: 7
With us: 6 months 1 day

#5by catwrings » 16.07.2017, 22:32

SpecularPower 120
Do you mean 12.0? With 120 I get a herd of white speckles.

FarGetaNik M
Avatar
FarGetaNik M
Posts: 293
With us: 5 years 1 month
Location: Germany

#6by FarGetaNik » 17.07.2017, 09:22

catwrings wrote:Do you mean 12.0? With 120 I get a herd of white speckles.

No I seriously have it at 120. It looks like this on my installation:

Earth-specular.jpg


When comparing it to let's say DISCOVR images, the specular spot is rather small, hence I use this high specular power. Did you also use a darker specular color? If it still looks odd, use values just a bit higher to find the limit when it gets glitched, like 50, 75, 100... could you show how these speckles look?

catwrings
Topic author
Avatar
catwrings
Topic author
Posts: 7
With us: 6 months 1 day

#7by catwrings » 17.07.2017, 10:14

Ok, I found the problem, it is my dds normal map, with the same normal map in png the speckles go away. Anyway, here the speckles (open the image to see them):
Schermata 2017-07-17 alle 11.42.31.jpg

FarGetaNik M
Avatar
FarGetaNik M
Posts: 293
With us: 5 years 1 month
Location: Germany

#8by FarGetaNik » 17.07.2017, 10:21

OK it should have nothing to do with the specularity then, supposing you use a spec map that is black where any topography shows up. But I also get some weird incompatibilities with different texture types sometimes...

catwrings
Topic author
Avatar
catwrings
Topic author
Posts: 7
With us: 6 months 1 day

#9by catwrings » 18.07.2017, 21:34

I made some progress. In the SII maps I consider coastline pixels as ice if they are near an ice pixel (also along diagonal). Then I change projection and increase image size with a smooth resampling. Finally, I use altimetry data to cut ice along the coasts. Here the result for January 2004 at 4k; green is ice with height = 0 and red is ice with height != 0:
bmng-ice.jpg

The source files:
icen.png
ices.png
ices.png (18.57 KiB) Viewed 41 times

Problems:
1) As can be seen in Greenland, when there are deep fiords, the original low-res map does not see them so they remain without ice when probably they are full.
2) The high difference in resolution + change of projection make the smooth resampling insufficient, in the sea-ice border the pixels are visible.
3) There seem to be a misalignment between GTOPO30 and BMNG at high latitudes.
Of course these could be adjusted by hand on a single map but the intent is to have it automatic to process all data in the SII.

FarGetaNik M
Avatar
FarGetaNik M
Posts: 293
With us: 5 years 1 month
Location: Germany

#10by FarGetaNik » Yesterday, 06:18

Honestly this does look quite nice already. I see the main problem is the low resolution. I think it wouldn't be that hard to paint on the map to make the boarders sharper (or noise to make it look more natural), just use polar projection for that process to save some work. Maybe you can use a specular map as a mask to align the sea ice better with the continents? Of course there will still be some missalignement, but hopefully an improvement.

catwrings
Topic author
Avatar
catwrings
Topic author
Posts: 7
With us: 6 months 1 day

#11by catwrings » Yesterday, 17:35

Progress:
a) Problem (1) solved by expanding in a proper way the "ice contagion".
b) Problem (3) solved by using BMNG above 78.4° and below -65.2° to cut the ice along the coast. There are still some artifacts but they can be reduced by calibrating the response function.

Maybe you can use a specular map as a mask to align the sea ice better with the continents? Of course there will still be some missalignement, but hopefully an improvement.
The water mask agreed with altimetry so there still was a misalignment, which I solved with (b), but finally I switched using the water mask anyway because it was simpler to implement antialiasing along the coast.

Image with sea ice as 0xfa:
bmng-ice.jpg


Return to “Add-on releases”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest