Will Torque support playing video files?
by ysun · in General Discussion · 02/05/2007 (8:13 pm) · 10 replies
Recently I downloaded a demo of C4 engine, it's a living room with a televesion and there is a video clip playing on it. I checked the files in demo directory, it's a quicktime video file.
It's interesting to sit in a virtual room and watch a television. Will Torque support playing video files in the engine?
It's interesting to sit in a virtual room and watch a television. Will Torque support playing video files in the engine?
About the author
Wanted by the police
#2
02/05/2007 (9:46 pm)
Thanks. It seems always face to the player, is it possible to make it as one face of a brush, so it can not always face to the player?
#3
02/05/2007 (9:56 pm)
Someone had a rock concert in space once. I forget.. the video went around a while maybe a year or two ago.
#4
It is for TGE 1.3 and relies heavily on the fxRenderObject. I'm not sure how difficult it would be to port. There also might be a more recent version of it. It was just a cursory search to get you started.
02/06/2007 (7:41 am)
Theora in-gameIt is for TGE 1.3 and relies heavily on the fxRenderObject. I'm not sure how difficult it would be to port. There also might be a more recent version of it. It was just a cursory search to get you started.
#5
02/06/2007 (7:52 am)
Please people, make sure your not leading someone down a long, frustrating path. The video support is already in 1.5.
#6
@Allyn, I knew Torque supported video but I didn't know Torque support playing video on one face of a brush.
02/06/2007 (8:48 am)
Quote:Theora in-gameYes, this is right the thing I want, thank you.
It is for TGE 1.3 and relies heavily on the fxRenderObject. I'm not sure how difficult it would be to port. There also might be a more recent version of it. It was just a cursory search to get you started.
@Allyn, I knew Torque supported video but I didn't know Torque support playing video on one face of a brush.
#7
02/06/2007 (8:54 am)
Did I accidentally post the Theora merge for 1.3 and not the using theora on in-game objects instead of the GUI?
#8
02/06/2007 (9:25 am)
Yes, you post the "video on in-game object" and I watched it, this is what I want. ;P
#9
I got it to compile by changing in fxVideoRenderObject.H
to:
edit I fixed the VideoCon error by adding the omitted $ (global) at the beginning of it. duhh.
Now, no errors. But no video eather.
Here's the whole of theoraTexture.cs:
02/07/2007 (7:30 pm)
Has anyone been able to get this to work in 1.5?I got it to compile by changing in fxVideoRenderObject.H
#ifndef _THEORACONTROL_H_ #include "gui/guiControl.h"
to:
#ifndef _THEORACONTROL_H_ #include "gui/core/guiControl.h"
edit I fixed the VideoCon error by adding the omitted $ (global) at the beginning of it. duhh.
Now, no errors. But no video eather.
Here's the whole of theoraTexture.cs:
function serverCmdPlayVideoFile()
{
%filename = "~/data/vid/911tribute.ogg"; //obviously change this name to a valid video and path :)
$VideoCon.setfile(%filename);
}
function serverCmdStopVideoFile()
{
$VideoCon.stop();
}
#10
wtc/data/missions/WorldTradeCenter.mis (0): Unable to instantiate non-conobject class fxVideoRenderObject.
Now, I have recompiled this resource several times. fxRenderVideoObject.cc and h are in the game/fx folder and added to the game/fx in the compiler. I'm lost.
Any clues? I know it's not finding the cc and h files, but I don't know why.
02/09/2007 (7:27 pm)
Ok, I have this error:wtc/data/missions/WorldTradeCenter.mis (0): Unable to instantiate non-conobject class fxVideoRenderObject.
Now, I have recompiled this resource several times. fxRenderVideoObject.cc and h are in the game/fx folder and added to the game/fx in the compiler. I'm lost.
Any clues? I know it's not finding the cc and h files, but I don't know why.
Torque 3D Owner Stephen Zepp