Game Development Community

t2dTheoraObject (video object - non GUI) - anything like this exist yet?

by Dave Calabrese · in Torque Game Builder · 08/30/2009 (8:21 pm) · 3 replies

I'm looking around the forums and trying to see if anyone has ever created a t2d control that plays a Theora video file. For one of my projects, I need to play something with a lot of frames of animation, so instead of trying to load it all up as an animated object, I'm thinking playing it as a video file would actually be less memory intensive. Since Theora already works in Torque2D through the GUI system, I'm considering just porting that code into a custom t2dObject and call it something like t2dTheoraObject or t2dVideoObject.

Anyone ever created something like this, or know of a link in the forums I might just be missing in my searches? If not, if I end up using this solution, I'll post it as a resource.

#1
08/31/2009 (5:42 am)
Would it support transparency? In any case, I've not seen anything like it.
#2
08/31/2009 (5:50 am)
If all we're doing is re-routing the output from a theora file to what is posted to a scene object, I don't see why it couldn't support transparency. I'd probably set it up so the transparency is handled through a separate .PNG or .TGA file...
#3
08/31/2009 (6:21 am)
I'd be surprised if theora files stored alpha values as well. I imagine that you'd have to use separate files for the object's mask.