HBAO+ Compatibility Flags Thread

Discussion in 'Videocards - NVIDIA GeForce Drivers Section' started by MrBonk, Mar 3, 2014.

  1. gold333

    gold333 Member

    Messages:
    46
    Likes Received:
    0
    GPU:
    GTX670CUII oc'd
    Thanks for this.

    But do you select the Bioshock 1 profile in NVInspector 1.9.7.8. and then apply this modification? Or do you just apply the modification to a bland (generic) profile?

    Sorry, also... how do you edit and input these flag vales? (sorry for noob question)

    Or does someone just have a Bioshock 1 remastered .nip file?
     
  2. wisebear

    wisebear Member

    Messages:
    24
    Likes Received:
    6
    GPU:
    MSI RTX 2080 Duke
    @JonasBeckman : Is there a way to find out what's the current value assigned to the dumped variables? VXAO is potentially good enough, but their current implementation is so subtle that it's really not worth the fps drop, which is a shame. If i was able to tweak its values i could get rid of their terrible SSAO which is atm somewhat necessary, especially in interiors where there seems to be no shadowcasting light source whatsoever and without it everything appears horribly flat.

    On a side note, i'm fairly sure shadowlibs is not doing anything at all, except stealing fps. I did my tests and i can't find any difference with it turned on/off: shadows look exactly the same.
     
  3. JonasBeckman

    JonasBeckman Ancient Guru

    Messages:
    17,564
    Likes Received:
    2,961
    GPU:
    XFX 7900XTX M'310
    Possibly although probably not very easy to do.

    There's a mod for the dither effect for masking certain texture seams in the terrain which alters the shader and increases the samples. - https://github.com/drdaxxy/ffxvDitherPatch
    In effect doing the same to ambient occlusion might be doable but the utilities for this can vary in how compatible they are depending on the feature set the game it's used in. 3D Migoto for example.

    SpecialK is technically capable of viewing the shaders but editing is unsupported for D3D11 and only partially possible with D3D9 due to API differences though yes it would be doable to increase the parameters in this way though it might not be very easy. :)
    (SpecialK allows for toggling and setting wire frame mode but it's uses are a bit limited though viewing gives some insight into how these effects work and what parameters they are using.)

    Shadowlibs in this game is for self shadowing by the way, it's subtle and somewhat expensive as well but it adds some depth to how the shadows in the game work. :)
    https://www.resetera.com/posts/5277218/

    I had assumed it would be PCSS style filtering but no it's this instead.
     
  4. wisebear

    wisebear Member

    Messages:
    24
    Likes Received:
    6
    GPU:
    MSI RTX 2080 Duke
    I was looking for contact hardening shadows or some other implementation on the ground/environement. I can see the effect now, very subtle indeed :(
     

  5. silly7722

    silly7722 Guest

    Messages:
    1
    Likes Received:
    0
    GPU:
    MSI GTX 1070 G 4GB
    I modified the 0x00F0000 flag to stop the random on/off flickering when using it for path of exile in dx11.

    Original: 76 58 00 82 73 40 5D 07 01 00 00 00
    Modified: 76 98 00 82 73 40 5D 07 01 00 00 00

    Tho only issues that some people might not like are it bleeds through the ui and some things like torches get a little dark. It also might be to strong for some people, but you can modify the strength through hex editing (see OP) so thats fixable.

    Im using Windows 10 so I edited the nvwgf2umx.dll file in C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_048172e9d7cc483d.

    I dont really feel like recording and uploading a video of the flickering in action because im too lazy :D, but so far i the modified flag seems to have fixed it. Also screenshots dont seem to be picking up the AO so it seems like its being applied as some type of overlay? :confused: Maybe a video wont show it either because of that? idk

    Edit: I'll probably tinker with it some more because i will get annoyed its not perfect, but so far im satisfied i made some progress, the game looks so much better with AO imo

    Edit Edit: Seems like there are still some flickering issues, but it seems to have improved since i modified the flag.
     
    Last edited: Mar 20, 2018
  6. MrBonk

    MrBonk Guest

    Messages:
    3,385
    Likes Received:
    283
    GPU:
    Gigabyte 3080 Ti
    You can try to use Print Screen and paste them into a program to get screenshots. Could try different screenshot methods as well. (As you using Afterburner or an in game screenshot function for example? If the game has one, you can try that too).

    One other option that may work is using the Steam Screenshot method. In my experience, this will pick up any forced AA, AO and even SweetFX/Reshade while not capturing any on screen OSD like Afterburner.


    In my A/B tests Shadow works DOES do something, but it's subtle to pick up on in this game. Because it doesn't seem to be bypassing whatever the heck they are doing with the shadows on their own to begin with like most games do when they use Nvidia shadows.
    They are still being filtered by the game seperately and then also filtered by the TAA. Which masks the contact hardening quite a bit.
     
    Last edited: Mar 20, 2018
  7. MrBonk

    MrBonk Guest

    Messages:
    3,385
    Likes Received:
    283
    GPU:
    Gigabyte 3080 Ti
    Yeah,you have to

    1. Make a new profile for Bioshock remastered, add the .exe (or absolute application path)
    2. Set the flag mentioned and enable HBAO for the profile.
    3. Then find the appropriate driver .dll depending on what version of windows you use and copy that to the game directory where the .exe is . (If you upgrade drivers you have to redo this and remodify the .dll)
    4.Open the .dll in a hex editor, use the quoted values for the original flag to find them, and then change the values to match the modified values posted. (You cannot copy paste it, you have to type it manually). Then save the .dll. If done right it should work.
     
  8. MrBonk

    MrBonk Guest

    Messages:
    3,385
    Likes Received:
    283
    GPU:
    Gigabyte 3080 Ti
    Resident Evil Revelations

    This post is long overdue. The original flags mentioned are not suitable at all in reality. None in the driver are, and require significant modification to get it to good quality and to fix major issues.
    Some things that cannot be helped are things like the seemingly low precision of whatever buffers the HBAO is interacting with. (Where as the game uses heavy dithering on the 3DS, the HD versions did not, but also did not increase the precision of many buffers. Resulting in a large amount of banding. And this results in the AO having banding as well. Luckily my TV has a decent debanding option that can blend much of it)

    But in summary without modification HBAO+ either
    A.)Causes a garbage artifact on the ground at certain angles.
    B.)Is far too strong with lots of overshading.
    C.)Turns off in certain blocks of the ship. (Like the bridge/deck area. It will disable as you take the elevator to these sections).
    D.)Bleeds through alpha effects like smoke, fog and water. The water in particular is very significant as large portions take place underwater.
    E.)Bleeds in snow levels
    F.)Angle bias causes clouding issues with thin geometry and geometry in the distance (Beach area specifically. Which causes and aliasing crawling effect)

    Modification fixes the majority of these problems with some caveats.
    1.)The snow levels are impossible to fix. (The problem is mostly in the caves of those however)

    3.)Fixing the bleeding through alpha effects, fog and water has the side effect of causing AO to turn off in very specific areas of the game or sometimes based on the camera angle (Far less common). One case is where you are in the same area as a body of water, the AO disables as you go under water, which is seamless. But as you resurface it turns back on, and depending on the camera angle for a split second you can see the effect draw in under the water.
    In one area, the AO is working with a large body of water present, but as you move between that and the next, the effect turns off. A subtle problem based on what is happening at this specific moment.

    3.)There is still some minor overshading problems, however they are nothing quite as heavy as the SSAO in Revelations 2, which when characters occlude certain geometry it casts a thick haze between the two that looks quite bad.

    4.)AO does not apply in the menus on characters.

    5.)If the 2nd issue bothers you more than having the effect work absolutely everywhere with bleeding problems, there is a second set of values for that. (This was the values I initially played the game through with as I didn't realize I could fix the bleeding until after the fact. )
    In one specific area late in the game, there are a few instances of AO being applied everywhere, but some specific objects will have the effect turn on and off based on camera angle while the rest of the AO is fine.

    But here's how not disabling the bleeding can look at it's worst.
    http://u.cubeupload.com/MrBonk/22248020180103002558.png
    http://u.cubeupload.com/MrBonk/rerev201801171818251.png
    http://u.cubeupload.com/MrBonk/22248020180110001513.png
    http://u.cubeupload.com/MrBonk/22248020180110001841.png
    http://u.cubeupload.com/MrBonk/22248020180112194325.png
    http://u.cubeupload.com/MrBonk/22248020180112194439.png
    http://u.cubeupload.com/MrBonk/22248020180112195204.png
    http://u.cubeupload.com/MrBonk/22248020180112201756.png
    http://u.cubeupload.com/MrBonk/22248020180113001518.png
    http://u.cubeupload.com/MrBonk/22248020180113001344.png
    http://u.cubeupload.com/MrBonk/22248020180114223103.png
    http://u.cubeupload.com/MrBonk/22248020180114223851.png
    http://u.cubeupload.com/MrBonk/22248020180114222900.png
    __________________________________________________________________

    0x00000026
    Original values
    Modified values that disable bleeding
    Modified values that don't disable bleeding
    ____________________________________________________________________

    Another problem this game has, is that it is resolution limited to 1440p. And has the problem that all current RE games have (minus VII), low resolution bloom. So getting perfect image quality is not possible. (The low rest bloom is always distracting when it is very strong in specific areas. However you can get very close by using 4xSGSSAA+In game FXAA level 1. Which has the drawback of a small loss in sharpness that is easily fixed with sharpening. With the benefit of much better edge gradients and overall image quality.

    8xSGSSAA, at 1080p60 for my 980 just wasn't feasible and that is probably the better option if your GPU can handle it. (While GPU usage wasn't an issue, I was getting lots and lots of stuttering and hitching.). Disabling motion blur may help with performance for you. Like in RE5 and RE6, the motion blur causes a big performance hit.

    MSAA is available to force via 0x00400041, but it almost requires as much performance as SGSSAA and doesn't handle the aliasing as well. However it is fine for what it is if you prefer sharpness.

    If sharpening the game you might as well make some other changes as well, as the dynamic range here doesn't seem to have ever been really properly adjusted beyond the 3DS. The Gamma/brightness set up feels wrong, dark areas are very grey and not at all close to black. And the top end is just as dull. (Then there is the removal of dithering, leaving lots of banding.) (RE5, 6 and revelations 2 do not have this problem. Only Revelations 1)
    Personally I recommend setting the in game brightness minus 3 or so and then applying my SweetFX/Reshade presets that push the low end down just enough to make it darker without crushing the low end, while pushing the high end out with very minor clipping on specific areas. Overall it looks much better IMO.

    To use AA with Reshade you have to use 0x004000C1 for AA rather than just C1. Either way the AA does affect the PP effects injected, so the sharpening for example has to be used at higher than normal values. Typical when forcing AA over reshade and sometimes SweetFX.

    I've included 3 presets here.
    • A basic SweetFX set. (Which originally I had the film grain with my custom texture turned on enabled. But the RNG of the shader or some other part of it causes the effect to break after about 30 minutes of continuous use. Causing the effect to look like macroblock compression artifacts. It does this even with the original texture from Jorge Jimenez)
    • 60FPS Reshade config (For my 980 anyway. This is mainly for the use of the film grain shader. Though it is disabled in the preset)
    • And a 30FPS Reshade config that adds film grain, DOF and Ambient lighting. (Because my 980 can't hold 60FPS with 4xSGSAA, HBAO+ and this on top)
      The DoF get's AA'd properly for the most part as well, which looks great and with the auto DoF turned on it feels totally natural and works way better than the in game DoF present in Revelations 2 and Resident Evil 6. However the DoF can occasionally break, especially if you alt tab. And it can break specifically in the main menus. Fiddling with turning motion blur on and off and alt tabbing again, and or restarting the game or some combination thereof can fix it. I only ran into this when initially configuring the effect so YMMV.
    They are all tuned to the nearly same lift gamma gain and sharpening settings.

    https://www.mediafire.com/folder/22aqks3tbnx3s61,6jpy0afo49zv6ni,epqe2ph8ego5o8o/shared

    _________________________________________________________________________________

    Pictures:
    The pictures are set up in succession with each one adding the stated effect to the chain.
    HBAO+ is the modified config without bleeding.
    Enabling a negative LOD adds aliasing back into the game. But does minorly help with sharpness. YMMV depending on your tastes.

    No AA | With HBAO+ | 4xSGSSAA | FXAA level 1 in game turned on | Reshade 60FPS config enabled
    No AA | With HBAO+ | 4xSGSSAA | FXAA level 1 in game turned on | Reshade 60FPS config enabled
    No AA | With HBAO+ | 4xSGSSAA | FXAA level 1 in game turned on | Reshade 60FPS config enabled
    No AA | With HBAO+ | 4xSGSSAA | FXAA level 1 in game turned on | Reshade 60FPS config enabled
    No AA | With HBAO+ | 4xSGSSAA | FXAA level 1 in game turned on | Reshade 60FPS config enabled (There is a pulsating set of light sources here. Which is causing the difference in visible detail around the fountain here)
    No AA | With HBAO+ | 4xSGSSAA | FXAA level 1 in game turned on | Reshade 60FPS config enabled
    No AA | With HBAO+ | 4xSGSSAA | FXAA level 1 in game turned on | Reshade 60FPS config enabled

    Those are just my preferred settings and and am just sharing. Feel free to not at all follow it, or even change it or sharpen it even more. (Which with newer Reshade versions, there are much more varied options for sharpening.) It would be nice someday if we could unlock the resolution and get the best of both worlds. As downsampling would improve the bloom massively as it does in RE5,6 and Rev 2.

    Here's some shots of the 30FPS config
    http://u.cubeupload.com/MrBonk/rerev201802062012435.png
    http://u.cubeupload.com/MrBonk/rerev201802062011056.png
    http://u.cubeupload.com/MrBonk/rerev201802062010279.png
    http://u.cubeupload.com/MrBonk/rerev201802062008586.png
    http://u.cubeupload.com/MrBonk/rerev201802062008550.png
    http://u.cubeupload.com/MrBonk/rerev201802062008271.png
    http://u.cubeupload.com/MrBonk/rerev201802062006286.png
    http://u.cubeupload.com/MrBonk/22248020180201015509.png
    http://u.cubeupload.com/MrBonk/22248020180204010025.png
    http://u.cubeupload.com/MrBonk/rerev201802010132092.png
     
    Last edited: May 31, 2018
    SatsuiNoHado likes this.
  9. jedi93

    jedi93 Guest

    Messages:
    4
    Likes Received:
    0
    GPU:
    NVIDIA GTX 1050 Ti
    I can't force HBAO for CoD Black Ops. I tried different compatibility bits, enabled and disabled HBAO (all via Profile Inspector) but nothing changes. I also made screenshots every time, they're identical. There is definitely no AO in the main menu.
    Does it not work because I'm on a laptop with Optimus? Because I forced HBAO in two other games I think but it didn't seem to do anything there either. Can someone help?

    btw: I'm on Win 10 1703, with an i5-7300HQ and a 1050Ti, specs here: http://speccy.piriform.com/results/ejLuKGvqLhUYaF4IVpWQbou
     
  10. MrBonk

    MrBonk Guest

    Messages:
    3,385
    Likes Received:
    283
    GPU:
    Gigabyte 3080 Ti
    Sometimes it doesn't show up in screenshots unless you can print screen grab a screenshot. Sometimes it's subtle to the point that someone can't really tell for sure. Sometimes it depends on your rendering resolution or aspect ratio.
    But it is also possible it doesn't work at all too.

    Do you see a performance hit with it turned on compared to when turned off? (Take a screen of GPU usage in an easily repeatable A/B scenario in game. IE: Start a mission. Screenshot GPU usage when you go in game and are stationary. Turn it on and do the same thing)


    Also with optimus you want to be sure the dGPU is being used and not the iGPU
     

  11. jedi93

    jedi93 Guest

    Messages:
    4
    Likes Received:
    0
    GPU:
    NVIDIA GTX 1050 Ti
    The dGPU is definitely used, also my forced 16x AF works great, but the HBAO still doesn't. Performance seems to be the same no matter what I set it.

    I really don't know why it shouldn't work...
     
  12. MrBonk

    MrBonk Guest

    Messages:
    3,385
    Likes Received:
    283
    GPU:
    Gigabyte 3080 Ti
    Well it definitely isn't working if GPu usage is the same. Are you playing in 16:9?
     
  13. jedi93

    jedi93 Guest

    Messages:
    4
    Likes Received:
    0
    GPU:
    NVIDIA GTX 1050 Ti
    yep, 1920x1080 (native)
     
  14. MrBonk

    MrBonk Guest

    Messages:
    3,385
    Likes Received:
    283
    GPU:
    Gigabyte 3080 Ti
    I would just try other flags until you find one that works, see if it has major issues. If not then give it a shot.
     
  15. jedi93

    jedi93 Guest

    Messages:
    4
    Likes Received:
    0
    GPU:
    NVIDIA GTX 1050 Ti
    hm, I'm already done with Black Ops, but I'll do that with the next game where I want HBAO :)
     

  16. Anteater

    Anteater Guest

    Messages:
    10
    Likes Received:
    1
    GPU:
    GTX 760 2gig
    0x00000003 works for the gate of firmament

    no hbao+
    [​IMG]

    hbao+ (0x00000003):
    [​IMG]

    hex edit to the highest strength (0x00000003) (5E D0 00 18 00 00 16 18 75 A0 6F 0F 00 00 00 00), it's a bit too much so change it to whatever value you want
    [​IMG]
     
    Last edited: May 28, 2018
    KainXVIII likes this.
  17. snkykun

    snkykun Guest

    Messages:
    7
    Likes Received:
    2
    GPU:
    EVGA GTX 1070 SC
    any known flags for the newer Call of Duty's? such as Bo3 and say modern warfare remastered? I found black ops 2 to be a lost cause and just had to resort to reshade. Any help would be greatly appreciated :D
     
  18. Akvuil

    Akvuil New Member

    Messages:
    1
    Likes Received:
    0
    GPU:
    GV-N760OC-4GD
    Spider-man Web of Shadows (0x00000022 (Prince of Persia 4)

    Currently WIP on "remastered" version of the game needs help on improving draw distance of the city and enemies (I only can edit textures :( ). If you have better AO flag plz reply.

    PC version have a glitches/not all effects cuz of "bad port" mb here would be a way to complete effect scrtipts (textures?) from XBOX 360 version?
    And i wanna make possible to change a stances by a button and combo wall attacks with ground attacks on any surface. (By default you need be on wall to make a different attacks but game have a bug when SM attacks enemy and rushing to ground and animation with damage is continues so i thing it's possible to trigger wall attacs to ground via script.)
     
  19. SpookySkeleton

    SpookySkeleton Member Guru

    Messages:
    153
    Likes Received:
    23
    GPU:
    RTX 3090
    is there any bit for crash bandicoot or secret of mana?
     
    Last edited: Jul 1, 2018
  20. FranciscoCL

    FranciscoCL Master Guru

    Messages:
    267
    Likes Received:
    59
    GPU:
    RTX 3080 Ti
    Im replaying The Witcher 2, and want to use HBAO instead of in Game SSAO which has a dark aura around Geralt.
    The profile suggested here (https://forums.guru3d.com/threads/hbao-compatibility-flags-thread.387114/page-39) works fine, looks good while gaming and does not have the ugly dark aura, but has a glitch in "cutscenes", where you can see polygons in characters:
    [​IMG][​IMG]

    I am using it even with that glitch, because I can't stand the dark aura that in game SSAO has and the glitch does not appear in normal gaming.
     

Share This Page