   OpenGL context with no window system
  Hi,I trying to do offscreen rendering on a server and looking for a way to create the OpenGL context without any attached Window.I'm new to OpenGL and haven't found a way to this.  Thanks in advance!   
  Because you can't.   ;Always wanted to do it;  All you need is a layer that can create rendering contexts without windows. WGL cannot, for example, but Mesa's off-screen renderer layer can; clicky. All you do it allocate a frame buffer, create the context with that buffer, do the rendering, and you have the final image in the buffer.   ;  I remembered that when FBO is introduced, a mechanism within OpenGL framework for creating OpenGL context is also introduced.  However, I'm not very sure about it.   ;Quote:Original post by ma_htyI remembered that when FBO is introduced, a mechanism within OpenGL framework for creating OpenGL context is also introduced.  However, I'm not very sure about it.No, FBO doesnt have mechanism for anything.For p-buffer, you create a context, but this bitch is complex and you still need a window context to get function pointers. Just make the fucking window invisible.;  Make your window invisible *and* render to an FBO.Once the main window goes invisible, the main framebuffer goes into an undefined state - hence the need for FBOs.   ;Quote:Original post by FiddlerMake your window invisible *and* render to an FBO.The likely reason he didn't do that in the first place is...Quote:trying to do offscreen rendering on a server...that there is no windowing system running (and probably no accelerated graphics hardware available, either).So yes, MESA as pointed out by Brother Bob would be it, if anything.   ;Quote:Original post by samothQuote:Original post by FiddlerMake your window invisible *and* render to an FBO.The likely reason he didn't do that in the first place is...Quote:trying to do offscreen rendering on a server...that there is no windowing system running (and probably no accelerated graphics hardware available, either).So yes, MESA as pointed out by Brother Bob would be it, if anything.Brother Bob's answer is good but it depends on what the OP needs. If we are talking about a Windows server, there should be a windowing system. Also, hw acceleration might be desirable for speed. MESA is software only on Windows.On Linux, I guess the user won't have a windowing system so there is no GL support in which case, the MESA offscreen renderer should do the job.If there is a windowing system, then perfect, make an invisible window.Since the OP says "without any attached Window", I was guessing the possibility to make a window exists.   