Got Theora movie support in Torque :)
by intangir · in Torque Game Engine · 03/01/2005 (2:54 pm) · 36 replies
I got theora movies to play in torque! :)
i wrote a new GuiTheoraCtrl which is kinda like GuiAviBitmapCtrl, except it plays Theora video files, and it does it using another class: TheoraTexture which i wrote (you should be able to use it anywhere you can use a TextureHandle/Object (for 3d models even!)
Next im working on a way to render a sprite(billboard) using the TheoraTexture, already ive changed the fxFoiliageReplicator(cause its one of the only ways to do 2d sprites in game) to use my TheoraTextures
(this would be a pretty great feature in torque2d too)
What is theora? its a license free, open source, crossplatform compatible video format thats comparable to more popular formats (DivX,Mpeg4,etc)
im using SDL, OGG, and Theora Libraries
http://www.soulfire.cc/misc/theoratorque.avi
i wrote a new GuiTheoraCtrl which is kinda like GuiAviBitmapCtrl, except it plays Theora video files, and it does it using another class: TheoraTexture which i wrote (you should be able to use it anywhere you can use a TextureHandle/Object (for 3d models even!)
Next im working on a way to render a sprite(billboard) using the TheoraTexture, already ive changed the fxFoiliageReplicator(cause its one of the only ways to do 2d sprites in game) to use my TheoraTextures
(this would be a pretty great feature in torque2d too)
What is theora? its a license free, open source, crossplatform compatible video format thats comparable to more popular formats (DivX,Mpeg4,etc)
im using SDL, OGG, and Theora Libraries
http://www.soulfire.cc/misc/theoratorque.avi
About the author
#2
03/01/2005 (3:08 pm)
Very neat
#3
03/01/2005 (3:17 pm)
Will probably release it as a resource soon as i finish cleaning some of it up
#4
03/01/2005 (5:00 pm)
Sweet. BSD licensed, too. So we get the benefits of an open source project and the ability to use interface with a commercial project.
#6
03/02/2005 (2:18 am)
Very cool! Did you test it under Mac OSX, too?
#7
im not totally done yet either (it doesnt destroy it self properly, no looping, no restarting, stuff like that..)
03/02/2005 (7:48 am)
So far ive only tested it on windowsim not totally done yet either (it doesnt destroy it self properly, no looping, no restarting, stuff like that..)
#8
03/02/2005 (8:06 am)
Sweet!
#9
but it can loop, and restart and seamlessly transition between movies, (as long as the 2nd movie is the same dimensions)
it also cleans itself up correctly (i think), also it can run more than one at a time but it starts getting really choppy
i might try to submit a resource for it later
03/03/2005 (7:34 am)
I think its about done, i dont have pausing stillbut it can loop, and restart and seamlessly transition between movies, (as long as the 2nd movie is the same dimensions)
it also cleans itself up correctly (i think), also it can run more than one at a time but it starts getting really choppy
i might try to submit a resource for it later
#10
04/05/2005 (10:00 am)
Wow this is very cool
#11
04/27/2005 (1:28 pm)
Man, I wanted to do this... Nice job. We should get in touch and polish this properly - I'm pretty sure it should be in the official codebase. ;)
#12
04/27/2005 (1:31 pm)
Getting this in HEAD would rock!
#13
04/27/2005 (4:48 pm)
Jes Jes, must get Theora in head, chop chop.
#14
04/27/2005 (9:52 pm)
I swear Ben was just talking about this 3 days ago as a project for his weekend plans. This is great! We were all talking about how cool it was you could decompress to a texture and you could get not just deltas out of the stream, but a whole frame etc.
#15
04/27/2005 (10:25 pm)
}:~) .
#17
trying to make it so you dont need SDL
next im gonna make it play the vorbis stream in sync with the video
05/10/2005 (9:10 am)
Im working on this againtrying to make it so you dont need SDL
next im gonna make it play the vorbis stream in sync with the video
#18
thankx
02/28/2006 (3:05 pm)
I cant work with Theora files is there anyone can give me examples or totourials for it plz i need it ??? thankx
#20
03/09/2006 (6:55 am)
I am having difficulties getting the Theora control to work in Torque 1.4. My video plays fine the first time. Subsequent replays cause the player to play as if in slow motion without audio. It almost looks as if you were downloading a video file and playing it before the buffer was completely full. I've seen other threads where this was a problem in early Torque 1.4 releases. However, I am using the latest official release and this is still a problem. Early release candidates had fixed this issue but at that time Torque 1.4 release candidates were not using mutexes. Any suggestions?
Associate Joseph Euan