NWN:EE ambient occlusion and indirect lighting via reshade
Posted: Thu Mar 29, 2018 8:17 am
The ambient occlusion built into nwn:ee currently creates some flickering shadows on certain surfaces as the camera turns for me, fortunately there is an excellent alternative through reshade, although it does take some extra work to set it all up.
Edit: unfortunately, there are currently some problems, see post below.
Installation
You can get the latest version of reshade here https://reshade.me, run it and select nwmain.exe. It'll default to assuming the game uses opengl which is true. I had to chose not to download shaders automatically as it didn't work and you can't edit reshade settings if that happens.
If it fails to automatically download the shaders, you can get them here: https://github.com/crosire/reshade-shad ... master.zip, download and extract, for example near nwmain.exe.
At the end of the installation, you can chose to "Edit Reshade Settings" before closing the program, do that and set the "Effects Path" to the shader folder and the "Textures Path" to the texture folder. You need to do this as reshade doesn't seem to get loaded properly otherwise.
Some of the shaders may not work with the latest version of reshade yet, you can delete all the files in the extracted Shaders folder except MXAO.fx and ReShade.fxh, if the game gives an error on launch.
You'll need to edit MXAO.fx to activate indirect lighting. If you'd rather not, you can also download the one I use here: https://drive.google.com/file/d/18wvX7u ... sp=sharing
I've changed #define MXAO_ENABLE_IL to 1 and #define MXAO_MIPLEVEL_IL to 0.
Settings
Start a game, you can now access reshade via shift+F2. Add a new profile and select MXAO.fx.
Most of the default settings are fine, but I reduced Indirect Lighting Amount from 4 to 1.25 (or maybe 2.25 for a brighter atmosphere), it was too much light I found.
I also changed Blending Mode from 0 to 1 as I found that surfaces appeared to react better to nearby light sources.
Finally I increased Sample Quality to High. I preferred this one over higher settings as I subjectively found objects to be more distinct than if I used higher settings, although higher settings did seem to produce a little smoother overall effect throughout the scene.
If you don't use indirect lighting though, the characters looked a tad too dark to me and you should consider trying lower values of Ambient Occlusion Amount in that case.
Performance
If you find this makes the game run slower, you can try increasing MXAO_MIPLEVEL_IL and/or MXAO_MIPLEVEL_AO in MXAO.fx as well as lowering the Sample Quality in the reshade settings panel.
Nwn:ee default

Nwn:ee ambient occlusion + indirect lighting
I really appreciate the overall result, it really looks to work well with NWN:EE (it's best to either download or open both images in a new tab to see the whole scene):

Edit: unfortunately, there are currently some problems, see post below.
Installation
You can get the latest version of reshade here https://reshade.me, run it and select nwmain.exe. It'll default to assuming the game uses opengl which is true. I had to chose not to download shaders automatically as it didn't work and you can't edit reshade settings if that happens.
If it fails to automatically download the shaders, you can get them here: https://github.com/crosire/reshade-shad ... master.zip, download and extract, for example near nwmain.exe.
At the end of the installation, you can chose to "Edit Reshade Settings" before closing the program, do that and set the "Effects Path" to the shader folder and the "Textures Path" to the texture folder. You need to do this as reshade doesn't seem to get loaded properly otherwise.
Some of the shaders may not work with the latest version of reshade yet, you can delete all the files in the extracted Shaders folder except MXAO.fx and ReShade.fxh, if the game gives an error on launch.
You'll need to edit MXAO.fx to activate indirect lighting. If you'd rather not, you can also download the one I use here: https://drive.google.com/file/d/18wvX7u ... sp=sharing
I've changed #define MXAO_ENABLE_IL to 1 and #define MXAO_MIPLEVEL_IL to 0.
Settings
Start a game, you can now access reshade via shift+F2. Add a new profile and select MXAO.fx.
Most of the default settings are fine, but I reduced Indirect Lighting Amount from 4 to 1.25 (or maybe 2.25 for a brighter atmosphere), it was too much light I found.
I also changed Blending Mode from 0 to 1 as I found that surfaces appeared to react better to nearby light sources.
Finally I increased Sample Quality to High. I preferred this one over higher settings as I subjectively found objects to be more distinct than if I used higher settings, although higher settings did seem to produce a little smoother overall effect throughout the scene.
If you don't use indirect lighting though, the characters looked a tad too dark to me and you should consider trying lower values of Ambient Occlusion Amount in that case.
Performance
If you find this makes the game run slower, you can try increasing MXAO_MIPLEVEL_IL and/or MXAO_MIPLEVEL_AO in MXAO.fx as well as lowering the Sample Quality in the reshade settings panel.
Nwn:ee default

Nwn:ee ambient occlusion + indirect lighting
I really appreciate the overall result, it really looks to work well with NWN:EE (it's best to either download or open both images in a new tab to see the whole scene):
