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

Sunrise not working properly #1024

Open
royfalk opened this issue Feb 7, 2025 · 4 comments
Open

Sunrise not working properly #1024

royfalk opened this issue Feb 7, 2025 · 4 comments
Assignees
Labels

Comments

@royfalk
Copy link
Contributor

royfalk commented Feb 7, 2025

When orbiting Atlantis in 0.8, sunrise has a yellow/orange tint to it.
This is now gone.

@evertvorster
Copy link
Contributor

Thanks for putting this up here. I checked the latest commit from 0.8.x, and it was gone there too.
I'm literally hunting this sunset now, just to have a screenshot. There is nothing on Google. :(

@royfalk
Copy link
Contributor Author

royfalk commented Feb 8, 2025

To be clear, it is in 0.8.0. You can stop now. I have my brackets and know what I'm looking for. I'm pretty sure I even know what caused it. I'll get to it tomorrow probably.

@royfalk royfalk assigned royfalk and stephengtuggy and unassigned royfalk Feb 8, 2025
@royfalk
Copy link
Contributor Author

royfalk commented Feb 8, 2025

Based on testing, this is caused by 63a5718.
How to test:

  1. New game and launch.
  2. Press 2 to look left.
  3. Press \ to go full speed.
  4. Turn left until you see Atlantis well.
  5. Press shift-a to manual FTL flight.
  6. Keep turning left to keep Atlantis in your view. You should see an orange tint in sunrise without the commit and no tint with.

Assigned to @stephengtuggy, as it's his commit and I know nothing of fragment programming.

I've also noticed the following in my stdout:

0:26(25): error: no function with name 'textureLod'
0:26(9): error: no matching function for call to `expandPrecision(error)'; candidates are:
0:26(9): error:    float expandPrecision(vec4)
0:26(9): error: operands to arithmetic operators must be numeric
0:26(2): error: `return' with wrong type error, in function `cosAngleToDepth' returning float
Fragment Program Error: Failed to compile planet/atmo_ps2.0
Compilation of technique earth failed... trying 5_ps3.0/earth
Cause: Error compiling program vp:"planet/atmo_vs1.1.nonvar" fp:"planet/atmo_ps2.0"
Compilation of technique 5_ps3.0/earth failed... trying 4_ps2.0/earth
Cause: Error compiling program vp:"planet/atmo_vs1.1.nonvar" fp:"planet/atmo_ps2.0"
Compilation of technique 4_ps2.0/earth failed... trying 3_arbfp/earth
Cause: Error compiling program vp:"planet/atmo_vs1.1.nonvar" fp:"planet/atmo_ps2.0"
0:26(25): error: no function with name 'textureLod'
0:26(9): error: no matching function for call to `expandPrecision(error)'; candidates are:
0:26(9): error:    float expandPrecision(vec4)
0:26(9): error: operands to arithmetic operators must be numeric
0:26(2): error: `return' with wrong type error, in function `cosAngleToDepth' returning float
Fragment Program Error: Failed to compile planet/atmo_arbfp1
Compilation of technique 3_arbfp/earth failed... trying 2_ps1.4/earth
Cause: Error compiling program vp:"planet/atmo_vs1.1.nonvar" fp:"planet/atmo_arbfp1"
0:75(9): error: no matching function for call to `max(int, float)'; candidates are:
-----------------------------------------------------------------------------------------
0:75(9): error: no matching function for call to `max(int, float)'; candidates are:
0:75(9): error:    float max(float, float)
0:75(9): error:    vec2 max(vec2, float)
0:75(9): error:    vec3 max(vec3, float)
0:75(9): error:    vec4 max(vec4, float)
0:75(9): error:    vec2 max(vec2, vec2)
0:75(9): error:    vec3 max(vec3, vec3)
0:75(9): error:    vec4 max(vec4, vec4)
0:75(9): error:    int max(int, int)
0:75(9): error:    ivec2 max(ivec2, int)
0:75(9): error:    ivec3 max(ivec3, int)
0:75(9): error:    ivec4 max(ivec4, int)
0:75(9): error:    ivec2 max(ivec2, ivec2)
0:75(9): error:    ivec3 max(ivec3, ivec3)
0:75(9): error:    ivec4 max(ivec4, ivec4)
0:75(2): error: `return' with wrong type error, in function `GLOSS_power' returning float
0:197(14): warning: `mtl_gloss' used uninitialized
Fragment Program Error: Failed to compile fireglass
Compilation of technique fireglass failed... trying default
Cause: Error compiling program vp:"fireglass" fp:"fireglass"

The code above the line is fixed by the revert. The one below isn't.
I can't evaluate if the bottom code is indicative of some underlying issue.
i.e the commit was fine back then, but something else broke it and the code below.

@stephengtuggy
Copy link
Contributor

Well, crap. Thanks for isolating the cause of the issue, @royfalk . I'll see when I can get to this.

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

No branches or pull requests

3 participants