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 6 of 6

Thread: OpenGL without graphic card ?

  1. #1
    Intern Newbie
    Join Date
    Oct 2004
    Posts
    30

    OpenGL without graphic card ?

    Hello,

    I was wondering if by any luck there was a way to draw 3d graphics to a file without having a graphic card and under linux ?

    I want (for exemple) to draw a character and save it to a jpg and after display on my website : "this is the last character created".

    (i know i have very weird questions ^^")

    Thanks
    Lud2k

  2. #2
    Junior Member Newbie
    Join Date
    Sep 2006
    Location
    Bangalore
    Posts
    7

    Re: OpenGL without graphic card ?

    May be you could try using Mesa 3d.
    www.mesa3d.org

  3. #3
    Intern Newbie
    Join Date
    Oct 2004
    Posts
    30

    Re: OpenGL without graphic card ?

    Hello,

    Is there any tutorial on how to render opengl into a file (bmp for exemple) ?

    I can't find any tutorials on how I can render in opengl something on linux without GUI...

    Thanks,
    Lud2k.

  4. #4
    Senior Member OpenGL Pro Zengar's Avatar
    Join Date
    Sep 2001
    Location
    Germany
    Posts
    1,979

    Re: OpenGL without graphic card ?

    There are none (or very few)

    As I tried Linux, I had to research all GLX stuff manually. But If you want to render to a file, the best solution would be using an FBO and reading the color buffer, as rendering to pixmaps (and bitmaps) is not accelerated. You may also use pbuffers if yo wish...

    Edit: if you use only mesa, you can use it's specific stuff. Just look on their web-site under user-specific topics

  5. #5
    Junior Member Newbie
    Join Date
    Dec 2006
    Posts
    11

    Re: OpenGL without graphic card ?

    do you have any example for using pbuffers? i want to do some rendering, save the result to a file, but i don't want to open any display as it is going to be a background process. can pbuffers be used for this purpose?

  6. #6
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: OpenGL without graphic card ?

    pbuffers are quite ugly and non portable. Go for FBO if you can.

    Beware that in any case, to actually have OpenGL hardware acceleration, you need to have a working X server, and create a window, even if it is an invisible window.

    So I guess you should use Mesa.

Posting Permissions

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