Webcam texture problems
by John Quarles · in Torque Game Engine · 09/02/2005 (7:14 pm) · 1 replies
Right now, I am taking a webcam stream, converting each frame to an opengl texture and displaying it on a quad in torque. This all works very well except for the fact that it is a MAJOR hack so naturally it runs too slow.
Here is what I am doing now: I capture a frame, bind the texure, and then do a glTexImage2D before I draw the quad. The texture is 1024x512.
If I do everything but render the actual quad, it runs fine. Its only when I render the quad with the texture on it that it slows torque down. I think it might help to let torque manage my texture but I'm not sure how to do that. Or it could be that my texture is just too big. Suggestions?
Here is what I am doing now: I capture a frame, bind the texure, and then do a glTexImage2D before I draw the quad. The texture is 1024x512.
If I do everything but render the actual quad, it runs fine. Its only when I render the quad with the texture on it that it slows torque down. I think it might help to let torque manage my texture but I'm not sure how to do that. Or it could be that my texture is just too big. Suggestions?
About the author
Torque Owner John Quarles
-john