Author Topic: Gamma adjustment and black screen  (Read 639 times)

Antediluvian

  • Nameless
  • *
  • Posts: 50
  • Karma: 0
Gamma adjustment and black screen
« on: Apr 17, 2018; 03:36 PM »
Greetings!

Does anyone know a workaround for gamma adjustment leading to black screen?

Note: it only occurs in windowed mode not depending on resolution, and it's not related to mods, as it happens on base version. Fullscreen is not an option -- I combine HGL with streams in a corner of the screen.

Morphy

  • Named
  • **
  • Posts: 204
  • Karma: 3
Re: Gamma adjustment and black screen
« Reply #1 on: Apr 17, 2018; 06:26 PM »
Greetings!

Does anyone know a workaround for gamma adjustment leading to black screen?

Note: it only occurs in windowed mode not depending on resolution, and it's not related to mods, as it happens on base version. Fullscreen is not an option -- I combine HGL with streams in a corner of the screen.

The answer might be complicated - some systems use hardware gamma and others implement it in software... either might be interfering with HGL's gamma settings.

Suggestion:

Set the HGL gamma to default and install SweetFX into HGL's folder - then use Sweet's gamma, tone, vibrance, etc settings to get it exactly as you want it.

Unpack this to your executable folder (mine is "F:\Hellgate Revival\SP_x64")

you should see it like this after:

Quote
Directory of F:\Hellgate Revival\SP_x64

17/04/2018  05:22 PM    <DIR>          .
17/04/2018  05:22 PM    <DIR>          ..
09/05/2015  02:26 PM           273,408 binkw64.dll
09/05/2015  02:26 PM           740,352 dpvs.dll
07/11/2015  11:59 AM           603,648 dxgi.dll
15/06/2017  11:41 PM               211 dxgi.ini
16/04/2018  09:26 PM             8,253 dxgi.log
09/05/2015  02:26 PM         1,313,792 fmodex64.dll
09/05/2015  02:26 PM           774,144 granny2_x64.dll
09/05/2015  02:26 PM        10,053,736 hellgate_sp_dx10_x64.exe
26/04/2008  10:49 AM         2,509,824 hellgate_sp_dx10_x86.exe
09/05/2015  02:26 PM        10,036,528 hellgate_sp_dx9_x64.exe
26/04/2008  11:03 AM         2,504,192 hellgate_sp_dx9_x86.exe
09/05/2015  02:26 PM           597,504 mss64.dll
19/04/2015  07:45 PM                21 ReShade.fx
03/06/2015  07:52 PM            10,514 Sweet.fx
16/04/2018  05:18 PM    <DIR>          SweetFX
              16 File(s)     37,703,415 bytes
               3 Dir(s)  174,782,029,824 bytes free

Do NOT have the "sweet" folder there, unpack the rar file to that executable folder  and not into its own sub-folder.

SWEET RAR - http://s000.tinyupload.com/index.php?file_id=08184629817666256051

Adjust the settings:

open the file "F:\Hellgate Revival\SP_x64\SweetFX\SweetFX_settings.txt" in notepad.  Manually find the right spots (up the top, where you have a "0" is disabled, a "1" is enabled - I have vibrance enabled, for e.g, so scroll down to the main vibrance section and change the numbers there

All manual, sorry, no GUI for it.

You can do this while HGL is running if you want - when you save the file SweetFX recompiles all the effects on-the-fly and you see the changes almost instantly.

« Last Edit: Apr 17, 2018; 06:29 PM by Morphy »

Antediluvian

  • Nameless
  • *
  • Posts: 50
  • Karma: 0
Re: Gamma adjustment and black screen
« Reply #2 on: Apr 17, 2018; 09:27 PM »
I do use two versions of "settings.xml" file now for fullscreen and windowed mode, so if SweetFX works with the same file, it won't be of any use – the game shows black already on launch, in intro cutscenes.

Morphy

  • Named
  • **
  • Posts: 204
  • Karma: 3
Re: Gamma adjustment and black screen
« Reply #3 on: Apr 17, 2018; 11:08 PM »
I do use two versions of "settings.xml" file now for fullscreen and windowed mode, so if SweetFX works with the same file, it won't be of any use – the game shows black already on launch, in intro cutscenes.

No, Sw2eetFX is a custom injection into the directX pipeline - it works right from the moment you start the game.

It won't fix errors - so if the blank bit is a mistake then it'll not help - but then you can just delete my files i9f you can't use it.

I also sometimes get a blank start up screen - usually with Revival or LostLondon, not Nagahaku.
Just press escape once then enter about three times and wait about 5 seco9nds for the character selection window to open.

(If your problem is the same as I get sometimes)

But if you can see anything but it's uncorrectable dark, then SweetFX will help.

Antediluvian

  • Nameless
  • *
  • Posts: 50
  • Karma: 0
Re: Gamma adjustment and black screen
« Reply #4 on: Apr 18, 2018; 11:00 PM »
Enabled "lift gamma gain" and set all control numbers to "2.000", but there's barely any difference with the base image.

Black screen happens stabily when the game is launched with adjusted gamma in windowed mode. Seems to be version bug…

Do you know any other ways of imitating higher brightness level? (LCD brightness is already at max.)

Morphy

  • Named
  • **
  • Posts: 204
  • Karma: 3
Re: Gamma adjustment and black screen
« Reply #5 on: Apr 19, 2018; 12:29 AM »
Enabled "lift gamma gain" and set all control numbers to "2.000", but there's barely any difference with the base image.

Black screen happens stabily when the game is launched with adjusted gamma in windowed mode. Seems to be version bug…

Do you know any other ways of imitating higher brightness level? (LCD brightness is already at max.)

The only other thing to check is your graphics driver  - does it have gamma controls?

I get good results with SweetFX.

Try this section too: (don't forget to set ToneMap to "1")

Quote
   /*-----------------------------------------------------------.
  /                        Tonemap settings                     /
  '-----------------------------------------------------------*/
#define Gamma                  0.6600        // [0.000 to 2.000] Adjust midtones. 1.000 is neutral. This setting does exactly the same as the one in Lift Gamma Gain, only with less control.

#define Exposure               0.000        // [-1.000 to 1.000] Adjust exposure

#define Saturation             0.500        // [-1.000 to 1.000] Adjust saturation

#define Bleach                 0.000        // [0.000 to 1.000] Brightens the shadows and fades the colors

#define Defog                  0.000        // [0.000 to 1.000] How much of the color tint to remove
#define FogColor               float3(0.00, 0.00, 2.55) // [0.00 to 2.55, 0.00 to 2.55, 0.00 to 2.55] What color to remove - default is blue

Note GAMMA there - lower is brighter, the opposite of the lift gain
Also try setting the exposure to 0.8

Bleach isn't much use, it fade too much.

Antediluvian

  • Nameless
  • *
  • Posts: 50
  • Karma: 0
Re: Gamma adjustment and black screen
« Reply #6 on: Apr 19, 2018; 04:29 PM »
Tried. See the results – the change is subtle.

Morphy

  • Named
  • **
  • Posts: 204
  • Karma: 3
Re: Gamma adjustment and black screen
« Reply #7 on: Apr 19, 2018; 10:47 PM »
That IS weird, really...  I'm out of answers now, sorry....  more clued up HGL people need to step in.

Maybe someone who knows the deeper workings might help?

Sorry...

Antediluvian

  • Nameless
  • *
  • Posts: 50
  • Karma: 0
Re: Gamma adjustment and black screen
« Reply #8 on: Apr 20, 2018; 05:44 PM »
Well, you've tried…

Morphy

  • Named
  • **
  • Posts: 204
  • Karma: 3
Re: Gamma adjustment and black screen
« Reply #9 on: Apr 20, 2018; 09:18 PM »
I don't know if this helps anyone to help you but... I've noticed differences between versions (mods) all using the same SweetFx settings.

I presume that HGL saves a single config file in the same folder as the saves - so the "vanilla" gamma setting should be the same across three different game mods.

But:  Nagahaku is just right, Revival is a lot deeper and darker than Nag (but playable) Vanilla is brighter but not so bright as to be washed out.
I can't remember what Lost London was like.

I needed to adjust the settings up brighter for Revival and down for Vanilla (SweetFX, not the game's gamma) to make them more enjoyable.

But I based their settings on the copied SweetFX file from Nagahaku, so they should have been identical.

Something internal seems to be changing between the mods (obviously, but i don;t mean the actual modding itself)