-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Window transparency broken on Windows #7544
Comments
Can't seem to repro this myself, going to try updating my drivers. Maybe should try a |
Same issue occurred on Mac OS on Metal. |
This is known, see the docs on https://dev-docs.bevyengine.org/bevy/prelude/struct.Window.html#structfield.transparent I opened a PR to improve the situation on macOS: #7617 On windows, it should be fixed by latest winit update, but I can't confirm it myself. |
Can confirm that the latest winit update has fixed this on Windows. |
Doc should be updated to remove mention of issues on windows: bevy/crates/bevy_window/src/window.rs Lines 130 to 135 in 2344b94
|
This appears to be broken on |
…ine#7832) # Objective Fix bevyengine#7544. Update docs for `Window::transparent` regarding Windows 11 platform support. Following the update to winit 0.28, this has been fixed. ## Solution Remove the mention in the docs.
@aevyrie @morfert Could you try running the winit example here? https://github.com/rust-windowing/winit/blob/master/examples/transparent.rs Will see if I can repro again this week. |
Investigating a bit and it seems like that might just be an issue with their example not drawing anything? |
This might be a red herring, but blur and similar decorators were broken in the tauri-adjacent crate on Win 11 22H2 |
My bad, the bevy example is actually fine on Win 11 22H2. |
Yeah, winit is probably fine I tried drawing something. TransparentWith:
Not transparentWith:
ConclusionAs long as something is drawn, winit seems to properly become transparent. AddendumThe Not transparent test is the unmodified minimal winit example from pixels. |
Pixels might not be the best library to test this, because of parasyte/pixels#370 |
Using the following code: let window = WindowBuilder::new()
.with_title("A simple window")
.with_transparent(true)
.build(&event_loop)
.expect("Builing window failed");
let instance = wgpu::Instance::default();
let surface = unsafe { instance.create_surface(&window) }.expect("Could not create surface");
for ad in instance.enumerate_adapters(wgpu::Backends::all()) {
info!(
"Adapter : {:?}\n Supported Alpha : {:?}",
ad.get_info(),
surface.get_capabilities(&ad).alpha_modes
);
} I enumerate to see all supported
Only |
I also have transparency not working as well, are there any active workarounds? |
Hi, are there any updates on this problem? |
How do we find gpu's that support PostMultiplied Apha Mode? |
Has they're been any update on this? transparency is still not working and now I'm noticing the examples just missing from the winit repo |
No updates.. I have been out of town for the last month.. thanksSent from my iPhoneOn May 23, 2024, at 11:55 PM, lunarcleint ***@***.***> wrote:
Has they're been any update on this? transparency is still not working and now I'm noticing the examples just missing from the winit repo
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
I also have this problem with AMD Radeon 680M on Win 11, only getting |
This has been fixed on the latest bevy 0.14 testing, try it out :D
…On Wed, Jun 26, 2024 at 2:13 PM KernelKrusha ***@***.***> wrote:
I also have this problem with AMD Radeon 680M, only getting Opaque in the
list of supported alpha modes. Not sure if that is related or not, but the
transparency example on master does not work.
—
Reply to this email directly, view it on GitHub
<#7544 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVFSDXX6PSQY7POCYW7JUKLZJMVFZAVCNFSM6AAAAAAUTWL7ZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJSGYZTKNRYHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
This will be fantastic is so. I will update and retest…Thank you Sent from my iPhoneOn Jun 26, 2024, at 8:38 PM, lunarcleint ***@***.***> wrote:
This has been fixed on the latest bevy 0.14 testing, try it out :D
On Wed, Jun 26, 2024 at 2:13 PM KernelKrusha ***@***.***> wrote:
I also have this problem with AMD Radeon 680M, only getting Opaque in the
list of supported alpha modes. Not sure if that is related or not, but the
transparency example on master does not work.
—
Reply to this email directly, view it on GitHub
<#7544 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVFSDXX6PSQY7POCYW7JUKLZJMVFZAVCNFSM6AAAAAAUTWL7ZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJSGYZTKNRYHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Off topic but why is there not a most current version number on the bevy
website? I had to look in github. The getting started or the front page
should have the most current version displayed.
IMHO.. :)
Thanks
On Wed, Jun 26, 2024 at 11:07 PM Brad Messerle ***@***.***>
wrote:
… This will be fantastic is so. I will update and retest…
Thank you
Sent from my iPhone
On Jun 26, 2024, at 8:38 PM, lunarcleint ***@***.***> wrote:
This has been fixed on the latest bevy 0.14 testing, try it out :D
On Wed, Jun 26, 2024 at 2:13 PM KernelKrusha ***@***.***>
wrote:
> I also have this problem with AMD Radeon 680M, only getting Opaque in
the
> list of supported alpha modes. Not sure if that is related or not, but
the
> transparency example on master does not work.
>
> —
> Reply to this email directly, view it on GitHub
> <#7544 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AVFSDXX6PSQY7POCYW7JUKLZJMVFZAVCNFSM6AAAAAAUTWL7ZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJSGYZTKNRYHE>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#7544 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABX2FUOSJ42N75E36CRW2DZJNNJDAVCNFSM6AAAAAAUTWL7ZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJSHA2DOMZVGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Reminder to all what it means to be an American. 1969..
https://www.youtube.com/watch?v=TZBTyTWOZCM
|
updated my little sample app to bevy 0.14-rc3.
Still getting errors on Windows.
This is error log...
warning: `trader-seth-event-calendar` (bin "trader-seth-event-calendar")
generated 3 warnings
Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 53s
Running `target\debug\trader-seth-event-calendar.exe`
2024-06-27T20:04:30.672264Z INFO
bevy_diagnostic::system_information_diagnostics_plugin::internal:
SystemInfo { os: "Windows 11 Home", kernel: "22631", cpu: "12th Gen
Intel(R) Core(TM) i7-12700H", core_count: "14", memory: "15.7 GiB" }
2024-06-27T20:04:32.601736Z INFO bevy_render::renderer: AdapterInfo {
name: "NVIDIA GeForce RTX 3060 Laptop GPU", vendor: 4318, device: 9568,
device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "551.86", backend:
Vulkan }
2024-06-27T20:04:33.752522Z INFO bevy_winit::system: Creating new window
"Trader Seth - Event Calendar" (Entity { index: 0, generation: 1 })
thread 'Compute Task Pool (7)' panicked at
C:\Users\bradm\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.20.1\src\backend\wgpu_core.rs:751
:18:
Error in Surface::configure: Validation Error
Caused by:
Requested alpha mode PostMultiplied is not in the list of supported
alpha modes: [Opaque]
note: run with `RUST_BACKTRACE=1` environment variable to display a
backtrace
Encountered a panic in system `bevy_render::view::window::create_surfaces`!
Thank You
On Thu, Jun 27, 2024 at 10:05 AM Brad Messerle ***@***.***>
wrote:
… Off topic but why is there not a most current version number on the bevy
website? I had to look in github. The getting started or the front page
should have the most current version displayed.
IMHO.. :)
Thanks
On Wed, Jun 26, 2024 at 11:07 PM Brad Messerle ***@***.***>
wrote:
> This will be fantastic is so. I will update and retest…
>
> Thank you
> Sent from my iPhone
>
> On Jun 26, 2024, at 8:38 PM, lunarcleint ***@***.***>
> wrote:
>
>
>
> This has been fixed on the latest bevy 0.14 testing, try it out :D
>
> On Wed, Jun 26, 2024 at 2:13 PM KernelKrusha ***@***.***>
> wrote:
>
> > I also have this problem with AMD Radeon 680M, only getting Opaque in
> the
> > list of supported alpha modes. Not sure if that is related or not, but
> the
> > transparency example on master does not work.
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <#7544 (comment)>,
>
> > or unsubscribe
> > <
> https://github.com/notifications/unsubscribe-auth/AVFSDXX6PSQY7POCYW7JUKLZJMVFZAVCNFSM6AAAAAAUTWL7ZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJSGYZTKNRYHE>
>
> > .
> > You are receiving this because you commented.Message ID:
> > ***@***.***>
> >
>
> —
> Reply to this email directly, view it on GitHub
> <#7544 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AABX2FUOSJ42N75E36CRW2DZJNNJDAVCNFSM6AAAAAAUTWL7ZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJSHA2DOMZVGI>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
>
--
Reminder to all what it means to be an American. 1969..
https://www.youtube.com/watch?v=TZBTyTWOZCM
--
Reminder to all what it means to be an American. 1969..
https://www.youtube.com/watch?v=TZBTyTWOZCM
|
sorry i had to update to Opaque mode.. and it works.
Thank You for the support !!!
On Thu, Jun 27, 2024 at 4:07 PM Brad Messerle ***@***.***>
wrote:
… updated my little sample app to bevy 0.14-rc3.
Still getting errors on Windows.
This is error log...
warning: `trader-seth-event-calendar` (bin "trader-seth-event-calendar")
generated 3 warnings
Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 53s
Running `target\debug\trader-seth-event-calendar.exe`
2024-06-27T20:04:30.672264Z INFO
bevy_diagnostic::system_information_diagnostics_plugin::internal:
SystemInfo { os: "Windows 11 Home", kernel: "22631", cpu: "12th Gen
Intel(R) Core(TM) i7-12700H", core_count: "14", memory: "15.7 GiB" }
2024-06-27T20:04:32.601736Z INFO bevy_render::renderer: AdapterInfo {
name: "NVIDIA GeForce RTX 3060 Laptop GPU", vendor: 4318, device: 9568,
device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "551.86", backend:
Vulkan }
2024-06-27T20:04:33.752522Z INFO bevy_winit::system: Creating new window
"Trader Seth - Event Calendar" (Entity { index: 0, generation: 1 })
thread 'Compute Task Pool (7)' panicked at
C:\Users\bradm\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.20.1\src\backend\wgpu_core.rs:751
:18:
Error in Surface::configure: Validation Error
Caused by:
Requested alpha mode PostMultiplied is not in the list of supported
alpha modes: [Opaque]
note: run with `RUST_BACKTRACE=1` environment variable to display a
backtrace
Encountered a panic in system `bevy_render::view::window::create_surfaces`!
Thank You
On Thu, Jun 27, 2024 at 10:05 AM Brad Messerle ***@***.***>
wrote:
> Off topic but why is there not a most current version number on the bevy
> website? I had to look in github. The getting started or the front page
> should have the most current version displayed.
>
> IMHO.. :)
>
> Thanks
>
> On Wed, Jun 26, 2024 at 11:07 PM Brad Messerle ***@***.***>
> wrote:
>
>> This will be fantastic is so. I will update and retest…
>>
>> Thank you
>> Sent from my iPhone
>>
>> On Jun 26, 2024, at 8:38 PM, lunarcleint ***@***.***>
>> wrote:
>>
>>
>>
>> This has been fixed on the latest bevy 0.14 testing, try it out :D
>>
>> On Wed, Jun 26, 2024 at 2:13 PM KernelKrusha ***@***.***>
>> wrote:
>>
>> > I also have this problem with AMD Radeon 680M, only getting Opaque in
>> the
>> > list of supported alpha modes. Not sure if that is related or not, but
>> the
>> > transparency example on master does not work.
>> >
>> > —
>> > Reply to this email directly, view it on GitHub
>> > <
>> #7544 (comment)>,
>>
>> > or unsubscribe
>> > <
>> https://github.com/notifications/unsubscribe-auth/AVFSDXX6PSQY7POCYW7JUKLZJMVFZAVCNFSM6AAAAAAUTWL7ZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJSGYZTKNRYHE>
>>
>> > .
>> > You are receiving this because you commented.Message ID:
>> > ***@***.***>
>> >
>>
>> —
>> Reply to this email directly, view it on GitHub
>> <#7544 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/AABX2FUOSJ42N75E36CRW2DZJNNJDAVCNFSM6AAAAAAUTWL7ZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJSHA2DOMZVGI>
>> .
>> You are receiving this because you commented.Message ID:
>> ***@***.***>
>>
>>
>
> --
> Reminder to all what it means to be an American. 1969..
> https://www.youtube.com/watch?v=TZBTyTWOZCM
>
--
Reminder to all what it means to be an American. 1969..
https://www.youtube.com/watch?v=TZBTyTWOZCM
--
Reminder to all what it means to be an American. 1969..
https://www.youtube.com/watch?v=TZBTyTWOZCM
|
The example from https://github.com/bevyengine/bevy/blob/release-0.14.0/examples/window/transparent_window.rs does not work for me. I'm getting a black background. Bevy 0.14, Windows 10, Vulkan, [Opaque]
|
I had the same problem. I have to update NVIDIA graphic card version to get it working. Before: After: |
561.09 for NVIDIA GeForce GTX 1080 - the newest available driver - still doesn't work. The background is still black 😞 |
This largely appears to be a |
Bevy version
main
The
transparent_window
example appears to have broken.The text was updated successfully, but these errors were encountered: