Cinematic DOF Black Outline on Foliage

More
1 year 9 months ago - 1 year 9 months ago #1 by Oatpunter
Cinematic DOF Black Outline on Foliage was created by Oatpunter
Hey everyone, I am currently working on a preset for S.T.A.L.K.E.R. Anomaly and would like to add a CinDOF shader. However, despite having tweaked every value and trying several different combinations, the foliage is surrounded by this black haze, for example:

CINDOF ON
Warning: Spoiler!



CINDOF OFF
Warning: Spoiler!


As you can see, there is a black haze around the foliage. I've chalked it up to either the in-game anti-aliasing, or the way the game handles transparency textures. Although, I did test the game without MSAA or any in-game anti-aliasing activated and there was still a black haze. If anyone has a solution or an alternative explanation, I would love to hear it. Cheers.

Here I have also uploaded the depth map and my settings:

DEPTH MAP
Warning: Spoiler!


CINDOF SETTINGS
Warning: Spoiler!


GLOBAL PRE-PROCESSOR SETTINGS
Warning: Spoiler!
Last edit: 1 year 9 months ago by Oatpunter.

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #2 by OtisInf
Replied by OtisInf on topic Cinematic DOF Black Outline on Foliage
Likely still a mismatch with the depth buffer. if the tree is in focus, bleeding doesn't happen. However, if it's even a slightly bit out of focus you'll get a blurring around the edges. But other than that, I don't know what causes this. For things in the focus plane I never see bleeding. (I wrote cinematicdof)

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #3 by Oatpunter
Replied by Oatpunter on topic Cinematic DOF Black Outline on Foliage
What would you suggest? I've tried all available depth buffer settings (curiously, one appears and is greyed out that is labelled MSAA, but when I disable MSAA I still can't interact with it), and I've tweaked every value as much as I can. I'm close to just assuming that it's built into the game.

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #4 by OtisInf
Replied by OtisInf on topic Cinematic DOF Black Outline on Foliage
I have no answer, sorry.

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #5 by Oatpunter
Replied by Oatpunter on topic Cinematic DOF Black Outline on Foliage
Thank you for your time, I imagine it's just hard coded into the game.

Please Log in or Create an account to join the conversation.

More
1 year 7 months ago #6 by Dtektor
Replied by Dtektor on topic Cinematic DOF Black Outline on Foliage
Check if u have enabled "AA" effect in console, that cause a depth-buffer bug
I think it would be helpful for you

Please Log in or Create an account to join the conversation.