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 6 of 6

Thread: video textures

  1. #1
    Junior Member Newbie
    Join Date
    May 2001
    Posts
    14

    video textures

    How do I use video, or a sequence of frames as a texture? I have a animated sequence of gl planes, and want to replace my still image-textures with sequences

    jahshaka@pluginz.com

  2. #2
    Junior Member Newbie
    Join Date
    Sep 2000
    Location
    Greece
    Posts
    28

    Re: video textures

    Easy, load the frames of your video as a different texture and each frame bind a different texture and draw your object.
    Each frame the object will appear with a different texture giving the illusion of a movie.

    Maybe not the most memory efficient way, but it works.

  3. #3
    Junior Member Newbie
    Join Date
    May 2001
    Posts
    14

    Re: video textures

    Ok, sounds real easy but I am trying to find a example of something in c++ that I can break down... anything that would help would be great.

  4. #4
    Junior Member Newbie
    Join Date
    Jun 2001
    Posts
    10

    Re: video textures

    Grab a copy of zsnes from cvs and then patch it with the opengl patch from:
    http://www.students.uiuc.edu/~handuong/opengl.patch

    It's fairly straightforward. Zsnes uses 'vidbuffer' to store the output image. This is then cropped into 'glvidbuffer' and then 'glvidbuffer' is turned into a texture that gets mapped onto a single (almost) square.

    hpsolo

  5. #5
    Junior Member Newbie
    Join Date
    Jun 2001
    Posts
    10

    Re: video textures

    in fact you could just look at the patch file itself starting with:

    @@ -1023,6 +1056,42 @@

  6. #6
    Junior Member Newbie
    Join Date
    May 2001
    Posts
    14

    Re: video textures

    thanks for the help! Check out my app, its starting to become something, but it has a long way to go... would love to have some real coders on the team.

    I'm about to do a total rewrite to use a c++ class to allow arrays of objects instead of hard-coded ones, and clips instead of stills for my textures.
    http://sourceforge.net/projects/jahshakafx/

    [This message has been edited by jahshaka (edited 05-24-2001).]

Posting Permissions

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