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: Creating and saving multiple images in OpenGl

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2004
    Location
    US
    Posts
    2

    Creating and saving multiple images in OpenGl

    Hi everyone,
    I need some help. I have to run a simulation where I have to create and save an image after regular intervals of time sequentially so that I can join those images to make a movie.

    glutCreateWindow("XYZ") creates only one window at a time and also cannot be saved.

    So can anyone tell me -
    1. How to save an OpenGl image.
    2. How to create multiple images.

    I am really a beginner ..so please bear with me if my questions r very stupid.

    Thanx!!

  2. #2
    Junior Member Regular Contributor
    Join Date
    Jan 2004
    Location
    Los Angeles, CA, USA
    Posts
    216

    Re: Creating and saving multiple images in OpenGl

    Have you tried glReadPixels()?

  3. #3
    Junior Member Newbie
    Join Date
    Apr 2004
    Location
    US
    Posts
    2

    Re: Creating and saving multiple images in OpenGl

    Thanx for the prompt reply!

    But I am sorry I am not very well versed...cud u plz elucidate...i tried to read what
    glreadpixels() meant...but i didnt understand

    shud it be used with glcreatewindow() or is it an inependent function..and where do i name the different images so that they r in sequence?

  4. #4
    Junior Member Regular Contributor
    Join Date
    Jan 2004
    Location
    Los Angeles, CA, USA
    Posts
    216

    Re: Creating and saving multiple images in OpenGl

    Have a look at the fine documentation, particularly the red book (the OpenGL Programming Guide). GlReadPixels is what you use to save a screen buffer into memory so you can then save it to disk.

Posting Permissions

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