Results 1 to 4 of 4

Thread: Wanted: AVI generation from OpenGL view

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2000
    Location
    Berlin, germany
    Posts
    1

    Wanted: AVI generation from OpenGL view

    For Windows NT: How can I generate AVI movies from an OpenGL view?
    Are there special window classes? Sample code is highly welcome!

  2. #2
    Member Contributor
    Join Date
    Mar 2000
    Location
    Austin, TX USA
    Posts
    51

    Re: Wanted: AVI generation from OpenGL view

    I don't know if there's an easier way to do this, but I've done this by capturing the framebuffer to a series of .TGA files, then using a freeware program called bmp2avi which will take those and make the avi. I'm not sure if this is what you're looking for...

    J

  3. #3
    Senior Member Frequent Contributor
    Join Date
    Feb 2000
    Location
    France
    Posts
    880

    Re: Wanted: AVI generation from OpenGL view

    What I do is rendering the scene in a DIB (offscreen) and use the DIB to create each frame of my AVI file. You should have a look at all the AVI file functions of the Win32 API. You will need to include vfw.h and link to vfw32.lib.

    Pay attention : some codecs don't support some pixel formats.......

    Eric

    P.S. : you might also create your frames with a glReadPixels of the frame buffer. The problem is that if the size of the window is changed during the recording process, you're AVI will look strange !

  4. #4
    Member Contributor
    Join Date
    Feb 2000
    Location
    France
    Posts
    55

    Re: Wanted: AVI generation from OpenGL view

    One tip : if you use Win32 functions to init your OpenGL window, you can specify WM_DRAW_TO_BITMAP (ot smthg like that) in your PixeFormatDescriptor instead of DRAW_TO_WINDOW. I didn't try it, but it seems designed for what you want to do. The reference says it outputs the framebuffer into a buffer in the memory that you can access.
    Check it out and tell us what you get.

Similar Threads

  1. C++ OPENGL help wanted to port glbegin and end
    By chilunliu in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 11-04-2013, 02:22 AM
  2. Wanted to Learn OpenGL
    By alimisandeep in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 04-02-2013, 11:16 PM
  3. WANTED: OpenGL 2D plotting toolkit
    By hm_ in forum OpenGL: General
    Replies: 2
    Last Post: 12-04-2006, 09:46 AM
  4. Perfect OpenGL picture wanted
    By Andrew Polar in forum OpenGL: Windows
    Replies: 1
    Last Post: 09-13-2004, 08:57 AM
  5. vb--openGl experts wanted
    By Ali in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-04-2003, 04:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean