|Topic was automatically imported from the old Question2Answer platform.
Is there a way to to this? I have a TV in game that needs to play video or an image sequence and I can’t figure out how to set something like this up. I would like to avoid using a tilesheet as that seems limiting for a video. I’m also pretty new with godot and I’ve hear people tell me to use the animatedtexture item, however I can’t find any documentation on setting that up. If anyone could help me with this I will be extremely grateful. thank you in advance!
I just put one in a 3D game I’m working on:
Create a tree like this:
Sprite3D texture to a
New ViewportTexture then a menu will show up where you’ll select the
Set the size of the
VideoPlayer to a size. I chose
560x315 cause it’s a 16:9 resolution that fits my wall. Or just go with the size of the video and scale the
Sprite3D or change its
Also turn on
Render Target > V Flip of the
MAN! You friggin rock. You can’t imagine how many different things I’ve tried. this worked beautifully. Thank you so much. I have a few closing questions and I should be good… In the video player, is there a loop option? And is webm+ogv the only supported format? no worries about the format, that was easy to convert.
zedsterr | 2019-06-11 20:20
There’s no loop option but you can connect the
finished signal to the
play() function of the
VideoPlayer either directly in the editor or in script.
There seems to be a delay which causes a flash before the video is replayed. To workaround this, you can add a
ColorRect with black color under the
The WebM and OGV are open and free, their licenses work with Godot’s MIT license. Related issue: is there a way for VideoPlayer to play mp4 file.
Dlean Jeans | 2019-06-12 02:54
No worries. I did figure out how to use scripts too now and added one in that loops my video without a flash even. I will post a link up when I’m back at my work computer. This has been an awesome learning experience and I feel like I’m really getting to know the engine better. I can’t wait to learn more!
zedsterr | 2019-06-12 03:00
just registered in this forum so i can upvote your comment. thank u so much
eloisa2007 | 2020-12-22 02:47