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

Airglow/atmospheric scattering at night #10

Open
mdkdy opened this issue Jun 20, 2017 · 4 comments
Open

Airglow/atmospheric scattering at night #10

mdkdy opened this issue Jun 20, 2017 · 4 comments

Comments

@mdkdy
Copy link

mdkdy commented Jun 20, 2017

Currently, the sky after sunset becomes completely dark. However, atmosphere is never completely dark
and during night, when rayleigh scattering stops dominating, some phenomena appear like airglow or moonlight scattering which gives tint of blue or green, of course very subtle when compared to rayleigh scattering during day.

Is it possible to conduct some research and add such experimental feature which would enrich the project and wouldn't hurt real time performance?

@ziab
Copy link

ziab commented Jun 20, 2017

Interesting, I wouldn't say it's completely dark. This is my attempt to use precomputed_atmospheric_scattering (ported to DirectX/HLSL):

The night sky
(it's better to open it in fullscreen)
The sun is opposite to the zenith point now. You can see that even at the top it has some bluish tint. However I wonder if presence of stars would affect significantly the sky color.

@mdkdy
Copy link
Author

mdkdy commented Jun 21, 2017

Do you use code based on demo? I increased exposure to 1000 and gamma to 2.5, but it doesn't look lik this.

@ziab
Copy link

ziab commented Jun 21, 2017

Well, it's not exactly the demo code that I'm using, as I mentioned, I had to change the CPU code so it works with DirectX, the GPU code is adjusted to be compatible with HLSL. Except that, it's the same implementation.

Did you try to play with AtmosphereParameters? I guess increasing top_radius might affect airglow in the night.

@mdkdy
Copy link
Author

mdkdy commented Jun 29, 2017

This parameter didn't affect night for me. I'd rather leave it as it is. I played with mie parameters to get some hazy summer skies.

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

No branches or pull requests

2 participants