benih, could you give me the latitude and longitude of the lake you are testing?
I've now added a lakes and rivers layer which I would like to test before committing the result.
Erik
Thorsten wrote in Tue May 04, 2021 10:33 am:Now consider areas in the world where we usually don't make SSOTM-Type shots - lakes are blocky, triangular or rectangular chunks, rivers are not smooth but straight line segments zig-zaging through the area. Now imagine these structures illustrated with high contrast against the surrounding landscape - we'd literally point the viewer right at the flaws of the terrain resolution.
So here you have in a nutshell why lakes are greenish in spite of the fact that for a particular lake blue might actually work better as base color.
erik wrote in Mon May 03, 2021 2:03 pm:As for floor colour (water bed colour), some of the reddish colours like in Australia might not be appropriate for rivers or even small water bodies. The yellows might only be valid for some volcanic type locations, or shallow sandy water. The whites might be ok for sandy coastal areas / islands, but lakes high in mountains in the blue marble map have snow - as might landmasses close to the poles.
The way the shader works is that it blends the RGB colors if the depth is shallow enough. This requires some thinking for inland water bodies but I think i got it quite acceptable with the latest update.
erik wrote in Mon May 03, 2021 2:03 pm:I guess some approximation of depth can be extracted if "blueish" hues are identified in the shader - for the sea and maybe some rivers/lakes. Large inland waterbodies that don't appear blueish will get a default shallow depth, as will waterbodies that are too small to register.
After some experimenting it turns out the red channel gives the best result, mixed with a small bit of the green channel.
benih wrote in Mon May 03, 2021 7:32 pm:Well, the ortophoto at least comes close to the color of the lake 2/3 of the time when i look out my window. (1)
When it does not, it’s a way darker version of the blueish in the first image.
benih wrote in Mon May 03, 2021 3:57 pm:Hm, maybe a tad too much blue now
The depicted lake is about 40 meters deep on average.
wlbragg wrote in Thu May 06, 2021 2:32 am:[..]All I did was replace my ocean depth with the new one. [..]
erik wrote in Fri May 07, 2021 2:33 pm:I've now split up the water depth texture (gray-scale) and the water color texture (rgb) in such a way that it does not take up more video memory but does result in a disk space reduction to about 10% of the original. And I think I'm quite happy with the result.
Edit: I'm not sure where /environment/sea/color_r , g, and b comes from
vnts wrote in Fri May 07, 2021 4:28 pm:I added a tweak to the effect allowing a floor colour and depth override (zip of v1).
erik wrote in Sat May 08, 2021 8:48 am:Update: It looks to me you did not use the latest code to update which causes globe_colors.jpg not being used.
erik wrote in Sat May 08, 2021 8:48 am:vnts wrote in Fri May 07, 2021 4:28 pm:I added a tweak to the effect allowing a floor colour and depth override (zip of v1).
This might look nice for inland waters but it destroys the ocean water color effects around TNCM.
erik wrote in Sat May 08, 2021 8:48 am:In the future I also want to experiment with blending Blue Marble ground colors with texture colors at least for areas like desert.
Users browsing this forum: No registered users and 13 guests