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
Set_sky: Show stars (if enabled) at all times in "plain" and "skybox" modes (maybe optionally?) #9887
Comments
what about player:set_moon, set_sun, set_stars?
…On Sun, May 17, 2020 at 6:42 PM Paramat ***@***.***> wrote:
Using the new set_sky API, it is possible to create a 'space sky' that
uses the engine's sun, moon and stars. This can be done in "plain" sky mode
using a black plain colour, or in "skybox" sky mode using 6 black textures.
In these modes there is no horizon so sun, moon and stars are visible in
all directions.
However, when doing this, the stars are only visible when the sun is in
the lower half of the sky (what would normally be night):
[image: screenshot_20200517_021839]
<https://user-images.githubusercontent.com/3686677/82161695-c6708280-9896-11ea-9429-a33676c196cd.png>
^ Looking down
When the sun is in the upper half of the sky (what would normally be day),
the stars are not shown:
[image: screenshot_20200517_233517]
<https://user-images.githubusercontent.com/3686677/82161737-1e0eee00-9897-11ea-9f44-fc6c76c82abe.png>
^ Looking up
The stars are fading out as they would do in daytime "regular" sky.
My request:
In "plain" and "skybox" modes, show stars (if enabled) at all times, just
like the sun and moon are.
@Jordach <https://github.com/Jordach> perhaps you might be interested or
can give advice?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#9887>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFS4UYTFHFDFLHF6VVYL3S3RSBR63ANCNFSM4NDSVJSQ>
.
|
Aside from being an unannounced API break, this is also inflexible. |
jastevenson303, what about them? They cannot be used to workaround this problem. sfan5, The new set_sky API is very young and not fully stable yet anyway, one other part is likely to change. If we want to avoid changing packets, i suggest that constant stars is more desirable than daytime-fading stars in these 2 modes. I also suggest that those wanting a day-night cycle will usually use "regular" sky and its settable sky colours. As it is now, engine stars cannot be used for a space sky unless time is stopped at night time. Needs more input and consideration though. |
I do not know about the actual usecases, I am just just pointing out that the set_sky/set_stars API cannot just be broken. Sky color darkening is the only part that was marked as subject to change.
(There is no pressing need to avoid that.) |
Just add another parameter to enable/disable “all-day stars”. Both cases are useful. Then nothing has to be broken at all. |
I suspect this is best. |
New PR: #11663 |
Using the new set_sky API, it is possible to create a 'space sky' that uses the engine's sun, moon and stars. This can be done in "plain" sky mode using a black plain colour, or in "skybox" sky mode using 6 black textures. In these modes there is no horizon so sun, moon and stars are visible in all directions.
However, when doing this, the stars are only visible when the sun is in the lower half of the sky (what would normally be night):
^ Looking down
When the sun is in the upper half of the sky (what would normally be day), the stars are not shown:
^ Looking up
The stars are fading out as they would do in daytime "regular" sky.
My request:
In "plain" and "skybox" modes, show stars (if enabled) at all times, just like the sun and moon are.
@Jordach perhaps you might be interested or can give advice?
The text was updated successfully, but these errors were encountered: