Skip to content

Conversation

@375gnu
Copy link
Collaborator

@375gnu 375gnu commented Dec 30, 2023

published for testing and getting response.

image

With atmospheres it looks… weird.

@Askaniy
Copy link
Contributor

Askaniy commented Dec 30, 2023

Is it just me, or is there a sprite (or something similar) in the center of the star that increases the brightness and causes some colors to overexpose?

@Askaniy
Copy link
Contributor

Askaniy commented Dec 30, 2023

I also think that atmospheres, as a workaround for the glow effect, should be removed

@375gnu
Copy link
Collaborator Author

375gnu commented Dec 30, 2023

Is it just me, or is there a sprite (or something similar) in the center of the star that increases the brightness and causes some colors to overexpose?

Yes, there is a big quad (sprite) if front of the Sun.

@375gnu
Copy link
Collaborator Author

375gnu commented Dec 30, 2023

That's how it looks with stars as scaled disks (in this mode the quad size is much smaller):
image

@sonarqubecloud
Copy link

@375gnu
Copy link
Collaborator Author

375gnu commented Dec 31, 2023

btw, in old HDR code atmosphere is disabled:

#ifndef USE_HDR
        Atmosphere atmosphere;

        // Use atmosphere effect to give stars a fuzzy fringe
        if (star.hasCorona() && rp.geometry == InvalidResource)
        {
            Color atmColor(color.red() * 0.5f, color.green() * 0.5f, color.blue() * 0.5f);
            atmosphere.height = radius * CoronaHeight;
            atmosphere.lowerColor = atmColor;
            atmosphere.upperColor = atmColor;
            atmosphere.skyColor = atmColor;

            rp.atmosphere = &atmosphere;
        }
        else
#endif
        rp.atmosphere = NULL;

@AstroChara
Copy link
Contributor

That's how it looks with stars as scaled disks (in this mode the quad size is much smaller):
image

What would this look like if used with a normal brightness star texture?

@375gnu
Copy link
Collaborator Author

375gnu commented Jan 1, 2024

What would this look like if used with a normal brightness star texture?

image

or even
image

@AstroChara
Copy link
Contributor

AstroChara commented Jan 1, 2024

What would this look like if used with a normal brightness star texture?

image

or even

image

Yup that looks lovely. Feels like we can actually use normal brightness textures in default now.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 9, 2024

@AstroChara
Copy link
Contributor

Looks like this is mostly done; I believe we mainly have to get new star textures to replace the current textures which have been darkened (and which have license issues)?

@375gnu
Copy link
Collaborator Author

375gnu commented Feb 9, 2025

Looks like this is mostly done; I believe we mainly have to get new star textures to replace the current textures which have been darkened (and which have license issues)?

if i remember correctly, yes, textures are main blocker


if (props.lightModel == LightingModel::StarModel)
{
source += "gl_FragColor.rgb = gl_FragColor.rgb - vec3(1.0 - NV) * vec3(0.56, 0.61, 0.72);\n";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be a good idea to write down how the coefficients were obtained.

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

Successfully merging this pull request may close these issues.

6 participants