Game Development Community

RGB video streaming input

by Dane McGreevy · in Torque Game Engine · 05/10/2007 (4:43 pm) · 2 replies

Hi All,

Has anybody ever worked out or is working on bringing the video captured streaming images (RGB) in TGE? I am hoping to get it working and stretch the input images over the PlayGui as the game background or any GUI else while still keeping the rendered objects (trees, rocks and players, etc, mainly TSStatics objects) at the front. I would think it may be a matter of texture buffer swap, isn't it?

Is it possible to achieve this? And complexity of OpenGL implementation?

Any pointer would be greatly appreciated!!!

Alex

#1
05/11/2007 (9:50 pm)
Looking into TheoraTexture will be a starter to see how getting it to work with Torque and OpenGL. Most important thing you want to learn is how to get the data decoded into a TextureHandle.

There are several open-source video capturing APIs that you can find. Once you have decided on one, you can replace the Theora's decoding loop with calls to that API.
#2
05/18/2007 (1:39 am)
Thanks Lateral for heaps! I'll have a look and try figuring it out.