About Gaussian Blur...

Started by byronhaochen, 13 January 2025, 05:24:01

byronhaochen

Hi :) , how to use Gaussian blur effect in the background of Panel?

texus

It's not possible with TGUI directly. You should add a Canvas widget to the panel and somehow render your gaussian blur on that canvas.

Assuming you use the SFML_GRAPHICS renderer: if you can get the wanted effect in SFML with an sf::RenderTexture, then you can get the same effect in TGUI by replacing the sf::RenderTexture with a tgui::CanvasSFML

byronhaochen

Quote from: texus on 13 January 2025, 08:37:18It's not possible with TGUI directly. You should add a Canvas widget to the panel and somehow render your gaussian blur on that canvas.

Assuming you use the SFML_GRAPHICS renderer: if you can get the wanted effect in SFML with an sf::RenderTexture, then you can get the same effect in TGUI by replacing the sf::RenderTexture with a tgui::CanvasSFML
Okay, thank you!