Giter Site home page Giter Site logo

Comments (16)

bruvzg avatar bruvzg commented on June 24, 2024 2

https://vulkan.gpuinfo.org/listsurfacecompositealphamodes.php?platform=windows - seems like currently only 12.7% of Windows systems support it.

from godot.

bruvzg avatar bruvzg commented on June 24, 2024 2

In the settings windows

It's a standard Windows 11 window frame, Godot is not drawing or controlling it.

from godot.

anniryynanen avatar anniryynanen commented on June 24, 2024 1

This also happens in master.

from godot.

kleonc avatar kleonc commented on June 24, 2024

Edit: Below results for Compatibility renderer.

Can reproduce in:

Can't reproduce in:

Probably fixed by #86553, specifically:

godot/scene/main/viewport.cpp

Lines 1477 to 1478 in e96ad5a

// A non-embedded tooltip window will only be transparent if per_pixel_transparency is allowed in the main Viewport.
panel->set_flag(Window::FLAG_TRANSPARENT, true);

I guess this part only needs to be backported into 4.2 and 4.1, the rest seems unrelated? 🤔 cc @Koyper

from godot.

anniryynanen avatar anniryynanen commented on June 24, 2024

...but I also see it in v4.3.beta1, so there must be something different in our setups.

from godot.

anniryynanen avatar anniryynanen commented on June 24, 2024

I checked it on my laptop to see if it's a Windows only issue, but I can also reproduce this in

Godot v4.3.beta1 - Arch Linux #1 SMP PREEMPT_DYNAMIC Fri, 31 May 2024 15:14:45 +0000 - Tty - Vulkan (Forward+) - integrated Intel(R) Graphics (ADL GT2) () - 12th Gen Intel(R) Core(TM) i5-1235U (12 Threads)

from godot.

kleonc avatar kleonc commented on June 24, 2024

...but I also see it in v4.3.beta1, so there must be something different in our setups.

Oh, I've tested on the Compatibility renderer, that must be it (sorry for not mentioning it before).

from godot.

Koyper avatar Koyper commented on June 24, 2024

I guess this part only needs to be backported into 4.2 and 4.1, the rest seems unrelated? 🤔

Yes, the transparent flag setting for non-embedded windows was added by #86553, but the Project per_pixel_transparency has to be enabled for it to work. If that doesn't actually work, please report here and I'll have a look.

from godot.

anniryynanen avatar anniryynanen commented on June 24, 2024

Per pixel transparency fixes it for me in Linux, but not in Windows.

from godot.

bruvzg avatar bruvzg commented on June 24, 2024

Per pixel transparency fixes it for me in Linux, but not in Windows.

Per-pixel transparency should almost always work with OpenGL, but with Vulkan it depends on GPU driver capabilities, and a lot of Windows drivers do not support it (and it can't be fixed in Godot while preserving reasonable performance).

from godot.

Koyper avatar Koyper commented on June 24, 2024

Works correctly for MacOS also. You could call DisplayServer.is_window_transparency_available() on Windows and see what happens?

Returns true if the window background can be made transparent. This method returns false if Display > Window > Per Pixel Transparency > Allowed is set to false, or if transparency is not supported by the renderer or OS compositor.

from godot.

anniryynanen avatar anniryynanen commented on June 24, 2024

That must be it, DisplayServer.is_window_transparency_available() is false.

How does the Godot editor have transparent rounded corners? They work fine for me in Windows and the editor performance is fine for a non-game app. I guess it's the window decorations from Windows.

The project I want these tooltips for is also not a game and doesn't need super performance, so maybe I could make my own Godot build for it with the pixel transparency support.

Or I could add it as a code only option to Godot and put it behind a huge "THIS WILL KILL YOUR PERFORMANCE" warning. Would that be likely to be merged if I made a PR?

Edit: ...or, thinking about it some more, I could just change my project to Compatibility mode. Which is a lot better solution I guess. :)

from godot.

bruvzg avatar bruvzg commented on June 24, 2024

How does the Godot editor have transparent rounded corners?

Where? I think Godot editor is not using transparent corners anywhere, and do not have transparency enable.

from godot.

bruvzg avatar bruvzg commented on June 24, 2024

Or I could add it as a code only option to Godot and put it behind a huge "THIS WILL KILL YOUR PERFORMANCE" warning. Would that be likely to be merged if I made a PR?

It's not implemented, but we tested something similar for 3.x at some point, and performance was abysmal, like 3.fps max. The idea is to render to the offscreen texture and present it using UpdateLayeredWindow.

from godot.

anniryynanen avatar anniryynanen commented on June 24, 2024

How does the Godot editor have transparent rounded corners?

Where? I think Godot editor is not using transparent corners anywhere, and do not have transparency enable.

In the settings windows:

image

from godot.

anniryynanen avatar anniryynanen commented on June 24, 2024

I'm guessing it's because they're native windows and have the Windows decorations.

from godot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.