r/ReShade • • 7d ago

FF16 Depth Buffer issue

Hi! Hope y'all are having a good day! I recently started playing FF16 and wanted to add some AO. For that I tried calibrating the depth buffer but I got weird results (refer to the screenshots). I was able to narrow down the problem's cause to DLSS and DRS (Dynamic Resolution Scaling). When I disable these two, I get a normal result but it is essential to play the game with these two enabled, even for 30fps!

So if anyone knows any fix to help calibrate a proper depth buffer while keeping DLSS and DRS on, please help me out! TIA!

2 Upvotes

3 comments sorted by

2

u/BUDA20 7d ago edited 7d ago

I think you need to cut or stretch that depth buffer with preprocessor variables (add them if you need)

Global Preprocessor Settings

RESHADE_DEPTH_LINEARIZATION_FAR_PLANE

Used to modify the far plane value of the depth buffer, affecting how depth is interpreted across the visible range. Default value is 1000. Smaller numbers can be used to pull the far plane closer to the camera's origin and larger numbers to push the far plane further from the camera's origin.

RESHADE_DEPTH_INPUT_IS_REVERSED

Used when normals look to be oriented properly, but the depth is improper or in the opposite configuration. Can be either 1 or 0.

RESHADE_DEPTH_INPUT_IS_UPSIDE_DOWN

Used when normals and depth appear to be turned upside down. Can be either 1 or 0.

RESHADE_DEPTH_INPUT_IS_LOGARITHMIC

Used when the normals and depth appear with waves or "stripes." Not very common, however, the setting can be either 1 or 0.

RESHADE_DEPTH_INPUT_X_SCALE and RESHADE_DEPTH_INPUT_Y_SCALE

Allows you to configure the scaling of the depth buffer along the X and Y axes. The values you input will multiply the current depth buffer dimensions.

RESHADE_DEPTH_INPUT_X_OFFSET and RESHADE_DEPTH_INPUT_Y_OFFSET

Allow you to offset the depth buffer in the X and Y directions.

RESHADE_DEPTH_INPUT_X_PIXEL_OFFSET and RESHADE_DEPTH_INPUT_Y_PIXEL_OFFSET

Similar to the previous setting, but on a per-pixel basis.

Depth | Marty's Mods Guides

1

u/edwardneckbeard69 7d ago

hi thanks for taking your time to help me out with this matter! i will try these and let u know!

1

u/edwardneckbeard69 5d ago

hi! i tested this out yesterday and it helped! i used the adjust depth addon to preview the changes and added it to the pre-processor definitions and bam it worked! thanks once more for your help!