-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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: transparent_bg
property in SubViewport has no effect (not reimplemented yet)
#40651
Comments
The material preview appears with a black background as described here, still reproducible as of 706c38a |
transparent_bg
property in SubViewport seems to have no effect (not reimplemented yet)
transparent_bg
property in SubViewport seems to have no effect (not reimplemented yet)transparent_bg
property in SubViewport has no effect (not reimplemented yet)
I confirm the bug is still there 92a2380, would be nice if someone could take a look at it |
Same bug in windows. Just to notice. Transparent BG Option -> Black Background. |
The option does actually work (at least as of 8485d0c), but only if you use 2D. As soon as there is 3D node on scene (or in viewport?), the background is no longer transparent. |
Godot 4.0 alpha 1 and still not resolved, transparent background is a much needed feature. |
if there's an environment, the sky is also still rendered (instead of black). also needs to be done |
Until this is fixed, as a really janky workaround, you can assign a CanvasItemMaterial to the SubViewportContainer, and set its blend mode to "Add". Whatever you're rendering to this viewport will probably look a bit transparent, but it allows you to keep working while using the viewport and also being able to see everything else. |
thanks |
subviewport01.mp4 |
just checked it in godot alpha 3 |
Contributors work on a best-effort basis. As per Godot's MIT license, there is no warranty provided for anything 🙂 |
I did a quick test of Chaosus's pr, looks good. Hopefully it will pass all reviews and checks and will be in master and this issue will finally be resolved. |
Note: This issue has been confirmed several times already. No need to confirm it further.
Godot version: v4.0.dev.custom_build.3811fb919
OS/device including version: Arch Linux, GeForce GTX 1070Q, Vulkan
Issue description: Enabling the "transparent_bg" property in SubViewport seems to have no effect. The 3D content within the viewport is rendered fine, but the underlying 2D content (ColorRect, TextureRect, etc.) is hidden below a black background. The expected outcome is to have the 3D content rendered on top of the 2D content.
Note: I'm aware 4.0 is anything but stable, so I'm wondering if this really is a bug or some problem with my machine. If anybody could test this, maybe on Windows, I'd highly appreciate it.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: