wallpaper-engine-kde-plugin icon indicating copy to clipboard operation
wallpaper-engine-kde-plugin copied to clipboard

Web wallpapers have no WebGL support at all

Open NyaomiDEV opened this issue 3 years ago • 5 comments

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

  • Kde: 5.22.4
  • Qt: 5.15.2
  • OS: Artix Linux

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)

NyaomiDEV avatar Aug 27 '21 03:08 NyaomiDEV

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

catsout avatar Aug 27 '21 05:08 catsout

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.

catsout avatar Aug 27 '21 05:08 catsout

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

NyaomiDEV avatar Aug 27 '21 17:08 NyaomiDEV

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?

LuckShiba avatar Nov 13 '23 18:11 LuckShiba

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.

queenbiscuit311 avatar Dec 22 '23 01:12 queenbiscuit311