PDA

View Full Version : How to implement a (web) camera using openGL



Vincman
05-19-2008, 08:18 AM
Hi.

I want to create an application (C++) that contains a live stream to my webcam that is connected to the same computer.
I know that there is a way to realize this using DirectX, but my application needs to be platform-independent, so I think OpenGL would be better.

Can anyone help me, please.

Kind regards
Vincent

Zengar
05-19-2008, 09:07 AM
OpenGL is a library for drawing graphics, it has no means to read images from a webcam. I suggest you look for some open-source webcam libraries (there should be some, I imagine).

Simon Arbon
05-19-2008, 05:55 PM
You could have a look at http://www.khronos.org/openml/, but this is a very new API and compatible webcam drivers may not be available yet.

Vincman
05-25-2008, 01:40 PM
Thanks.
Openml probably would be hart to use.
I was looking for open-source webcam libraries, but i did not really find anything that could help me.

There must be anyone out there who has had the same problem and who does not want to use DirectX...
Vincent

ZbuffeR
05-25-2008, 01:59 PM
Apart from OpenML i don't know any cross-platform video capture API...

ghostdog
06-04-2008, 07:43 AM
you should check out openframeworks. i am sure you can rip out a lot concering framegrabbing. it uses directshow or quicktime on windows, quicktime for mac, video4linux on linux (via compile-time-switches)

http://www.openframeworks.cc/about

Vincman
06-04-2008, 08:45 AM
openframeworks looks pretty useful. i will try.
thank you very much!