Jump to content

[FIXED] Water Redness


gameboy
 Share

Recommended Posts

@Angen  My friend, I may have played a little joke with you before, but now you will not see this problem appear.

I compiled the latest 0 A.D. and I'll upload it here later, so you can download it and test it, and it won't cause any more refraction problems on the water.

 

Edited by gameboy
  • Haha 2
Link to comment
Share on other sites

@wraitii  I tested the latest SVN22332, and that warning message still appears, as long as you choose the option of water surface refraction in the settings. When I restart the computer and start the game again, this warning will appear in the main interface of the game.    WARNING: SDL_SetWindowGammaRamp failed

Link to comment
Share on other sites

@gameboy Are you sure that you aren't using any mods? It certainly looks like you are, as nobody else is getting these gamma ramps error (from what we can tell).

 

@Angen Any chance you could check if this redness happened before the rP22297 commit? I think they should.

  • Like 1
Link to comment
Share on other sites

9 minutes ago, gameboy said:

I'm using the latest graphics driver.

Are you able to reproduce the issue each time (each run)?

Also you could apply the following patch and compile the game:

diff --git a/source/ps/VideoMode.cpp b/source/ps/VideoMode.cpp
index 5cca5fe0d9..9d426f7690 100644
--- a/source/ps/VideoMode.cpp
+++ b/source/ps/VideoMode.cpp
@@ -246,7 +246,7 @@ bool CVideoMode::InitSDL()
        u16 ramp[256];
        SDL_CalculateGammaRamp(g_Gamma, ramp);
        if (SDL_SetWindowGammaRamp(m_Window, ramp, ramp, ramp) < 0)
-               LOGWARNING("SDL_SetWindowGammaRamp failed");
+               LOGWARNING("SDL_SetWindowGammaRamp failed: %s", SDL_GetError());
 #endif
 
        m_IsInitialised = true;

And then post the output of the warning here.

Link to comment
Share on other sites

3 hours ago, Angen said:

@wraitii good thinking, rP22297 just makes it more visible, it exists before that commit.

Is the "more visible" still in effect after the fixing commit? I think what you're running into is the water scissoring code being broken, something which I've always felt was beyond me to fix (it's geometry and I suck at geometry).

Link to comment
Share on other sites

Thank you for report. This is very strange behaviour. It is again refraction problem. It looks like very specific by angle. Last 3 I can reproduce without problem. First is a bit hard. One has to go with angle under water and then come back. My guess is that something is not cleared at correct way.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...