Videos
by Anthony Ratcliffe · in Torque Game Builder · 01/04/2009 (11:58 am) · 3 replies
Is there a way to play videos' withing tgb. looking to do prerendered cutscenes in max any file format like avi to flash
About the author
#2
==>MyVideo.setFile("C:\Users\ant\Documents\MyGamesj\MyGame\game\data\1.ogg");
TheoraTexture::setFile - Theora file 'C:UsersantDocumentsMyGamesjMyGamegamedata1.ogg' not
01/05/2009 (9:44 am)
Is there any other way not liking that codec==>MyVideo.setFile("C:\Users\ant\Documents\MyGamesj\MyGame\game\data\1.ogg");
TheoraTexture::setFile - Theora file 'C:UsersantDocumentsMyGamesjMyGamegamedata1.ogg' not
#3
http://www.garagegames.com/community/forums/viewthread/48713
My only issue now is trying to figure out how to add functions to this .gui so I can control the click through & load next level command.
I pulled the functions from the GuiAviBitmapCtrl code, but can't seem to integrate them into theora even though they both have very similar structures.
Any suggestions on how to make this code work for closing out my Theora video(plays fine) and going to the next level?
03/07/2009 (7:33 pm)
For those trying to figure out this problem, this post helped fill in a lot of blanks:http://www.garagegames.com/community/forums/viewthread/48713
My only issue now is trying to figure out how to add functions to this .gui so I can control the click through & load next level command.
I pulled the functions from the GuiAviBitmapCtrl code, but can't seem to integrate them into theora even though they both have very similar structures.
Any suggestions on how to make this code work for closing out my Theora video(plays fine) and going to the next level?
function MyVideoBehavior::onLevelLoaded(%this, %scenegraph)
{
exec("~/gui/THEORATEST.gui");
if ($playingVideo != 1)
{
canvas.getContent().add(MyVideo);
Canvas.hideCursor();
MyVideo.setFile("./game/data/images/TEST3.ogm");
}
else
{
Canvas.showCursor();
MyVideo.stop();
canvas.getContent().remove(MyVideo);
sceneWindow2D.schedule(0, endLevel);
sceneWindow2D.schedule(1, loadLevel, expandFileName ("~/data/levels/level1.t2d"));
}
}
Torque Owner Shaderman