godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.84k stars 21.14k forks source link

SSAO doesn't work in viewport with transparent bg #70670

Open Handagotes opened 1 year ago

Handagotes commented 1 year ago

Godot version

3.5.1.stable

System information

Windows 10, GLES3, GTX 1070ti

Issue description

Turning on 'Transparent BG' property in viewport with 3D objects in it disables the SSAO effect. 0 1

Steps to reproduce

  1. In newly created scene add TextureRect or Sprite with any texture;
  2. Add ViewportContainer with Viewport;
  3. Create simple 3D scene in viewport with floor, cube and сamera;
  4. Create Environment for camera with ProceduralSky and SSAO turned on;
  5. Launch project and turn on transparent bg for viewport.

Minimal reproduction project

ssao test.zip

BastiaanOlij commented 1 year ago

Please try this with #72838 applied, it works for me in my test scene: image

Handagotes commented 1 year ago

@BastiaanOlij I can't reproduce this bug on any 4.0 beta build. Is it possible to apply your PR to 3.5?

Calinou commented 1 year ago

@BastiaanOlij I can't reproduce this bug on any 4.0 beta build. Is it possible to apply your PR to 3.5?

The SSAO implementation in 4.0 is entirely different from the one in 3.5 (along with the rendering backend), so no.

Handagotes commented 1 year ago

Unlink PR then please.

Zireael07 commented 1 year ago

@Handagotes Not possible in github afaik

Handagotes commented 1 year ago

@Zireael07 will I be able to reopen this issue when PR will be merged?

Handagotes commented 1 year ago

@akien-mga thanks

BastiaanOlij commented 1 year ago

The SSAO implementation in 4.0 is entirely different from the one in 3.5 (along with the rendering backend), so no.

Oops, sorry I went through so many PRs yesterday to see which ones were related, I missed this one was 3.5..