Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: video capturing

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2002
    Posts
    2

    video capturing

    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 ?

  2. #2
    Junior Member Newbie
    Join Date
    Mar 2002
    Posts
    7

    Re: video capturing

    i think there is a tutorial about avi's in OpenGL at nehe.gamedev.net...

    /M

  3. #3
    Super Moderator OpenGL Guru
    Join Date
    Feb 2000
    Location
    Montreal, Canada
    Posts
    4,421

    Re: video capturing

    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);

  4. #4
    Junior Member Regular Contributor
    Join Date
    May 2001
    Location
    Omaha, NE US
    Posts
    119

    Re: video capturing

    I want to know this too. Is there a 'DevIL' like library, for motion picture data, where you can do this?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •