Results 1 to 3 of 3

Thread: BMP to AVI equivalent for JPEG

  1. #1
    Member Contributor
    Join Date
    Apr 2002
    Posts
    52

    BMP to AVI equivalent for JPEG

    Hi,

    I produced pictures from my OpenGL scene and I make a movie with BMP2AVI a shareware that a lot of you advise me.

    I would like to know if an other freeware or shareware exist that do the same with JPEG files..

    Thanks a lot
    MAt

  2. #2
    Junior Member Newbie
    Join Date
    Jan 2002
    Posts
    16

    Re: BMP to AVI equivalent for JPEG

    Mat, could you explain me how did you dump those images?

  3. #3
    Member Contributor
    Join Date
    Apr 2002
    Posts
    52

    Re: BMP to AVI equivalent for JPEG

    Hey,

    I can explain this to you but I use Java and Java Advance imaging for producing the pictures...

    For the OpenGL part, You have to use glReadPixel(x,y,width,height,format,type,pixels[]) function that will read the pixels of the scene and put the result in an array.. After you must use this array for producing the pictures.. I know how to do it in Java but not in C++.. but you can find a lot of examples in the archives of the forum for C++ code.

    glReadPixels where:
    (x,y) angle inferior left of the area to read
    width height the dimsension of the area
    format, the element type (GL_RGB, GL_RGBA...)
    type the type of data (GL_BYTE,
    GL_UNSIGNED_BYTE)
    and pixel a byte array of the pixels read..

    the size of this array (for a byte array) will be(width*height*Element type size (3 for RGB 4 for RGBA..))

    Now if you work also with Java tell me I will give you the code I used for producing the pictures !!!

    Regards
    Mat

Similar Threads

  1. GetSystemMetrics equivalent in GLX
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-17-2003, 07:16 AM
  2. NOP equivalent for ATI_fragment_shader?
    By h2 in forum OpenGL: Advanced Coding
    Replies: 12
    Last Post: 09-27-2003, 04:09 AM
  3. WGL_DEPTH_COMPONENT_NV equivalent for ATI?
    By flamz in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 09-25-2003, 07:20 AM
  4. QT equivalent of glutIdleFunc(..)
    By virtualchetan in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 09-24-2003, 12:37 PM
  5. GL_TEXTURE_SHADER_NV equivalent in ATI ????
    By Bruno in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 04-26-2003, 06:18 PM

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