MZ Transparent game background for MZ?

Hello! Is there a plugin or script for MZ that would change the entire game window background to transparent? I found this post that has this for MV but it unfortunetly doesnt work for MZ.

I wanted to make a small project test for a desktop pet but for it to work I would need the game window to have no frame and be transparent, I was able to make the game run without a window frame by adding "frame": false on package.json but adding "transparent": true didn't do anything.

Thank you for giving the time to read this.
MV and MZ uses a different texture.
you may be able to use index.html probably (but need to test it).

as it is a body, the main is black, in de html, it reads:
HTML:
<body style="background-color: black">

change black to transparent and it may work (can't guarentee it).

you can try #FF0000 to see if its red, if it is, add 00 for transparency.
which is no color, which may solve it.
MV and MZ uses a different texture.
you may be able to use index.html probably (but need to test it).

as it is a body, the main is black, in de html, it reads:
HTML:
<body style="background-color: black">

change black to transparent and it may work (can't guarentee it).

you can try #FF0000 to see if its red, if it is, add 00 for transparency.
which is no color, which may solve it.
When I change to #FF0000 on the html folder, the game indeed starts fully red, the same happens when I put as transparent, the game starts as fully transparent. Then when the map loads, where there are not tiles, the screen turns black again. Maybe there is some part of the rpgmaker code that instantly puts a black background on the game under everything.
your suggestion did indeed help tho, thank you!
I try to help you tomorrow and rewrite the MV version, for MV and MZ compitible.
give me a few days.
I try to help you tomorrow and rewrite the MV version, for MV and MZ compitible.
give me a few days.
Thank you so much! I really really apreciate it!
Thank you so much! I really really apreciate it!
I did mess around with some approached, aliases the graphics app for MZ
and renderer for MV.

also paint the tiles for MV and addSpots in MZ.

the funny thing here is that MZ works, as I use a region ID, but while it makes it invisible
the MV version didn't do a thing.

I also tried the MV plugin from the post out of curiously but did nothing at all.
no change.

anyway, I did mess further, to make package.json for transparent true and document.
it is white, but it never loaded the game, and can click through.

while it may be possible, of all the attempts behind that from what I had.
I took a different approach => none of them seems to work what I want.

so I'm out of ideas at this point, as I got stuck, didn't find much else what
I could do to make it work, but I have no option left to try.

I did my best for what I could, but I truly have no idea what I can do more.

even altering screensprite but a different way for adding alpha, didn't seem to work.

I wish you good luck on the project and that someone has a better way or success.
I did mess around with some approached, aliases the graphics app for MZ
and renderer for MV.

also paint the tiles for MV and addSpots in MZ.

the funny thing here is that MZ works, as I use a region ID, but while it makes it invisible
the MV version didn't do a thing.

I also tried the MV plugin from the post out of curiously but did nothing at all.
no change.

anyway, I did mess further, to make package.json for transparent true and document.
it is white, but it never loaded the game, and can click through.

while it may be possible, of all the attempts behind that from what I had.
I took a different approach => none of them seems to work what I want.

so I'm out of ideas at this point, as I got stuck, didn't find much else what
I could do to make it work, but I have no option left to try.

I did my best for what I could, but I truly have no idea what I can do more.

even altering screensprite but a different way for adding alpha, didn't seem to work.

I wish you good luck on the project and that someone has a better way or success.
That's ok. Thank you so much again for trying to help me! I'll try looking again at rpgmaker's code and see if I can find something, if I do I will share here!
I took a different approach, and got further.

Alter package.json and make sure it has the following:

Code:
"chromium-args": "--enable-transparent-visuals --force-color-profile=srgb --disable-devtools",

(force-color may be removed! and make sure the below exist)

        "transparent": true,
        "frame": false

from my understanding, the spinner in MZ seems to work without window =)
but in game it is black, from what I search, DMW (Desktop Window Manager)
has to be enabled in order to make this work.

in win10, 11 it should be enabled? as it can't be disabled, but need to test this.
I can't find any other way, for now, its a basic setup, unpolished to test stuff
which I mostly do before polishing it.

region 255 or empty tiles = transparant, but you can walk over this if it
has grass below it for example.

the screensprite to set its color make it red, but remove always also show black
on my end, probably because of the DMW not enabled or active which is probably
why I failed.

the graphics parts is probably not needed, but I had it to get alpha true, but its false
again somehow when messing around to make things work.

if it also show black on your end (and region use), than check if DMW is active.
as this must be enabled (also use more GPU and what programs are active.

and how far your system can handle it.
but I can't test it further or if it even will work if DMW must be active in order
to work, if those is disabled/deactivated, than I don't know what purpose it could have.

its all I can find and work, just the spinner, maybe more, but test it as I got stuck.
but feel free to mess around further.
@zirpy Great news, mess some more and this is the result.
I will clean the code, so avoid issues, the entire black background is gone.

true opacity to see the background from the user (if its wallpaper or something else.

tile painting (region 255) is still there, so it require my base if you want to change that.
but it was quite a challenge and override createApp for MZ.

while it is a hybrid, I do hope it works for your end as well =)

and it was quite some searching around to handle it nicely.

I send you the plugin for testing, if it works for your end as well, I will release it
to the public if they want too.

and I try to mess around for MV too.

as this is probably a bit harder, as a different PIXI as well different creation.
(Image is proof of concept on my end, cant promise equal as yours)

I do some other tests, so it works correctly to follow what has to be done to get
the same effect.
ScreenHoles.png


I really like the effect though, and while its not there around, at least not a working version,
MZ has a working version soon ^^

Original thread: https://forums.rpgmakerweb.com/threads/transparent-game-background-for-mz.183236/