Results 1 to 3 of 3

Thread: Rendering in batch mode only to save into a file

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2011
    Posts
    2

    Rendering in batch mode only to save into a file

    I am using OpenGL to render a 3D image (on UNIX or MacOS). I know how to render and save data into a file. However, I would like to be able to render an image in a "batch" mode, without popping up a window with the image. Sort of calling it like

    >myprog input output.png

    and get the image. Similar to how I use ImageMagick. Do you know any resources or doc to read. Maybe a recipe? Please, help!

    PS. I am pretty sure there were a topic like this. However, I could not find it. Please, give me a link, if you know!

    PSS. Although I am an experienced programmer, I am a total beginner in OpenGL. Please, do not judge too strict

  2. #2
    Senior Member OpenGL Lord
    Join Date
    Mar 2015
    Posts
    6,674

    Re: Rendering in batch mode only to save into a file

    You're going to have to create a window one way or another. You can choose not to display the window, and then render to an FBO which you then read from and write to a file.

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2011
    Posts
    2

    Re: Rendering in batch mode only to save into a file

    Could you please explain more. Should I use a window manager (like glut) or I can just virtually to set up the area where to plot, plot to the memory and get all pixels? How not to start a window on glut or I should use other library, maybe X.org or something else. Thank you.

Similar Threads

  1. Looking for Batch Rendering Resources
    By KazkaF in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 07-23-2018, 08:24 PM
  2. What is Batch Rendering?
    By john_connor in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 05-29-2017, 03:11 AM
  3. OpenGL Batch Rendering
    By marek-knows.com in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 11-20-2014, 05:40 PM
  4. save rendering to video file
    By shreddhead in forum OpenGL: Linux
    Replies: 2
    Last Post: 04-13-2010, 05:23 PM
  5. how to save rendering to BMP file
    By huangzl99 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-06-2001, 09:05 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