Inochi2D / inochi-session

Application that allows streaming with Inochi2D puppets
https://inochi2d.com
BSD 2-Clause "Simplified" License
293 stars 21 forks source link

Weird background rendering problems when running on Wayland #2

Closed grillo-delmal closed 1 year ago

grillo-delmal commented 2 years ago

When running inochi-session on Wayland if you start moving the window, the model or the opaque things around, they appear to leave a visible trace that doesn't show on screenshots, but also doesn't leave until you refresh the window some way (like minimize + maximize).

Here is a picture that I took on my phone of the issue: image

This doesn't happen when using X11 or when running on Wayland using the X11 SDL video driver (setting the envs SDL_VIDEODRIVER=x11 SDL_VIDEO_X11_FORCE_EGL=1).

This also stopped happening when commenting the line that sets SDL_HINT_VIDEO_EGL_ALLOW_TRANSPARENCY to 1 on my debug build.

This was tested on the binary provided by the 0.0.1 AppImage using a compiled cimage.so and on a Fedora 36 environment (SDL2-2.0.22).

LunaTheFoxgirl commented 2 years ago

My assumption is that the compositor you're using doesn't support transparent framebuffers which are neccesary for xcomposite transparency (to avoid having to use chroma keying)

LunaTheFoxgirl commented 1 year ago

Closing as duplicate of https://github.com/Inochi2D/inochi-session/issues/22