TGEA & Theora
by Adam Beer · in Torque Game Engine Advanced · 08/31/2007 (2:00 pm) · 20 replies
Hello,
I added this resource here:
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9958
and the videos will play but only in the far left side. The video plays about 2 pixels wide and the full height of the theora video window. Not sure whats wrong, any ideas?

I added this resource here:
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9958
and the videos will play but only in the far left side. The video plays about 2 pixels wide and the full height of the theora video window. Not sure whats wrong, any ideas?

About the author
Adam is the owner of Ignition Games, an indie game and software development company.
#2
@Andrea -- Did you use Canvas.setContent() or Canvas.pushDialog() to make the TheoraGui control visible? If that isn't the problem then give more specific information about how you are playing the video and someone might be able to help you out.
09/04/2007 (12:52 pm)
@Adam -- I can't think of any one specific thing that would make it look like that. My suggestion would be to go back through the resource carefully and make sure all of the changes were made properly.@Andrea -- Did you use Canvas.setContent() or Canvas.pushDialog() to make the TheoraGui control visible? If that isn't the problem then give more specific information about how you are playing the video and someone might be able to help you out.
#3
09/06/2007 (12:16 am)
Adam does the playback work in fullscreen mode? Any hints from the console output?
#4
09/07/2007 (5:06 pm)
It works in fullscreen and there is nothing happening in the console.
#5
09/07/2007 (5:29 pm)
Wich tgea version are you using atm? Had some problems with resizing our placeholder in the migration attempt from 1.01 to 1.02... (regretably droped for lack of time) would get stuck re-initialising in the uperleft corner... *might* be related.
#6
I use in mainmenu :
and in "TestVideoGui" :
I'm using TGEA 1.0.1
09/09/2007 (1:27 am)
@ Jon WilsdonI use in mainmenu :
............. Command = "Canvas.pushDialog(TestVideoGui);"; .............
and in "TestVideoGui" :
//--- OBJECT WRITE BEGIN ---
new GuiChunkedBitmapCtrl(TestVideoGui) {
Profile = "GuiContentProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "0 0";
Extent = "800 600";
MinExtent = "8 8";
Visible = "1";
bitmap = "./background";
useVariable = "0";
tile = "0";
helpTag = "0";
new GuiTheoraCtrl(Filmato) {
Profile = "GuiDefaultProfile";
HorizSizing = "relative";
VertSizing = "relative";
Position = "0 0";
Extent = "800 640";
MinExtent = "8 2";
Visible = "1";
done = "1";
stopOnSleep = "1";
backgroundColor = "0 0 0 255";
};
};
//--- OBJECT WRITE END ---
function checkVideoDone()
{
if (Filmato.done)
{
Canvas.popDialog(TestVideoGui);
CursorOn();
}
else
schedule(100, 0, checkVideoDone );
}
function TestVideoGui::onWake(%this)
{
CursorOff();
video.done = false;
Filmato.setFile("test/data/video/video.ogg");
schedule(500, 0, checkVideoDone );
}
function TestVideoGui::onSleep(%this)
{
}I'm using TGEA 1.0.1
#7
Try using GuiControl instead of GuiChunkedBitmapCtrl like I did.
09/09/2007 (2:25 am)
Andrea, this is what I used for testing://--- OBJECT WRITE BEGIN ---
new GuiControl(VideoTest) {
canSaveDynamicFields = "0";
Profile = "GuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "800 600";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
//CloseCommand = "stopIntroVideo();";
new GuiTheoraCtrl(theo) {
canSaveDynamicFields = "0";
Profile = "GuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "169 81";
Extent = "600 450";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
done = "0";
stopOnSleep = "0";
backgroundColor = "0 0 0 255";
};
};
//--- OBJECT WRITE END ---Try using GuiControl instead of GuiChunkedBitmapCtrl like I did.
#8
Then I use :
And
What do you suggest to load the video ogg ???
in this mode ?
09/16/2007 (12:01 am)
@[Stefan]Then I use :
Command = "Canvas.setContent(VideoTest);";
And
What do you suggest to load the video ogg ???
in this mode ?
function VideoTest:onWake(%this)
{
CursorOff();
theo.setFile("test/data/video/video.ogg");
}
#9
09/23/2007 (3:56 am)
Sorry Andrea I'm currently on holidays and can't help you from here. I'll be back in a few days though...
#10
09/23/2007 (4:27 am)
Ooo is that a Russian front game with a PPSh41?
#11
09/23/2007 (6:49 am)
Its a WW2 game in general. It has the Russian front, the Western Europe front, the Finnish Winter War and the Pacific front. We have right now, Americans, Canadians, Brits, Finnish, Russians, Germans and Japs.
#12
09/24/2007 (9:15 am)
Ok Stefan I wait you ... but using this code I see pink video ... I listen sound of video but I don't see the video :-S
#14
Now I have resolved the problems by a deep control between my codes and the resource :
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9958
the problems were in GFX and D3D codes !!!
Thanks for your patience
Bye
;-)
10/20/2007 (1:25 am)
Thanks for All Stefan !!!Now I have resolved the problems by a deep control between my codes and the resource :
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9958
the problems were in GFX and D3D codes !!!
Thanks for your patience
Bye
;-)
#15
I have been working with the TGEA 1.0.3 SDK for some time now and it seems to be missing the files that provide the TheoraSupport. No mention of GuiTheoraCtrl.cpp or TheoraTexture anywhere in my codebase.
There is a passing mention of it some comments in oggMixedStreamSource.cpp.
Do I need to be getting the latest code from CVS in order to get these files?
Thanks very much
David Llewellyn
10/31/2007 (5:22 am)
I am having a slightly more fundamental problem with Theora support.I have been working with the TGEA 1.0.3 SDK for some time now and it seems to be missing the files that provide the TheoraSupport. No mention of GuiTheoraCtrl.cpp or TheoraTexture anywhere in my codebase.
There is a passing mention of it some comments in oggMixedStreamSource.cpp.
Do I need to be getting the latest code from CVS in order to get these files?
Thanks very much
David Llewellyn
#16
10/31/2007 (5:36 am)
There is no CVS you could access
#17
Neil
10/31/2007 (5:37 am)
David, i cound be wrong, but i think the theora files are in the tge codebase not tgea, so you would have to get them from there if you have a sdk. i havent gotten around to add this yet i so i cant really help beyond this.Neil
#18
10/31/2007 (6:21 am)
Not sure why they haven't implemented Theora in TGEA in 1.0... or even beyond. Thought it was made possible a while back with no issues... somewhere.
#19
I am very surprised that it's not already there are they quite clearly claim that it is available on this page
http://www.garagegames.com/products/torque/tgea/featurecomp/
I hope I can get access to the TGE CVS with my existing login, if we find that we are expected to buy a TGE licence too, my employers are unlikely to be happy.
Thanks again
David Llewellyn
10/31/2007 (6:51 am)
Thanks for your responses everyone. I guess I will try and get it from the TGE codebase and integrate as suggested in some of the other articles.I am very surprised that it's not already there are they quite clearly claim that it is available on this page
http://www.garagegames.com/products/torque/tgea/featurecomp/
I hope I can get access to the TGE CVS with my existing login, if we find that we are expected to buy a TGE licence too, my employers are unlikely to be happy.
Thanks again
David Llewellyn
#20
10/31/2007 (6:59 am)
David, as mentioned above, CVS is gone now, you should email GG about this and complain as it should be in there (going by the comp page) . if you get any joy, please let us know what they say.
Torque Owner Andrea Fraboni
C4DGames
When play the video the video start but I don't see it !!!
Why ???