Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML Color bug for transparent windows with nvidia gpu  (Read 1675 times)

0 Members and 1 Guest are viewing this topic.

6Peppered9

  • Newbie
  • *
  • Posts: 9
    • View Profile
SFML Color bug for transparent windows with nvidia gpu
« on: May 14, 2021, 11:25:33 am »
Hello,
3 years ago i posted a question how to make the window background transparent.
link: https://en.sfml-dev.org/forums/index.php?topic=24697.msg165592#msg165592

The user "texus" hacked some code in the SFML source to work around.

This works fine on Intel GPUs, but on Nvidia GPUs it seems that everything (colors, textures, etc) is drawing with an alpha channel and looks semi transparent

Is there a way to fix this?
I'm not familiar with the xlib API but it i think it can be a problem in the nvidia driver.

My 2 question is how other libs like qt or gtk do this?
And why is there not the possibility to create transparent windows in SFML?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10150
    • View Profile
    • development blog
    • Email
Re: SFML Color bug for transparent windows with nvidia gpu
« Reply #1 on: May 17, 2021, 09:00:10 am »
Note in the linked post there are two different scenarios, one is for only the background to be transparent and the other is for everything in the window to be transparent. Make sure you use the correct version.

I personally feel like it's a gimmick without a lot use, but if anyone can provide a proper implementation and API design, then I would certainly consider add it to SFML.
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

 

anything