MZ Animations with transparent backgrounds - video files or other methods?

Hello, I'm wondering if its possible to play an image sequence or a video file with a transparent background on RMMZ? Elements of my UI have animated sequences between navigation and its important that the background is still transparent, I tried to do the show image / wait 1 frame / show next image using the same ID but it was slow and clunky... I also tried NIJI_VideoPlayer plugin but it autofilled the background with a gray, so 🙁( any guidance I'd really appreciate, thank you!

(Please note that the images are 1920 x 1080, so I'm not sure if an animation sheet could work in my scenario! It is also not possible to reduce the size since the UI fills the screen. Just clarifying to paint a clearer picture.)
Your best option is probably to use videos.

MZ supports videos with transparency because PixiJS supports it.

I'm not a video guy, so I don't know exactly the setup for exporting a webp video with an alpha channel, but once that's done, the implementation on the MZ side is straightforward. Here's a minimal code example:

JavaScript:
let video = document.createElement('video');
video.loop = true;
video.src = 'filename.webp';

let texture = PIXI.Texture.from(video);
let video = new PIXI.Sprite(texture);

//then add the video sprite to some stage
//SceneManager._scene.addChild(video);
I am curious about your use of the show picture variant.
Can you show how you did that, because there are several possible mistakes you could have made with them, that would slow things down without a need.

And even if it had nothing to do with the event code but with load delay, then you could try a preloader for those pictures (although that is somewhat limited as well if there are too many pictures).
Your best option is probably to use videos.

MZ supports videos with transparency because PixiJS supports it.

I'm not a video guy, so I don't know exactly the setup for exporting a webp video with an alpha channel, but once that's done, the implementation on the MZ side is straightforward. Here's a minimal code example:

JavaScript:
let video = document.createElement('video');
video.loop = true;
video.src = 'filename.webp';

let texture = PIXI.Texture.from(video);
let video = new PIXI.Sprite(texture);

//then add the video sprite to some stage
//SceneManager._scene.addChild(video);
Ugh one of the many scenarios I curse myself for not knowing how to code!! This looks very helpful, I think I might have to commission a plugin maker to to make a plugin with this functionality, thank you for your guidance my friend!

I am curious about your use of the show picture variant.
Can you show how you did that, because there are several possible mistakes you could have made with them, that would slow things down without a need.

And even if it had nothing to do with the event code but with load delay, then you could try a preloader for those pictures (although that is somewhat limited as well if there are too many pictures).

I have since deleted the event, but I don't think it would be possible in my scenario since my animations are 24 frames per second, I'd also prefer to avoid this as while I was testing different methods before this query was approved by the moderators I realized it would be really tedious, my longest animation is 47 frames in total and that doesn't count the layering of visuals with different animations that would also be 24 fps... Thank you for your willingness to help though! I'm sure I made some mistakes but it's probably not a viable path regardless for my use case 🙁(

Original thread: https://forums.rpgmakerweb.com/threads/animations-with-transparent-backgrounds-video-files-or-other-methods.183173/