Global Clouds Ground Contribution is Wrong


The screenshots shows spherical debug clouds. The red light is the ground contribution. The camera is currently somewhere in the lower half of the planet.
The Ground Contribution should point towards the planet center. As you can see in the screenshot the bright red ground light color it is pointing downwards instead.

I assume this is an optimization since this would be unnoticable when the camera is somewhat close to the north pole. It would be very nice, if we could have a variant that works globally too.

Hi,
Ah interesting, thanks! Most of the features are tested at the top of the planet right now where most games are so I guess we missed that one.

This is something that could be fixed in an upcoming release, I am adding a note to check that.

1 Like

The fix has been applied and will be in 5.2.
Thanks again!

2 Likes

Thank you, that’s great. What is the best way to report bugs so you notice them?

I found a few more errors. For example, cloud atmospheric shadows flickering as you move away from the North Pole, or transparent clouds breaking the atmospheric contribution for distant clouds

I will work with the cloud/atmosphere for the foreseeable future and build a global weather system for a flight simulation. Maybe we could collaborate on the cloud improvements?

Issues can be reported on UDN if you have access otherwise here.

Cloud shadow map: that has been only designed the top of the planet also.

Weird blue color on cloud: when we sample the aerial perspective on cloud, we only do that once instead of per sample for the sake of performance. It is done using a single distance according to each samples and their coverage. It can cause such visual discrepancy, but it is the first time I see it that strong. We could add an option to evaluate aerial perspective per sample but that is going to cost more.

I take notes of those issues too.

1 Like

Thank you, I will check with the team to see if we have access.

When evaluating the aerial perspective per sample, it is assumed that there may be several layers of transparent clouds before the last sample is hit.

An intermediate setting could be to evaluate only the first and last samples, while interpolating for the samples in between.
To ensure that the camera never sees clouds behind multiple layers of translucent clouds that are far appart from each other. One could simply make the rain or fog denser as the camera distance increases. I doubt anyone would notice the difference, and the blue glow should still disappear.