Theora as a DTS Texture in TGEA?
by Nicolai Dutka · in Torque Game Engine Advanced · 11/03/2009 (10:02 pm) · 1 replies
I've been doing searches and all I can find are threads about how to add a video object in TGE 1.3 - 1.4. I also see posts stating that what I want is already integrated in TGEA, but I am not finding any documentation on this.
I have a computer in my level and would like to display an OGG file on the screen so it will appear to have an animated screen saver. I already know about animated textures and put simply, this just isn't good enough... Anyone know exactly how I would get a Theora control to display on a DTS? A simple to understand, step-by-step tutorial would be ideal... Thanks!
I have a computer in my level and would like to display an OGG file on the screen so it will appear to have an animated screen saver. I already know about animated textures and put simply, this just isn't good enough... Anyone know exactly how I would get a Theora control to display on a DTS? A simple to understand, step-by-step tutorial would be ideal... Thanks!
Associate Rene Damm
Unfortunately, a simple to understand, step-by-step tutorial I can't give. What I can say is the functionality is *not* there out of the box.
There is a TheoraTexture class but this is not derived from GFXTextureObject and the GFX texture manager has no clue of how to turn a video file into a texture object--which would be necessary for video files to be usable with Materials.
Integrating TheoraTexture with GFX would be a bit of work, especially because TheoraTexture isn't a single texture but rather multiple textures for smoother playback (if not, video could not update while the single texture is locked and refreshing).
So in short: not without some C++ heavy-lifting.
If one were so inclined to add this functionality to TGEA, then I *think* the simplest way might be to derive a separate Material and ProcessedMaterial that simply renders the current front-buffer from the TheoraTexture.