PDA

View Full Version : Displaying of real-time camera images



thomap
08-18-2003, 01:37 AM
How can I display a camera image in real time, more precicely, how can I make OGL grab an image fram and display it using glDrawPixels() or textures?

Mazy
08-18-2003, 02:27 AM
Opengl have no way of reading data from cameras or similar ( maybe OpenML adresses that problem, but thats not finished anyway), so you have to use OS dependent techniques to grab the image, then just upload it as a texture and use it. If the texture arent to huge its possible to get good FPS that way.

nexusone
08-18-2003, 04:28 AM
nehe.gamedev.net has a tutor on playing a AVI in openGL.

Maybe could use the same code to play a video stream from a camera.



Originally posted by thomap:
How can I display a camera image in real time, more precicely, how can I make OGL grab an image fram and display it using glDrawPixels() or textures?