Earth seasons add-on
Earth seasons add-on
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:
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:
- FarGetaNik
- Posts: 484
- Joined: 05.06.2012
- With us: 12 years 5 months
- Location: Germany
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
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.
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
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 use numbers to keep scripts simple, I'm too lazy to write 12 words .you could name the alternate textures "Janurary", "February", "March" ... instead of "month-01", "month-02" etc.
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.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?
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 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
I found two sources of sea ice data: Sea Ice Index and CryoSat.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.
Images from the first:
Image from the second:
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
- Posts: 484
- Joined: 05.06.2012
- With us: 12 years 5 months
- Location: Germany
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. 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.
- FarGetaNik
- Posts: 484
- Joined: 05.06.2012
- With us: 12 years 5 months
- Location: Germany
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:
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?
Earth seasons add-on
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):
- FarGetaNik
- Posts: 484
- Joined: 05.06.2012
- With us: 12 years 5 months
- Location: Germany
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:
The source files:
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.
The source files:
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
- Posts: 484
- Joined: 05.06.2012
- With us: 12 years 5 months
- Location: Germany
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.
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.
Image with sea ice as 0xfa:
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.
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.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.
Image with sea ice as 0xfa:
- FarGetaNik
- Posts: 484
- Joined: 05.06.2012
- With us: 12 years 5 months
- Location: Germany
- FarGetaNik
- Posts: 484
- Joined: 05.06.2012
- With us: 12 years 5 months
- Location: Germany
Virtual Textures are a nice touch, but only necessary at higher resolutions. The addon zip is missing a script file btw.
You might find this one interesting: I found a map of Earth's sea ice at 16k resolution! You find these thing only by accident it seems... not when actually searching for it.
http://www.shadedrelief.com/natural3/pages/extra.html
Terms of use also say public domain
You might find this one interesting: I found a map of Earth's sea ice at 16k resolution! You find these thing only by accident it seems... not when actually searching for it.
http://www.shadedrelief.com/natural3/pages/extra.html
Terms of use also say public domain
-
- Posts: 25
- Joined: 16.08.2017
- Age: 20
- With us: 7 years 3 months
Virtual Textures are a nice touch, but only necessary at higher resolutions.
Well, when I use non-VT I see a polar pinch effect which disappears converting the same texture to VT.
You might find this one interesting: I found a map of Earth's sea ice at 16k resolution!
I will use it to check the final result of adding noise/generation to the SIIDX. On that page there's also a watermask with full latitude coverage, this is really useful!