-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Sun Size #1046
Conversation
I believe you if you say it's right now, but this looks ridiculously small. |
The code is fine. JSHint and tests pass. I agree that this looks lame compared to before. STK makes the sun look much bigger by adding a large glow, and Google Earth has a huge sun. There are several directions to improve this, e.g., do something similar to STK, scale up the sun by default with an option to change it, etc. Do what you think is best. Also, when we redo the atmosphere (soonish), the sun may come for free for ground views, but that doesn't help us here. |
I'm still experimenting with this, maybe I can get a better look for it. |
@emackey any update? |
Not yet, sorry, other projects calling me. Soon. |
I just showed Dan that the Sun's size with |
@emackey I changed the way the sun is sized again. You said you developed a few new ways to test it. Could you run through them. (The glow is temporarily broken). |
The new sun size is an exact match to STK, perfect! For those following along, my testing methods are:
|
Conflicts: Source/Shaders/Builtin/Constants.glsl
I tweaked the strength of the "burst" and recalibrated the default to 1.0. Size is still correct. This is ready for master. |
Just found an odd visual artifact. On my widescreen monitor, with Chrome maximized, the Sun is larger out near the edge. This is perhaps expected due to perspective, but in this case there's a specific "jump" in size as the sun moves in and out of the zone. Could be blooming turning on and off, maybe. |
This is ready. The size is right wherever it is on the screen and there is a property that can enable/disable bloom. |
scene._sunBloom = scene.sunBloom; | ||
} else if (!defined(scene.sun) && defined(scene._sunPostProcess)) { | ||
scene._sunPostProcess = scene._sunPostProcess.destroy(); | ||
scene._sunBloom = undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's cleaner to keep this as a boolean, i.e., false
. I suspect we do that elsewhere.
Tests and examples look good. This is ready pending my minor comments and an update to CHANGES.md. |
@pjcozzi This is ready for another review. |
Looks good. |
Fixes #769. Doesn't turn the sun glow off but the size is correct.