Sun Disappears With Atmosphere

Why does the sun just vanish when ClockTime or TimeOfDay is set to 18 or 6?

When there’s an atmosphere object, the sun just disappears and reappears and it looks terrible with my game’s Day/Night Cycle.

I decided to test it out to see if the issue was caused by other settings, but I discovered only atmosphere has this issue.
This is the expected behavior (I had removed atmosphere to get it working):

This is what happens when atmosphere is enabled:

Here’s a video of what it looks like in real time:

I’m aware that the global light source switches from sun to moon at clock time 18, but the moon is fine and works like normal, only the sun vanishes and reappears when reaching clock time 18 and 6.

I’ve looked around bug reports and I haven’t seen this issue when searching broad keywords like sun, 18, clocktime, and timeofday. I’d have posted a bug report myself but I’m not ranked up to a devforum regular yet.

The steps to reproduce it are simple, you just load up literally any place with an atmosphere object in lighting and set ClockTime to 18. My graphics card is an AMD Radeon RX6700M and my studio rendering graphics mode is Direct3D11. Not sure if that would help but it’s worth a shot.

Any help would be greatly appreciated, thanks in advance.

5 Likes

have u tried reducing the density of somesort?

1 Like

Unfortunately density and offset have no effect, just the atmosphere object itself.

1 Like

Im sure it wouldnt make such a substantial difference if it dissapears

1 Like

It looks very bad and it’s really jarring seeing the sun vanish, especially since the sun in my project is a large stylized solar eclipse.

1 Like

maybe use 2 suns, a “real” sun and a “fake” sun.

the real sun could be the default sun that’s being used. making it invisible would probably help.
the fake sun, on the other hand, could be a spherical part or a flat image. it could be client-sided and you could constantly adjust its position to match that of the real sun.

then, once it’s over the horizon, (check with spatial queries and hitboxes) tween the transparency of the image to 1, and tween it back to 0 once it hits the horizon again.

2 Likes

I have the same issue. It goes disappear especially on setting Clock time to 17.9 ~ 18

2 Likes

This problem is related to brightness, if your brightness is set to 0 the sun will not appear. Odd but it is what it is

1 Like

The brightness is not 0, if it was zero then i wouldn’t even have this issue since there would be no sun

1 Like

if you delete the Sky object, the sun reappears. I’m assuming you still want a custom skybox so this isn’t really a solution.

Also, I noticed this effect doesn’t happen if you mess with certain Geographic latitudes. I am unsure of the exact relation between the geographic latitude and the time of day, but I believe there is a certain time frame for every Geographic Latitude at which the sun is gone. (given you have both a Sky and Atmosphere instance within your Lighting)

1 Like

I tested it out and it has very interesting behavior, however it still doesn’t solve the issue unfortunately. At certain geographic latitudes, the sun is only visible at night instead of day. The only way to get this fixed is to submit a bug report, which I’m unable to do for whatever reason

2 Likes

This issue is still happening for me

Having this issue also, has anyone figured out a way around it?
MedaleV 10|09|2024 |

1 Like

if you can find somebody on the forum who can make bug reports, please have them do so. otherwise no solutions other than “make a fake sun” have been found

1 Like

Turn the light brightness from 0 to anything. It will make the sun come back. Just had this issue as well.

1 Like

how would one make this?
im facing the same issue as OP

I can, I’ll make a bug report on this as soon as I can (the issue still persists to this day!!)

Thanks a ton! Let me know any updates!