This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+3 votes

Dear all,
I would like to play a simple animation before the game stars that shows 3-2-1-Go on top of the game view.
I have prepared a sequence of PNGs with transparent background with a third party editor, and then I made a webm video with ffmpeg:

ffmpeg -i start_0%03d.png -b:v 800k start.webm

That is the result: https://www.dropbox.com/s/mdj98jr2ynarqa5/start.webm?dl=0
It plays correctly in VLC with a black background, or in Chrome with any backgound-color CSS value.

The problem with Godot is that the VideoPlayer node can't reproduce it. I only get a black rectangle. Are WebM files with alpha supported by the engine?

Anyway, how do you usually solve this problem? I could also use an AnimatedSprite node with the original PNG sequence, even if it seems to me that a VideoPlayer node is more appropriate. What is the best practice for thees kind of animations or effects?

Thanks in advance.

in Engine by (21 points)

did you hear back anything from the devs ?
i really would like this feature too.
i have played around with colormasked videos, but it is cumbersome and also not nearly as flexible as a true alpha.

I would also be very interested in the possibility of viewing videos with transparency in Godot!

2 Answers

0 votes

I would really love this feature. 3.0 uses WebM which can support alpha.

by (16 points)
0 votes

I only get a black screen with WebM v.9 produced by ffmepg in Blender. When I used an outside converter to WebM v.8, Godot played the file perfectly.

by (20 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.