catsout / wallpaper-engine-kde-plugin

A kde wallpaper plugin integrating wallpaper engine
https://store.kde.org/p/1475528/
GNU General Public License v2.0
1.71k stars 72 forks source link

Web wallpapers have no WebGL support at all #44

Open NyaomiDEV opened 3 years ago

NyaomiDEV commented 3 years ago

Describe the bug There is no WebGL support at all; and it is used by a lot of complex web wallpapers to properly render.

Workshop link https://steamcommunity.com/sharedfiles/filedetails/?id=1396475780

Kde version

Additional context It could be preferable to flat out use Chromium as a web backend? That way, it should be super simple to get all web wallpapers working... There are some projects that include CEF on QT Views (for example QCefView)

catsout commented 3 years ago

As readme says, WebEngineView in plasmashell can't init opengl.
https://github.com/Marcel1202/HTMLWallpaper/issues/2

catsout commented 3 years ago

This kde wallpaper plugin is used via qml in plasmashell.
It's nearly impossible to insert a QWidget in QML, so the QCefView dose not work.

Qt provide qml web support by WebEngineView item.
However it needs Qt::AA_ShareOpenGLContexts to make webgl work.
Qt::AA_ShareOpenGLContexts must loaded by plasmashell at the start, plasmashell dosn't enable this, so there is no webgl support.

NyaomiDEV commented 3 years ago

This kde wallpaper plugin is used via qml in plasmashell. It's nearly impossible to insert a QWidget in QML, so the QCefView dose not work.

Qt provide qml web support by WebEngineView item. However it needs Qt::AA_ShareOpenGLContexts to make webgl work. Qt::AA_ShareOpenGLContexts must loaded by plasmashell at the start, plasmashell dosn't enable this, so there is no webgl support.

I wonder if this can be requested to the kde developers themselves

LuckShiba commented 10 months ago

Qt provide qml web support by WebEngineView item. However it needs Qt::AA_ShareOpenGLContexts to make webgl work. Qt::AA_ShareOpenGLContexts must loaded by plasmashell at the start, plasmashell dosn't enable this, so there is no webgl support.

Qt::AA_ShareOpenGLContexts is enabled on Plasma Shell since january 2022, so is it now possible?

queenbiscuit311 commented 8 months ago

One thing to note: in my experience webgl wallpapers work perfectly fine on my intel igpu, and then just don't work at all if i run my laptop solely on its nvidia gpu. seems to be a kde problem. Not sure if it works on AMD.