Game Development Community

Playing video on background of title screen

by Ryan Zec · in Torque Game Engine · 04/29/2006 (12:29 pm) · 5 replies

I know i can put a bitmap on the backgrounf of the main menu but is there a way to set a avi or some video to play in the background?

#1
04/29/2006 (1:15 pm)
I believe the Ogg Theora control in 1.4 might be what you're looking for. The gameswf resource is also good as it allows you to play .swf flash animations in your GUI.
#2
04/29/2006 (1:40 pm)
I am looking on how to do it inside the GuiEdit. Like with a GuiChunkedBitmapCtrl you can set a Bitmap, is the a GUI cintrol where i can set a ogg file to repeat in the background?

ALso on a side note related in GUI objects, how can i make it so that the GUI control will always by the width and height of the application itself? and for the ogg video, I would also need to resize the video depneds on the resolution of the game, like if they wanted to resize game resolution but I would like to only use i ogg file, is that possible?
#3
05/02/2006 (2:58 am)
Anyone?
#4
05/02/2006 (3:47 am)
If you want to have a control abide to the relative size of the screen you can set the HorizSizing and VertSizing to relative. Or what are you looking for?

I don't think it's directly possible to play a ogg file inside a edit directly. There are two ways of doing it, what I can think of:

* Create the ability to play ogg files directly in the engine.
* Create a transparent edit and place it on top of a theora control.

Hope this helps.
#5
05/03/2006 (2:58 am)
Ryan, if you want the Theora ogg file to repeat, you'll need to implement this resource http://www.garagegames.com/mg/forums/result.thread.php?qt=36700

To create the Theora Control Gui, press F10, click New Control and scroll down to GuiTheoraCtrl. Click this to create your Theora Control. It will be black when you create it. Options appear in the bottom right of the screen, one of these is Theora Filename. Click into this and select what theora file you want to play. Then as Martin says, you can resize the Theora Ctrl to whatever size suits you.