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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...