-
Notifications
You must be signed in to change notification settings - Fork 1
Linux Differences
Content Copied in from Readme
If the game has a native Linux version, don't use it. Switch to the Windows version of the game. In Steam, you can do that from Properties > Compatibility, by ticking the box and choosing a Proton version.
To use the Spout feeds, you will need Spout2PW and obs-pwvideo by Hoshino Lina. Those are no longer actively developed, but they still work fine.
You may want to set the SPOUT2PW_INSTANCE variable to something, so the video feed name doesn't change for each game.
MemoryMappedFiles are a Windows feature. Wine has support, but that is contained to inside a wine instance. Communication across instances, to relay information between VNyan and the game, requires some additional code. OnAirTap has logic to use native Linux shared memory, but pulling the data out of LIVnyan's MMF requires a helper program. That's mmf_vnyan, which you can run by setting the PROTON_REMOTE_DEBUG_CMD environment variable when you run VNyan.
The helper exe currently has no accessible stop mechanism, so you will have to end it yourself.
Pipewire Video sources can only be premultiplied. It is assumed that the feed always is, and there's no built-in way to change that, so some workarounds are needed.
As stated above, most filters will reset the source back to straight alpha. I personally use a shaderfilter with the default shader, but you can use an unmodified Colour Correction.
To ignore the alpha channel, we can't use a filter, because those will first re-do the multiplication and blank out areas of the image. Instead, I put the source in a group with a black colour source of the same size. Filters, like Advanced Mask, can then be applied to the group.
Groups cannot be nested, though. If you need to put your source inside a group, you might need to use a separate scene. In that scene, put the pipewire source and a colour. You can then bring the scene into your original scene as a source, at which point it can be inside a group.