Kenshi
0 of 0

File information

Last updated

Original upload

Created by

disi

Uploaded by

disi30

Virus scan

Safe to use

Tags for this mod

48 comments

  1. disi30
    disi30
    • premium
    • 51 kudos
    Locked
    Sticky
    Feel free to tweak the settings in the material file... maybe post your settings with an image so others can use them.
  2. GESM
    GESM
    • premium
    • 2 kudos
    Sticky
    For anyone having issues with a grid texture, find this line in your SSSAO.compositor file ( in ShaderSSAO\materials\compositors):
    texture rt0 target_width_scaled 0.5 target_height_scaled 0.5 PF_A8R8G8B8      // half size

    and change it to:texture rt0 target_width_scaled 1.0 target_height_scaled 1.0 PF_A8R8G8B8

    Note that this will come with a performance hit the higher you set it, though 1.0 adds about 2-3% overhead on a 2070. The issue seems to be caused by your render resolution, and this fixes it for me at 2560x1440. You can play around with this setting or the one below it if you still have issues. I'd also suggest running kenshi in borderless mode to make sure it renders at the proper resolution.
    1. deleted55289152
      deleted55289152
      • account closed
      • 1 kudos
      Did help, thanks!
      Also edit SSSAO.material and reduced halo effect
      param_named distanceThresholdmax float 0.9  (from 1.0) 

      p.s. Anyone wanna tweak it and upload it on steam?
    2. BandyRFC
      BandyRFC
      • supporter
      • 2 kudos
      bump... [This needs to be pinned, or best added in mod description]

      Thanks for solution, this mod has become a must-use to improve Kenshi render.
    3. GrandTickler
      GrandTickler
      • supporter
      • 13 kudos
      thanks a lot GESM and deleted55289152 ! both of your tweaks made it perfect for me at 1440p
      also thank you disi for providing this nice mod!
  3. SNIPD
    SNIPD
    • member
    • 18 kudos
    Super! Thanks disi30! Kudos!
  4. camy252
    camy252
    • member
    • 0 kudos
    I'm not quite getting a grid effect but more like white lines across the screen. Seems to be most obvious on the ground.

    Is this the same error as others I'm getting? And is there a workaround? Changing to Fullscreen fixes it but then I cant play in ultrawide. 

    https://imgur.com/a/R1nWu5w
    1. imoily
      imoily
      • supporter
      • 1 kudos
      that looks like the same issue I had, and changing theSSSAO.compositor file like GESM suggested in the pinned reply fixed it for me :)
  5. wretchComplex
    wretchComplex
    • member
    • 0 kudos
    Perfect lil Ambient Occlusion mod. Nice lil touch of quality with very little maintenance.

    In contrast, I was experimenting with some other visual mods + configs using Reshade, but their I found their bloom, color balance and gamma changes be too dramatic and inconsistent. I was really just after a lil bit of AO the entire time.
  6. sealgaire0451
    sealgaire0451
    • member
    • 0 kudos
    This is great except in areas with fog where you can see every shadow added by the shader through the fog and it looks terrible. Here's an example:
    https://steamcommunity.com/sharedfiles/filedetails/?id=2612435306

    Is there anyway to fix this?
  7. SCARaw
    SCARaw
    • premium
    • 171 kudos

    ?SSAO on:

    SSAO off:
    1. BandyRFC
      BandyRFC
      • supporter
      • 2 kudos
      This can be seen in the vanilla game as well in small deep pits in the desert when the Kenshi sun is low on horizon (like your snow picture).  It's a limit of the game lighting, not the mod, but the mod makes it more visible.  The obvious tri mesh in the top picture are 'invisible' in the bottom because each tri isn't contributing to the rock's shadow, so the mod provides more surface shadow in the render.  Live with it, tweak the mod file, or uninstall.
  8. SCARaw
    SCARaw
    • premium
    • 171 kudos
    so i was tweaking around with this mod for my setup and it turns out pretty well
    more shadows i can cast = more FXAA i can throw around the world  
    good work
  9. MobsceneCDN
    MobsceneCDN
    • member
    • 0 kudos
    Unusable because of the grid that is on the screen when using this.

    I tried going fullscreen as others have suggested here, but I still see it. I guess there's no way to fix it since people are still complaining about it and no one has said how to fix it?
  10. Bayrain
    Bayrain
    • member
    • 19 kudos
    https://i.imgur.com/vfAknAS.jpeg
    Get rid of your damn grid overlay. This is crazy stupid. Looks amazing tho ^w^
  11. SrBu
    SrBu
    • member
    • 1 kudos
    I don't know from where I can ask you so I go to do it here.

    It seems like you know how to port in engine shaders, so I will ask you if you know or can add an outline shader like the kenshi 2 reshade.

    I don't know if you follow me for what I'm asking.

    Example: https://www.reddit.com/r/Kenshi/comments/ju2pc8/add_a_posteffect_like_a_effect_on_a_mod/
  12. nopluu
    nopluu
    • premium
    • 0 kudos
    I'm also having issues with the grid.

    ?

    I've tried it at 1080 and 1440, and only get lines at 1440 and only on borderless.

    ?#define minRadius (0.0/1920) // (0.0/1920)
    #define maxRadius (10.0/1080) // (10.0/1080)

    At first I thought that it might've been these two lines in the SSAOB.hlsl file above, with what looked like hardcoded resolutions, but I honestly haven't got a clue what magical rendering tomfuckery is going down in there and I know not to dig when there's a cosine involved. Besides that, it looks like the ratio is what's important anyways, so the resolutions probably aren't actually important here. Changing them didn't make the grid go away, and that was enough for me to give up on that line of thought.

    While screenshotting I noticed that specifically in fullscreen non-borderless, when I had set the resolution to 16:9 resolutions, the game was running at a 4:3 resolution instead (1600x1200 when set to 1920x1080) and just stretching out to fit the screen.

    Weirdly enough, this doesn't even seem to have anything to do with the config, as I couldn't find any mention of these 4:3 resolutions in them. Did a little googling and I haven't seen any decent fixes other than "just don't use fullscreen, how about that?" because the most popular solution in a steam discussion post is usually of "give up" or "works for me".

    This particular quirk/super annoying issue is entirely unrelated to the shader, but maybe it's the case that the grid only appears at post-1080 16:9 resolutions?

    Don't know how to proceed from here though.
    1. potatobaron
      potatobaron
      • premium
      • 4 kudos
      Can confirm, I have the same issues and see this grid. Fullscreen without borderless at 1440 worked for me. I have no UI mods besides this, a Reshade called TSUKI V.2 that requires this SSAO mod, as well as Transparent UI and the Font Redux and Compressed Textures+Detailed Textures(Faithful), all in English.