Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulkan: Strange black line artifact in SSAO when Half Size is enabled #62881

Closed
josefkaragoli opened this issue Jul 10, 2022 · 8 comments · Fixed by #73420
Closed

Vulkan: Strange black line artifact in SSAO when Half Size is enabled #62881

josefkaragoli opened this issue Jul 10, 2022 · 8 comments · Fixed by #73420

Comments

@josefkaragoli
Copy link

Godot version

d26442e

System information

Windows 10, GTX 1060 6GB

Issue description

When SSAO quality is set to above "Low (Fast)" a weird line appears directly in the middle of the screen - it seems like some visual artifact - It always appears, but when ssao_detail is lowered the artifact is less visible, albeit still there.

SSAO OFF
image

SSAO on Medium
image

SSAO on Low
image

I think it doesn't show on low because Low doesn't use the detail pass in SSAO though I'm not sure.

Steps to reproduce

Open any scene in godot. Enable SSAO in the WorldEnvironment, and if you can't see the strange line then increase Detail and Intensity of the SSAO.

Minimal reproduction project

No response

@mrjustaguy
Copy link
Contributor

Half Resolution used?

@josefkaragoli
Copy link
Author

Yes, everything at its default settings

@Calinou
Copy link
Member

Calinou commented Jul 10, 2022

I can confirm this on 4.0.alpha 1b057e1.

A similar issue occurs with SSR and possibly SSIL. This line will move around when you resize the viewport (which happens when resizing the editor window).

@Calinou Calinou changed the title Strange black line artifact in SSAO Vulkan: Strange black line artifact in SSAO Jul 10, 2022
@Calinou Calinou added this to the 4.0 milestone Jul 10, 2022
@mrjustaguy
Copy link
Contributor

Turn off Half resolution, as if the height/width of half the resolution are not both integers you get issues with it.

I've experienced a similar issue in shipped games (such as Ark Survival Evolved a UE4 title where SSAO had such Lines appearing) where on settings when Screen Space Effects are using half resolution when the Screen Resolution is such that half of it doesn't return Integer values for both.

@Calinou
Copy link
Member

Calinou commented Jul 10, 2022

Minimal reproduction project: test_ssao_half_size.zip

I can notice flickering when resizing the viewport with Half Size enabled in the Project Settings, but everything looks OK when Half Size is disabled:

SSAO Half Size enabled (default)

simplescreenrecorder-2022-07-10_19.42.18.mp4

SSAO Half Size disabled

simplescreenrecorder-2022-07-10_19.43.04.mp4

I don't notice a line in the middle in either though.

@Calinou Calinou changed the title Vulkan: Strange black line artifact in SSAO Vulkan: Strange black line artifact in SSAO when Half Size is enabled Jul 10, 2022
@josefkaragoli
Copy link
Author

Turn off Half resolution, as if the height/width of half the resolution are not both integers you get issues with it.

So I suppose the solution would be to ensure the viewport dimensions are always a multiple of 2? I suppose all common screen resolutions are multiples of 2 anyways, eg 2560x1440, 1920x1080, 1366x768... so this is a very corner case bug

@Calinou
Copy link
Member

Calinou commented Jul 12, 2022

So I suppose the solution would be to ensure the viewport dimensions are always a multiple of 2? I suppose all common screen resolutions are multiples of 2 anyways, eg 2560x1440, 1920x1080, 1366x768... so this is a very corner case bug

See #37995, which was rejected.

@clayjohn
Copy link
Member

clayjohn commented Feb 9, 2023

May be fixed by #72838

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants