Can we include video stream into the OpenGL?
by Dane McGreevy · in Torque Game Engine · 06/05/2006 (12:01 am) · 6 replies
Hello All,
Hope what I am saying is of your interest. I am considering binding the digital camera (webcam) with Torque so that the video stream would be displaying as the background of the same GLUT window as Torque canvas. So questions to follow up:
1. I found out a GuiAviBitmapCtrl class in the source codes. Does it particularly handle the video capture and display jobs?
2. Is it feasible to include a 3rd-party DSVL video camera api with Torque OpenGL codes if GuiAviBitmapCtrl doesn't work with it? I have got that api.
3. If the inclusion of digital camera is workable with torque, where to put the camera initialisation and video capture routines into torque souce code? Now that the video and torque canvas would share the same GLUT window, I guess the camera is supposed to be initialised with OpenGL Init (is it InitOpenGL() in winWindow.cc?) and the video frame processing job with platform::process() rountine. Am I correct?
4. Can the sky be removed in order to display the video as background?
I am desperate to get it working. Any pointer or suggestion will be greatly appreciated!!!
Hope what I am saying is of your interest. I am considering binding the digital camera (webcam) with Torque so that the video stream would be displaying as the background of the same GLUT window as Torque canvas. So questions to follow up:
1. I found out a GuiAviBitmapCtrl class in the source codes. Does it particularly handle the video capture and display jobs?
2. Is it feasible to include a 3rd-party DSVL video camera api with Torque OpenGL codes if GuiAviBitmapCtrl doesn't work with it? I have got that api.
3. If the inclusion of digital camera is workable with torque, where to put the camera initialisation and video capture routines into torque souce code? Now that the video and torque canvas would share the same GLUT window, I guess the camera is supposed to be initialised with OpenGL Init (is it InitOpenGL() in winWindow.cc?) and the video frame processing job with platform::process() rountine. Am I correct?
4. Can the sky be removed in order to display the video as background?
I am desperate to get it working. Any pointer or suggestion will be greatly appreciated!!!
#2
Im using vidCapture library:codevis.com/vidcapture/index.html check it out but it's windows only.
If anyone knows of a multiplatform videocapture library which is free and the licence can be used with torque, let us know.
06/05/2006 (5:09 am)
I'm currently building Web-Cam capture and should be available soon. Screenshot here:pgmedia.game-host.org/Site/TMessenger/screenshot.phpIm using vidCapture library:codevis.com/vidcapture/index.html check it out but it's windows only.
If anyone knows of a multiplatform videocapture library which is free and the licence can be used with torque, let us know.
#3
06/05/2006 (5:13 am)
I'm too am looking for a way to render the image in the background without a sky, any pointers appreciated.
#4
The video lib I am now using is DSVideoLib (called DSVideoLib-0.0.8b-win32, with source code available, sorry that I lost the download link) that's used to handle communication with the camera driver. The camera works well with a VFW and WDM driver by running the program amcap.exe independent of Torque.
Look forward to seeing your torque-messenger soon.
06/05/2006 (6:04 pm)
Hi Paul, thank you for your response~ The first link seems a dead one while the second is ok. Can you correct it?The video lib I am now using is DSVideoLib (called DSVideoLib-0.0.8b-win32, with source code available, sorry that I lost the download link) that's used to handle communication with the camera driver. The camera works well with a VFW and WDM driver by running the program amcap.exe independent of Torque.
Look forward to seeing your torque-messenger soon.
#5
Pushing this thread up!
Any exciting outcome that has come out recently? Have you got your live video image rendered in the background?
08/31/2006 (11:59 pm)
Hello Paul,Pushing this thread up!
Any exciting outcome that has come out recently? Have you got your live video image rendered in the background?
#6
I've kept an eye on any response to this thread for a while. I am just popping up to ask if you've got anything completed with your TMessenger project. Have you managed to wrap up the web cam with Torque yet? Good luck with it.
03/07/2007 (8:13 pm)
Hi Paul,I've kept an eye on any response to this thread for a while. I am just popping up to ask if you've got anything completed with your TMessenger project. Have you managed to wrap up the web cam with Torque yet? Good luck with it.
Associate Stefan Beffy Moises
GuiAviBitmapCtrl was broken, but there was a resource around here how to fix it (Windows only though).
So you better check out the Theora stuff in the engine.