col.corto
05-28-2012, 09:32 AM
On a linux server (gentoo, running xeon quad-core) that doesn't have a video card at all, how would I get to use opengl to create images and save them to disk? Can you point to some reference online? recommend reading some specific man pages? I'm sure this is a common question, but couldn't find an answer for it (perhaps not the right google keywords?)...
To be more specific, assuming the following steps are already working fine for a desktop application, what additions or changes do I need to consider on the headless server?
1) the graphic renders in a clean "by-the-book" manner, only uses features available on average GPUs
2) the graphic displays perfectly on the desktop application, on any average GPUs
2) I am able to read the pixels from the buffer
3) I am able to write the pixels to some image format on disk (like PNG).
I know for a fact that the biggest change is there won't be a GPU. I think Mesa will be used as software driver. But I have no idea about rendering contexts, framebuffers bindings (as there won't be a window), how the pipeline will work, if there are specific initialisations to do (or to avoid), etc...
Simon
To be more specific, assuming the following steps are already working fine for a desktop application, what additions or changes do I need to consider on the headless server?
1) the graphic renders in a clean "by-the-book" manner, only uses features available on average GPUs
2) the graphic displays perfectly on the desktop application, on any average GPUs
2) I am able to read the pixels from the buffer
3) I am able to write the pixels to some image format on disk (like PNG).
I know for a fact that the biggest change is there won't be a GPU. I think Mesa will be used as software driver. But I have no idea about rendering contexts, framebuffers bindings (as there won't be a window), how the pipeline will work, if there are specific initialisations to do (or to avoid), etc...
Simon