i'm new to OpenGL and i need to use a QGLFrameBufferObject
for off-screen rendering (or solve my problem with grabFrameBuffer, see below). I read the example in Qt Documentation, but there are too many things at once, it is kind of difficult for me.
Could someone explain me the different steps to use a QGLFrameBufferObject.
I'd like to create a buffer and add several images inside (with setTransform()
also) and then save just a part of it into a PNG image with transparency.
How to proceed ?
I've read several topic about people having trouble with different points for this kind of thing, so I guess it is gonna be tough ...
In fact i've already done all this into a QGraphicsView
with a QGLWidget
as Viewport, but using grabFrameBuffer
to save the scene doesn't work (transparency problem and I can't use grabFrameBuffer if I want to .hide()
the scene ... do I ?).