Results 1 to 4 of 4

Thread: Computing rendering in hidden window

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2008
    Posts
    2

    Computing rendering in hidden window

    Hello,

    I am trying to record an animation from my Opengl 3D rendering code.
    I save individual pictures using glReadPixels and assemble them later. My problem is that for each pictures I have to read in loads of data (astrophysical simulations) and the movie will be made of tousands of pictures: it takes hours to create. All runs smoothly if I let the Opengl window be open and more importantly on top of other windows on my screen. But since I want a 1000X1000 pixels movie, I can hardly work while the movie is being created. So my question is this,

    How to force Opengl to compute the rendering in an hidden window?

    I tried to use glReadBuffer(GL_BACK) but it looks like it updates the image only in the visible parts of the Opengl Window (I am on a Linux system, using X11)...

    Any ideas? Or solutions?

    Thanks!

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Apr 2004
    Posts
    990

    Re: Computing rendering in hidden window

    You can render your scene to a framebuffer object which is hidden. This is probably what you're looking for since all pixels of (a renderbuffer or texture attached to) a framebuffer object pass the ownership test.

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2008
    Posts
    2

    Re: Computing rendering in hidden window

    Thanks, yes to looks what like I need.

    I am not sure how to use these extensions. Are they progessively implemented in newer versions of the library? Or is there a specific extension library?

    Anyway, I may well be in trouble. To tell the ugly truth, I am using FORTRAN for my code, I and rely on a rather old version of OpenGL...Their are, I think, no recent fortran library for Opengl...

  4. #4
    Senior Member OpenGL Pro dletozeun's Avatar
    Join Date
    Jan 2006
    Location
    FRANCE
    Posts
    1,367

    Re: Computing rendering in hidden window

    opengl 1.1 is just needed for this extension.

Similar Threads

  1. hidden window, pbuffer
    By djik in forum OpenGL: Windows
    Replies: 8
    Last Post: 08-02-2004, 11:41 AM
  2. hidden window crouching acceleration
    By djik in forum OpenGL: Windows
    Replies: 4
    Last Post: 06-10-2004, 05:44 AM
  3. what happened when gl rendering window is hidden
    By pango in forum OpenGL: Advanced Coding
    Replies: 10
    Last Post: 01-03-2004, 09:01 AM
  4. Rendering in a hidden window
    By josiph in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 11-19-2003, 11:47 PM
  5. How do you determine if a window is hidden?
    By lucidmm in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 11-07-2002, 05:00 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