Theora inside TGEA 1.8.1
by Frank Bignone · in Torque Game Engine Advanced · 03/20/2009 (1:18 am) · 24 replies
Just tackling the issue to put Theora inside TGEA 1.8.1.
I got the decoding part of the code to work correctly as can be shown with the lower part of the next screenshot. Nevertheless, I have some issue with the texture storage, as it looks like the bitmap is completely changed as shown in the top part of the next screenshot.
Two questions:
- the format of the bitmap if R8G8B8A8, will it be possible to know internally how it is stored for the texture and if I need to do some conversion?
- how can it be that the writeBmp is ok, and not the texture on which the bitmap is attached to (texture is created with KeepBitmap and Dynamic)?
Thanks for support.

I got the decoding part of the code to work correctly as can be shown with the lower part of the next screenshot. Nevertheless, I have some issue with the texture storage, as it looks like the bitmap is completely changed as shown in the top part of the next screenshot.
Two questions:
- the format of the bitmap if R8G8B8A8, will it be possible to know internally how it is stored for the texture and if I need to do some conversion?
- how can it be that the writeBmp is ok, and not the texture on which the bitmap is attached to (texture is created with KeepBitmap and Dynamic)?
Thanks for support.

About the author
Real programmers don't waste time recompiling; they patch the binary files... ... Real programmers don't waste time patching binary files; they patch memory.
#2
Will you be willing to share the fixes with us when you are done?
03/21/2009 (6:16 am)
You actually got theora working in 1.8.1? That's cool. Will you be willing to share the fixes with us when you are done?
#3
I'm currently looking at the sound part and when I will finish it I will put the different source code as a resource here.
03/21/2009 (11:09 pm)
Yes I got the video decoding working now. I'm currently looking at the sound part and when I will finish it I will put the different source code as a resource here.
#4
03/22/2009 (1:06 am)
Awesome. Great work Frank!
#6
03/22/2009 (8:26 am)
This is great! Thanks!
#7
03/22/2009 (9:45 am)
Need to add support from streaming sound in order to get the sound playback up. Found where to add it and currently adding a SFXStreamSource class to get it running.
#8
04/05/2009 (7:07 am)
thats exactly what needs to be fixed, Tom Spilman has been promising the SFX stuff for months now, im glad someone is on this. :)
#9
07/21/2009 (1:50 pm)
@Frank, were you able to finish this?
#10
07/21/2009 (3:36 pm)
Theora video playback is working. For the sound streaming, I started but stopped it as all my devs are now focused using T3D. I finished porting all Pelorea code to T3D and is working to finish the 'Tactical Extension' which is the core of Pelorea on T3D.
#11
07/21/2009 (3:46 pm)
You mean the video is working, but only the video part, no sound?
#12
07/22/2009 (7:32 am)
@Novack: Yes
#13
In any case, are there any chances of releasing that code Frank? Im really not up to the task of making the audio streaming, but maybe I could came up with something.
07/22/2009 (9:32 am)
Looked for a mail in your profile but is none. Did you have any comercial plans for that the code (as pack)?In any case, are there any chances of releasing that code Frank? Im really not up to the task of making the audio streaming, but maybe I could came up with something.
#14
07/22/2009 (4:00 pm)
@Novack: Send me a mail at frank at indie - zone . com; I will dig into my code and send it back to you.
#15
07/22/2009 (6:07 pm)
@Frank: Is the video loopable? I remember having trouble with that back in TGE. Anyway, I'd be interested in the fix/code as well.
#16
07/24/2009 (12:34 am)
Ok I will see this week-end and dig into my old code to put the source file here available.
#18
07/24/2009 (8:26 am)
Awesome! I can't wait to test it out.
#19
07/24/2009 (6:22 pm)
Just give me few times as I need to find back these source codes from an external drive... as I archived it few months ago.
Torque 3D Owner Frank Bignone
Darkhand Studio
looking at the sound now.