View Full Version : OpenGL without graphic card ?
11-28-2006, 02:28 PM
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 ^^")
11-28-2006, 07:06 PM
May be you could try using Mesa 3d.
11-29-2006, 02:28 AM
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...
11-29-2006, 08:21 AM
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
12-05-2006, 11:04 PM
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?
12-06-2006, 01:47 AM
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.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.