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

Set_sky: Show stars (if enabled) at all times in "plain" and "skybox" modes (maybe optionally?) #9887

Closed
paramat opened this issue May 17, 2020 · 7 comments · Fixed by #11663
Labels
@ Client / Audiovisuals Request / Suggestion The issue makes a suggestion for something that should be done but isn't a new feature. @ Script API

Comments

@paramat
Copy link
Contributor

paramat commented May 17, 2020

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):

screenshot_20200517_021839

^ Looking down

When the sun is in the upper half of the sky (what would normally be day), the stars are not shown:

screenshot_20200517_233517

^ 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?

@paramat paramat added Bug Issues that were confirmed to be a bug @ Script API @ Client / Audiovisuals Request / Suggestion The issue makes a suggestion for something that should be done but isn't a new feature. labels May 17, 2020
@ghost
Copy link

ghost commented May 18, 2020 via email

@sfan5 sfan5 removed the Bug Issues that were confirmed to be a bug label May 18, 2020
@sfan5
Copy link
Member

sfan5 commented May 18, 2020

In "plain" and "skybox" modes, show stars (if enabled) at all times

Aside from being an unannounced API break, this is also inflexible.
It would be much better if set_stars allowed to specify if stars should be visible at day (or perhaps even the time range?).

@paramat paramat changed the title Set_sky: Show stars (if enabled) at all times in "plain" and "skybox" modes Set_sky: Show stars (if enabled) at all times in "plain" and "skybox" modes (maybe optionally?) May 18, 2020
@paramat
Copy link
Contributor Author

paramat commented May 18, 2020

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.
In a way i do not consider this a 'break', more a 'fix', because when using a "plain" or "skybox" sky, you would usually not want stars to fade away for half the time, because 'daytime' has little meaning in these modes (because the sky does not change appearance in 'daytime').
However, i can imagine a minority of uses would prefer star fadeout, which means this being optional, which would mean a packet change.

If we want to avoid changing packets, i suggest that constant stars is more desirable than daytime-fading stars in these 2 modes.
If a day-night cycle is wanted in "plain" or "skybox" modes, the sky colour/appearance would have to be changed by mod code at dawn and sunset, so star brightness could also be changed by mod code at those times. So it seems no functionality is lost with my 'no-option' suggestion.

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.

@sfan5
Copy link
Member

sfan5 commented May 18, 2020

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.

If we want to avoid changing packets

(There is no pressing need to avoid that.)

@Wuzzy2
Copy link
Contributor

Wuzzy2 commented May 18, 2020

Just add another parameter to enable/disable “all-day stars”. Both cases are useful.
Same for “stars everywhere” vs “stars only above the horizon”.

Then nothing has to be broken at all.

@paramat
Copy link
Contributor Author

paramat commented May 26, 2020

Just add another parameter to enable/disable “all-day stars”. Both cases are useful.

I suspect this is best.

@Wuzzy2
Copy link
Contributor

Wuzzy2 commented Sep 29, 2021

New PR: #11663

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@ Client / Audiovisuals Request / Suggestion The issue makes a suggestion for something that should be done but isn't a new feature. @ Script API
Projects
None yet
3 participants