how go i make a opengl application which captures the AVI data directly from a digi/webcam and plays it on the screen with least possible time lag...??
it can be done using directx / VB / VF etc.
but how do i do it with opengl ?
how go i make a opengl application which captures the AVI data directly from a digi/webcam and plays it on the screen with least possible time lag...??
it can be done using directx / VB / VF etc.
but how do i do it with opengl ?
i think there is a tutorial about avi's in OpenGL at nehe.gamedev.net...
/M
The current version of GL (1.3) doesnt have fancy abilities like getting data from a capture card directly into frame buffer or texture memory.
I havent read much about GL 2.0, but I think it will provide such solutions.
If you want to read a AVI file, then that's a different story. GL doesn't care about image format. Its your job to read them and give them uncompressed or S3_compressed to GL.
V-man
------------------------------
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);
I want to know this too. Is there a 'DevIL' like library, for motion picture data, where you can do this?