Game Development Community

How do you play video in T3D ?

by Nmuta Jones · in Torque 3D Beginner · 01/23/2010 (3:41 am) · 11 replies

Please forgive me for such an obvious question...but I never tried to get video working in TGE, so I never learned this.

I need to do cutscenes..... but I will be actually playing pre-rendered videos.

I would use Verve, but my hunch is that Verve does cut scenes based on Torque scenery, not pre-rendered video. Correct me if I'm wrong.

So what is my option for video in Torque? Is it Theora? If so, how do you get Theora working in T3D?

please advise.

#1
01/23/2010 (9:31 am)

Yep, Verve is a powerful tool for in-game cinematics.

For video playback, the engine supports Theora video. Convert/export your video in Theora format, put a GuiTheoraCtrl in your GUI, and point its "theoraFile" property to the video file.

Playback can be either controlled manually from scripts (play(), pause(), stop()) or the control can be made to play automatically when it is pushed onto the canvas.
#2
01/23/2010 (9:35 am)
Playing videos is still done via theora. You need to use a GuiTheoraCtrl to do it.
#3
01/23/2010 (12:16 pm)
thanks guys
#4
01/24/2010 (7:33 pm)
There's a video of a feature of Torque3d currently in development:
torque.mythoslabs.com/static/t3d_web_rendertexture.jpg
Using QTWebkit it will mean being able to view videos in-game as well as web content.
#5
01/24/2010 (9:47 pm)
Advanced render to texture for videos. In game, and real time. And being able to display web pages too? Amazing.
#6
01/25/2010 (2:15 am)

Yep, Josh is working on some really great integration here. With quite a variety of use cases.
#7
01/25/2010 (12:58 pm)
i wanted to ask if there's the t3d basic version of verve(or if it is only for the pro version :-( ) thanks
#8
01/25/2010 (1:03 pm)
Yes, you can purchase Verve if you only have the "basic" version of T3D (I know because I contacted the creator directly).

However, you have to be aware of the fact that Verve made some source code changes, so if you are using any other kits, it will require some work to get it all integrated with Verve.

But that's the case regardless of whether or not you have the pro or binary version of t3d.
#9
01/25/2010 (1:23 pm)
Thanks a lot!! :D
Ps: i tryed to add the actual verve software to cart and it says it needs the pro version of t3d. There's another way to getting it for the basic version?
#10
10/25/2010 (6:25 am)
Is the functionality to display webpages with video already already in T3D 2009 Pro 1.1 Beta 3?

I am hoping that to play streaming video, we can embed the stream into a webpage then display the webpage in T3D if it is already supported.
#11
10/25/2010 (4:17 pm)
Josh's webkit integration is not a built-in feature of Torque 3D but a resource he created. He released the code for a version of earlier this year in the T3D Private forums.