Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sky atmosphere gets brighter when the sun is offscreen in HDR mode #8718

Closed
lilleyse opened this issue Apr 1, 2020 · 3 comments
Closed

Sky atmosphere gets brighter when the sun is offscreen in HDR mode #8718

lilleyse opened this issue Apr 1, 2020 · 3 comments

Comments

@lilleyse
Copy link
Contributor

lilleyse commented Apr 1, 2020

If you look carefully the sky atmosphere gets brighter when the sun is offscreen. I captured this gif on the globe-alpha branch where it's more noticeable.

sun-bug

Sandcastle

Here's the results of my investigation so far:

When the sun is onscreen the sky atmosphere gets rendered to the sun's post process framebuffer. It turns out the framebuffer uses 8-bit color always, even if HDR is enabled. I thought changing the pixel datatype would be enough to fix the problem but the sun post process just draws a black box (ignore the blue spheres). I didn't want to spend too much time investigating right now this but if anyone picks it up in the future here's my in-progress diff: sun.diff.txt.

sun-bug-1

@jjhembd
Copy link
Contributor

jjhembd commented Apr 13, 2023

@lilleyse I can't reproduce after #10063, although I'm not quite sure if I'm testing correctly. Are we ok to close this?

@lilleyse
Copy link
Contributor Author

It's still there, but more subtle since the atmosphere ring is smaller.

Also, I needed to update the sandcastle because it was using an outdated API. Here's a new sandcastle.

sun-globe-translucency.mp4

@lilleyse
Copy link
Contributor Author

This is also low priority, so I'm just going to close it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants